* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  user-select: none;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #02040a;
  font-family: Verdana, Tahoma, 'Segoe UI', sans-serif;
  color: #e2e8f0;
}

#gameCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  cursor: default;
}

.hidden {
  display: none !important;
}

/* ========================================================================== */
/* CENTER GALAXY GATE / WARP BANNER                                           */
/* ========================================================================== */
.center-banner {
  position: fixed;
  top: 120px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(2,6,23,0) 0%, rgba(14,116,144,0.88) 20%, rgba(3,105,161,0.95) 50%, rgba(14,116,144,0.88) 80%, rgba(2,6,23,0) 100%);
  border-top: 1px solid #38bdf8;
  border-bottom: 1px solid #38bdf8;
  padding: 10px 48px;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 1.2px;
  text-shadow: 0 0 10px #0284c7, 0 2px 4px #000;
  z-index: 60;
  pointer-events: none;
}

/* ========================================================================== */
/* TOP-LEFT AUTHENTIC DARKORBIT FEATURES MENU BAR & MINI WINDOWS              */
/* ========================================================================== */
.do-top-left {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.do-features-strip {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(8, 15, 26, 0.86);
  border: 1px solid rgba(71, 134, 178, 0.55);
  border-radius: 4px;
  padding: 3px 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.75);
  pointer-events: auto;
  width: fit-content;
}

.do-feat-btn {
  width: 34px;
  height: 34px;
  background: url('/assets/ui/swf_actionbar/char_36.png') center/100% 100% no-repeat;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform 0.08s;
}
.do-feat-btn:hover {
  background-image: url('/assets/ui/swf_actionbar/char_39.png');
  transform: scale(1.05);
}
.do-feat-btn.active {
  background-image: url('/assets/ui/swf_actionbar/char_43.png');
}
.do-feat-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.do-subwindows-row {
  display: flex;
  gap: 6px;
  align-items: flex-start;
}

.do-mini-window {
  width: 272px;
  background: rgba(11, 18, 28, 0.88);
  border: 1px solid rgba(82, 139, 184, 0.55);
  border-radius: 3px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.75), inset 0 0 12px rgba(14, 165, 233, 0.08);
  pointer-events: auto;
  overflow: hidden;
}
.do-mini-window.user-win {
  width: 215px;
}

.do-win-header {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  background: linear-gradient(180deg, #1e2d3d 0%, #0f1722 100%);
  border-bottom: 1px solid rgba(82, 139, 184, 0.45);
  font-size: 10px;
  font-weight: 700;
  color: #cbd5e1;
  letter-spacing: 0.4px;
}
.do-hdr-ico {
  width: 12px;
  height: 12px;
  object-fit: contain;
}
.do-hdr-sub {
  margin-left: auto;
  color: #38bdf8;
  font-weight: 700;
}

.do-win-body {
  padding: 6px 8px;
}

.do-stat-bar-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.do-stat-bar-row img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

.do-bar-track {
  position: relative;
  flex: 1;
  height: 13px;
  background: #060b13;
  border: 1px solid #334155;
  border-radius: 2px;
  overflow: hidden;
}
.do-bar-fill {
  height: 100%;
  width: 100%;
  transition: width 0.1s linear;
}
.do-bar-fill.hp {
  background: linear-gradient(180deg, #4ade80 0%, #16a34a 55%, #14532d 100%);
}
.do-bar-fill.enemy-hp {
  background: linear-gradient(180deg, #f87171 0%, #dc2626 55%, #7f1d1d 100%);
}
.do-bar-fill.shd {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 55%, #1e3a8a 100%);
}
.do-bar-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px #000, 0 0 3px #000;
}

.do-ship-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(51, 65, 85, 0.5);
  font-size: 10px;
}
.do-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #94a3b8;
}
.do-meta-item img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}
.do-meta-item strong {
  color: #f8fafc;
}
.do-cfg-pill {
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  color: #fff;
  border: 1px solid #fde047;
  border-radius: 2px;
  padding: 0 6px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.user-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 8px;
  font-size: 10px;
}
.u-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #e2e8f0;
  font-weight: 700;
}
.u-stat img {
  width: 13px;
  height: 13px;
  object-fit: contain;
}

/* P.E.T. 10 Companion Window Styles */
.do-mini-window.pet-win {
  width: 268px;
}
.pet-badge {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}
.pet-badge.dead {
  background: rgba(239, 68, 68, 0.25);
  border-color: #ef4444;
  color: #fca5a5;
}
.pet-badge.dplink {
  background: rgba(250, 204, 21, 0.22);
  border-color: #facc15;
  color: #fde047;
}
.pet-badge.heal {
  background: rgba(74, 222, 128, 0.22);
  border-color: #4ade80;
  color: #86efac;
}

.pet-gears-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid rgba(51, 65, 85, 0.55);
}
.pet-gear-btn {
  position: relative;
  height: 42px;
  background: url('/assets/ui/swf_actionbar/char_36.png') center/100% 100% no-repeat;
  border: 1px solid rgba(71, 85, 105, 0.55);
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px;
  overflow: hidden;
  transition: transform 0.08s, border-color 0.12s;
}
.pet-gear-btn:hover {
  background-image: url('/assets/ui/swf_actionbar/char_39.png');
  border-color: #38bdf8;
  transform: translateY(-1px);
}
.pet-gear-btn.active {
  background-image: url('/assets/ui/swf_actionbar/char_43.png');
  border-color: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.45);
}
.pet-gear-btn.danger-pulse {
  border-color: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.65);
  animation: petRevivePulse 1s infinite alternate;
}
@keyframes petRevivePulse {
  from { box-shadow: 0 0 4px rgba(239, 68, 68, 0.4); }
  to { box-shadow: 0 0 12px rgba(239, 68, 68, 0.95); }
}
.pet-gear-btn img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  pointer-events: none;
}
.pet-gear-lbl {
  font-size: 7.5px;
  font-weight: 800;
  color: #e2e8f0;
  text-shadow: 0 1px 2px #000;
  margin-top: 1px;
  letter-spacing: -0.2px;
  pointer-events: none;
}

/* ========================================================================== */
/* LOCKED TARGET HUD (TOP-CENTER)                                             */
/* ========================================================================== */
.do-target-hud {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  background: rgba(15, 18, 28, 0.90);
  border: 1px solid rgba(239, 68, 68, 0.65);
  border-radius: 3px;
  padding: 6px 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
  z-index: 20;
  pointer-events: none;
}
.do-target-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #fca5a5;
}
.target-tag {
  font-size: 9px;
  padding: 1px 5px;
  background: rgba(239, 68, 68, 0.25);
  border: 1px solid #ef4444;
  border-radius: 2px;
  color: #fecaca;
}

/* ========================================================================== */
/* TOP-RIGHT SCOREBOARD & KILL FEED                                           */
/* ========================================================================== */
.top-right-hud {
  position: fixed;
  top: 8px;
  right: 8px;
  width: 235px;
  z-index: 20;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scoreboard-box {
  background: rgba(11, 18, 28, 0.86);
  border: 1px solid rgba(82, 139, 184, 0.45);
  border-radius: 3px;
  padding: 6px 8px;
}
.sb-title {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
  padding-bottom: 3px;
  margin-bottom: 4px;
}
.lb-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  padding: 2px 0;
}
.lb-score {
  color: #facc15;
  font-weight: 700;
}

.kill-feed {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.kill-item {
  background: rgba(11, 18, 28, 0.86);
  border-right: 3px solid #ef4444;
  padding: 4px 7px;
  font-size: 10px;
  border-radius: 2px;
  color: #cbd5e1;
}

/* ========================================================================== */
/* IN-GAME DARKORBIT WINDOWS (SHIP WARP, ASSEMBLY, GALAXY GATES)              */
/* ========================================================================== */
.do-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%);
  background: #121a24 url('/assets/ui/swf_ui/repairBG.png') center/100% 100% no-repeat;
  border: 1px solid #476b8b;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.92), 0 0 20px rgba(14, 165, 233, 0.18);
  z-index: 45;
  overflow: hidden;
}

.do-window-titlebar {
  height: 28px;
  background: linear-gradient(180deg, #1f2e3d 0%, #0d151e 100%);
  border-bottom: 1px solid #3b5975;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}
.do-window-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.5px;
}
.do-window-title img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.do-win-close {
  width: 18px;
  height: 18px;
  background: url('/assets/ui/swf_ui/winCloseBtn_normal.png') center/contain no-repeat;
  border: none;
  cursor: pointer;
}
.do-win-close:hover {
  background-image: url('/assets/ui/swf_ui/winCloseBtn_over.png');
}

.do-window-content {
  padding: 12px 14px;
}
.do-win-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 10px;
}

/* Ship Warp Window */
.warp-ships-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-height: 270px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(5, 10, 18, 0.72);
  border: 1px solid #283a4d;
  border-radius: 3px;
}
.warp-ship-card {
  background: rgba(18, 28, 42, 0.85);
  border: 1px solid #334b63;
  border-radius: 3px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.12s;
}
.warp-ship-card:hover {
  border-color: #38bdf8;
  background: rgba(28, 45, 68, 0.9);
}
.warp-ship-card.selected {
  border: 1px solid #22c55e;
  box-shadow: inset 0 0 12px rgba(34, 197, 94, 0.35);
  background: rgba(20, 48, 36, 0.75);
}
.warp-ship-card img {
  width: 68px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.8));
}
.warp-ship-card .ws-name {
  font-size: 10px;
  font-weight: 700;
  color: #f1f5f9;
  margin-top: 4px;
  text-align: center;
}
.warp-ship-card .ws-spd {
  font-size: 9px;
  color: #38bdf8;
}

.warp-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #283a4d;
}
.warp-selected-info {
  display: flex;
  flex-direction: column;
  font-size: 11px;
}
.warp-selected-info strong {
  color: #38bdf8;
  font-size: 12px;
}
.warp-selected-info span {
  color: #94a3b8;
  font-size: 10px;
}
.warp-cost-box {
  background: url('/assets/ui/swf_common/input_background_blue.png') center/100% 100% no-repeat;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
}

.do-green-confirm-btn {
  background: url('/assets/ui/swf_common/confirmation_button_green_long_normal.png') center/100% 100% no-repeat;
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 9px 20px;
  cursor: pointer;
  text-shadow: 0 1px 2px #000;
  letter-spacing: 0.4px;
}
.do-green-confirm-btn:hover {
  background-image: url('/assets/ui/swf_common/confirmation_button_green_long_over.png');
}
.do-green-confirm-btn.large {
  font-size: 13px;
  padding: 11px 34px;
}
.do-green-confirm-btn.jump {
  filter: hue-rotate(165deg) brightness(1.1);
}

/* Assembly Window */
.assembly-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
}
.assembly-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 310px;
  overflow-y: auto;
  padding: 6px;
  background: rgba(5, 10, 18, 0.75);
  border: 1px solid #283a4d;
}
.asm-item-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  background: rgba(18, 28, 42, 0.88);
  border: 1px solid #2e4359;
  border-radius: 3px;
  cursor: pointer;
}
.asm-item-row:hover {
  border-color: #38bdf8;
}
.asm-item-row.selected {
  border-color: #facc15;
  background: rgba(34, 48, 68, 0.95);
}
.asm-item-row img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  background: url('/assets/ui/assembly/item_empty.png') center/100% 100% no-repeat;
  padding: 3px;
}
.asm-item-info {
  flex: 1;
}
.asm-item-info .ai-title {
  font-size: 11px;
  font-weight: 700;
  color: #f1f5f9;
}
.asm-item-info .ai-cat {
  font-size: 9px;
  color: #38bdf8;
}
.asm-status-pill {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
}
.asm-status-pill.on {
  background: rgba(34, 197, 94, 0.22);
  border: 1px solid #22c55e;
  color: #4ade80;
}
.asm-status-pill.off {
  background: rgba(100, 116, 139, 0.2);
  border: 1px solid #64748b;
  color: #94a3b8;
}

.assembly-details {
  background: rgba(8, 14, 24, 0.85);
  border: 1px solid #2e4359;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.assembly-preview-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}
.assembly-preview-box img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: url('/assets/ui/assembly/item_selected.png') center/100% 100% no-repeat;
  padding: 6px;
}
.assembly-preview-box h4 {
  font-size: 12px;
  color: #f8fafc;
}
.asm-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 2px;
}
.asm-badge.active {
  background: rgba(34, 197, 94, 0.25);
  border: 1px solid #22c55e;
  color: #4ade80;
}
.asm-desc {
  font-size: 11px;
  color: #cbd5e1;
  line-height: 1.45;
  margin: 10px 0;
}
.asm-stat-box {
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 7px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 10px;
}

/* Galaxy Gate Materializer Window */
.gg-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
}
.gg-tab-btn {
  flex: 1;
  background: url('/assets/ui/swf_common/tabbar74x15_normal.png') center/100% 100% no-repeat;
  border: 1px solid #35516b;
  color: #cbd5e1;
  padding: 6px 4px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.gg-tab-btn.active {
  background-image: url('/assets/ui/swf_common/tabbar74x15_selected.png');
  color: #38bdf8;
  border-color: #38bdf8;
}

.gg-main-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 12px;
}
.gg-preview-box {
  height: 275px;
  background: url('/assets/ui/galaxygates_common/space_bg_06.png') center/cover no-repeat;
  border: 1px solid #3b5975;
  border-radius: 3px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
}
.gg-ring-overlay {
  position: relative;
  width: 175px;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gg-ring-overlay img {
  width: 175px;
  height: 175px;
  object-fit: contain;
  animation: ggSpin 16s linear infinite;
}
@keyframes ggSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.gg-parts-counter {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(2, 6, 23, 0.85);
  border: 1px solid #38bdf8;
  border-radius: 50%;
  width: 78px;
  height: 78px;
  justify-content: center;
}
.gg-parts-counter strong {
  font-size: 13px;
  color: #38bdf8;
}
.gg-parts-counter span {
  font-size: 8px;
  color: #94a3b8;
}
.gg-gate-footer-info {
  text-align: center;
  background: rgba(2, 6, 23, 0.82);
  padding: 5px 10px;
  border-radius: 3px;
  width: 100%;
}
.gg-gate-footer-info h3 {
  font-size: 13px;
  color: #f8fafc;
}
.gg-gate-footer-info span {
  font-size: 10px;
  color: #facc15;
}

.gg-controls-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gg-materializer-card, .gg-actions-card {
  background: rgba(8, 15, 26, 0.88);
  border: 1px solid #334b63;
  padding: 10px;
  border-radius: 3px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gg-mat-hdr {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  border-bottom: 1px solid #233547;
  padding-bottom: 4px;
}
.gg-energy-display {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.gg-energy-display img {
  width: 16px;
  height: 16px;
}
.gg-spin-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.do-blue-btn {
  flex: 1;
  background: url('/assets/ui/swf_common/scale9btn_blue_normal.png') center/100% 100% no-repeat;
  border: 1px solid #38bdf8;
  color: #f8fafc;
  font-size: 10px;
  font-weight: 700;
  padding: 7px 8px;
  cursor: pointer;
}
.do-blue-btn:hover {
  background-image: url('/assets/ui/swf_common/scale9btn_blue_hover.png');
}
.do-blue-btn.gold {
  flex-basis: 100%;
  border-color: #facc15;
  color: #fde047;
}
.gg-status-text {
  font-size: 11px;
  color: #cbd5e1;
}

/* Settings, Keybinds & Test Bot Control Window */
.settings-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.settings-section {
  background: rgba(8, 15, 26, 0.88);
  border: 1px solid #334b63;
  border-radius: 3px;
  padding: 10px 12px;
}
.bot-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.bot-mode-btn {
  background: rgba(16, 28, 44, 0.9);
  border: 1px solid #35516b;
  border-radius: 3px;
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 700;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: all 0.12s;
}
.bot-mode-btn:hover {
  border-color: #38bdf8;
  color: #f8fafc;
}
.bot-mode-btn.active {
  background: rgba(20, 48, 36, 0.85);
  border-color: #22c55e;
  color: #4ade80;
  box-shadow: inset 0 0 10px rgba(34, 197, 94, 0.25);
}

.keybinds-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px 10px;
  max-height: 255px;
  overflow-y: auto;
  padding: 4px;
  background: rgba(4, 9, 16, 0.72);
  border: 1px solid #233547;
  border-radius: 3px;
}
.kb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(15, 24, 38, 0.9);
  border: 1px solid #2b4057;
  border-radius: 3px;
  padding: 4px 8px;
}
.kb-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: #e2e8f0;
}
.kb-info img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.kb-key-btn {
  min-width: 72px;
  background: url('/assets/ui/swf_common/input_background_blue.png') center/100% 100% no-repeat;
  border: 1px solid #38bdf8;
  border-radius: 2px;
  color: #fde047;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 8px;
  cursor: pointer;
  text-align: center;
}
.kb-key-btn:hover {
  border-color: #fde047;
  color: #fff;
}
.kb-key-btn.listening {
  background: rgba(234, 179, 8, 0.3);
  border-color: #facc15;
  color: #fef08a;
  animation: kbPulse 0.7s infinite alternate;
}
@keyframes kbPulse {
  from { box-shadow: 0 0 4px #facc15; }
  to { box-shadow: 0 0 14px #facc15; }
}
.settings-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ========================================================================== */
/* BOTTOM-CENTER AUTHENTIC 2020 DARKORBIT SLOT BAR & CATEGORY MENU            */
/* ========================================================================== */
.do-actionbar-wrapper {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

/* Category Sub-Item Popup Fan Bar */
.do-category-popup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(8, 14, 24, 0.96);
  border: 1px solid #38bdf8;
  border-radius: 4px;
  padding: 5px 8px;
  margin-bottom: 2px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.9);
}

.do-popup-items-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.do-popup-hint {
  font-size: 9px;
  font-weight: 700;
  color: #fde047;
  letter-spacing: 0.2px;
  text-align: center;
  padding: 1px 4px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  width: 100%;
}

/* Octagonal Category Menu Bar */
.do-category-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  background: rgba(6, 11, 19, 0.78);
  border: 1px solid rgba(71, 134, 178, 0.45);
  border-radius: 3px;
}

.do-cat-btn {
  width: 34px;
  height: 34px;
  background: url('/assets/ui/swf_actionbar/char_36.png') center/100% 100% no-repeat;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.do-cat-btn:hover {
  background-image: url('/assets/ui/swf_actionbar/char_39.png');
}
.do-cat-btn.active {
  background-image: url('/assets/ui/swf_actionbar/char_43.png');
}
.do-cat-btn img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  pointer-events: none;
}

.do-slot-edit-btn {
  height: 28px;
  padding: 0 8px;
  margin-left: 4px;
  background: rgba(14, 116, 144, 0.35);
  border: 1px solid #38bdf8;
  border-radius: 3px;
  color: #e0f2fe;
  font-size: 9.5px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.12s;
}
.do-slot-edit-btn:hover {
  background: rgba(14, 165, 233, 0.45);
  border-color: #fde047;
  color: #fde047;
}
.do-slot-edit-btn.active {
  background: rgba(234, 179, 8, 0.28);
  border-color: #facc15;
  color: #fef08a;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

/* Authentic 38x38 DarkOrbit Slot Rows */
.do-slotbars-panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 3px 5px;
  background: rgba(6, 11, 18, 0.82);
  border: 1px solid rgba(71, 134, 178, 0.45);
  border-radius: 3px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.85);
}

.do-slot-row {
  display: flex;
  gap: 2px;
}

.do-slot {
  position: relative;
  width: 38px;
  height: 38px;
  background: url('/assets/ui/swf_actionbar/char_15.png') center/100% 100% no-repeat;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: box-shadow 0.1s, transform 0.08s;
}
.do-slot:hover {
  background-image: url('/assets/ui/swf_actionbar/char_18.png');
}
.do-slot.active {
  background-image: url('/assets/ui/swf_actionbar/char_43.png');
  box-shadow: inset 0 0 8px rgba(250, 204, 21, 0.45);
}
.do-slot.drag-over {
  outline: 2px dashed #fde047;
  outline-offset: -2px;
  box-shadow: inset 0 0 14px rgba(250, 204, 21, 0.75), 0 0 10px rgba(56, 189, 248, 0.85);
  transform: scale(1.06);
}
.do-slot.assign-target {
  outline: 1.5px dashed rgba(250, 204, 21, 0.75);
  outline-offset: -2px;
}
.do-slot.selected-assign {
  outline: 2px solid #fde047;
  outline-offset: -2px;
  box-shadow: inset 0 0 12px rgba(250, 204, 21, 0.75);
}

.do-slot-ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

.do-slot-key {
  position: absolute;
  top: 1px;
  left: 3px;
  font-size: 8px;
  font-weight: 700;
  color: #cbd5e1;
  text-shadow: 0 1px 2px #000, 0 0 2px #000;
  z-index: 2;
  pointer-events: none;
}

.do-slot-cnt {
  position: absolute;
  bottom: 3px;
  right: 3px;
  font-size: 7.5px;
  font-weight: 700;
  color: #38bdf8;
  text-shadow: 0 1px 2px #000, 0 0 2px #000;
  z-index: 2;
  pointer-events: none;
}
.do-slot.active .do-slot-cnt {
  color: #fde047;
}

.do-slot-bar {
  position: absolute;
  bottom: 1px;
  left: 3px;
  right: 3px;
  height: 2px;
  background: #22c55e;
  opacity: 0.85;
  pointer-events: none;
}

.cd-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: rgba(2, 6, 23, 0.82);
  border-top: 1px solid #facc15;
  pointer-events: none;
  z-index: 3;
}

/* ========================================================================== */
/* BOTTOM-RIGHT AUTHENTIC MINIMAP                                             */
/* ========================================================================== */
.minimap-panel {
  position: fixed;
  bottom: 8px;
  right: 8px;
  background: rgba(11, 18, 28, 0.92);
  border: 1px solid rgba(82, 139, 184, 0.55);
  border-radius: 3px;
  padding: 5px;
  z-index: 20;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85);
}
.minimap-header {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  color: #94a3b8;
  margin-bottom: 4px;
  padding: 0 2px;
}
.minimap-header strong {
  color: #38bdf8;
}
#minimapCanvas {
  display: block;
  border: 1px solid #1e293b;
  cursor: pointer;
}

/* ========================================================================== */
/* AUTHENTIC DARKORBIT KILLSCREEN / SHIP REPAIR MODAL                         */
/* ========================================================================== */
.killscreen-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 15, 0.78);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.killscreen-window {
  width: 610px;
  background: #121a24 url('/assets/ui/swf_ui/repairBG.png') center/100% 100% no-repeat;
  border: 1px solid #527a9e;
  border-radius: 5px;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.95), 0 0 30px rgba(239, 68, 68, 0.25);
  overflow: hidden;
}

.killscreen-header {
  height: 34px;
  background: linear-gradient(180deg, #3b1219 0%, #1a080c 100%);
  border-bottom: 1px solid #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fca5a5;
  letter-spacing: 0.8px;
}

.killscreen-body {
  padding: 16px 18px;
}

.killscreen-killer-box {
  text-align: center;
  margin-bottom: 14px;
}
.killscreen-killer-box p {
  font-size: 13px;
  color: #f1f5f9;
  margin-bottom: 4px;
}
.killscreen-killer-box strong {
  color: #ef4444;
}
.killscreen-killer-box span {
  font-size: 11px;
  color: #94a3b8;
}

.killscreen-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.ks-option {
  background: rgba(10, 18, 29, 0.9);
  border: 2px solid #2d4359;
  border-radius: 4px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.14s;
}
.ks-option:hover {
  border-color: #38bdf8;
  background: rgba(16, 28, 44, 0.95);
}
.ks-option.selected {
  border-color: #22c55e;
  background: rgba(16, 42, 32, 0.85);
  box-shadow: 0 0 18px rgba(34, 197, 94, 0.3), inset 0 0 12px rgba(34, 197, 94, 0.2);
}

.ks-opt-img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin-bottom: 8px;
  border: 1px solid #3b5975;
  border-radius: 4px;
}
.ks-opt-title {
  font-size: 11px;
  font-weight: 800;
  color: #f8fafc;
  margin-bottom: 5px;
}
.ks-opt-desc {
  font-size: 9.5px;
  color: #94a3b8;
  line-height: 1.35;
  margin-bottom: 10px;
  min-height: 38px;
}
.ks-opt-cost {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 3px;
}
.ks-opt-cost img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}
.ks-opt-cost.free {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border: 1px solid #22c55e;
}
.ks-opt-cost.vip {
  background: rgba(56, 189, 248, 0.2);
  color: #38bdf8;
  border: 1px solid #0ea5e9;
}

.killscreen-footer {
  display: flex;
  justify-content: center;
}

/* ========================================================================== */
/* INITIAL HANGAR / LOGIN MODAL                                               */
/* ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
}

.modal-card {
  width: min(940px, 95vw);
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #0f172a 0%, #090e1a 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}
.modal-header h1 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f8fafc;
}
.badge-2020 {
  font-size: 11px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  padding: 3px 8px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 6px;
}
.subtitle {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 3px;
}
.close-btn {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid #475569;
  color: #e2e8f0;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-group label, .section-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  margin-bottom: 5px;
  letter-spacing: 0.6px;
}
.form-group input {
  width: 100%;
  height: 36px;
  background: #060b14;
  border: 1px solid #334155;
  border-radius: 4px;
  padding: 0 10px;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 700;
}

.faction-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.faction-btn {
  height: 36px;
  background: #0b1322;
  border: 1px solid #334155;
  border-radius: 4px;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}
.faction-btn.active[data-faction="MMO"] {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
}
.faction-btn.active[data-faction="EIC"] {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  color: #7dd3fc;
}
.faction-btn.active[data-faction="VRU"] {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.ship-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 8px;
  max-height: 310px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding: 4px;
}
.ship-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid #334155;
  border-radius: 5px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.12s;
}
.ship-card:hover {
  border-color: #38bdf8;
}
.ship-card.active {
  border-color: #38bdf8;
  background: rgba(14, 116, 144, 0.25);
  box-shadow: inset 0 0 12px rgba(56, 189, 248, 0.25);
}
.ship-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.ship-card-name {
  font-size: 12px;
  font-weight: 800;
  color: #f8fafc;
}
.ship-card-skill {
  font-size: 10px;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 3px;
}
.ship-card-desc {
  font-size: 9.5px;
  color: #94a3b8;
  line-height: 1.3;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #1e293b;
  padding-top: 12px;
}
.controls-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 10px;
  color: #94a3b8;
}
.controls-hint b {
  color: #38bdf8;
}
.launch-btn {
  background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
  border: 1px solid #86efac;
  color: #fff;
  font-weight: 900;
  font-size: 13px;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

/* ========================================================================== */
/* STAR SYSTEM / ALL 35 DARKORBIT MAPS WINDOW (#winSpaceMap)                  */
/* ========================================================================== */
#minimapHeader {
  cursor: pointer;
  transition: background 0.15s;
}
#minimapHeader:hover {
  background: rgba(56, 189, 248, 0.22);
}

.spacemap-layout {
  display: flex;
  flex-direction: column;
}

.spacemap-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.smap-tab {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  color: #cbd5e1;
  font-size: 10.5px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.14s;
}
.smap-tab:hover {
  border-color: #38bdf8;
  color: #f8fafc;
}
.smap-tab.active {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.35), rgba(3, 105, 161, 0.45));
  border-color: #38bdf8;
  color: #7dd3fc;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.spacemap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 8px;
  max-height: 410px;
  overflow-y: auto;
  padding: 4px;
}

.smap-card {
  background: rgba(8, 15, 28, 0.92);
  border: 1px solid rgba(71, 134, 178, 0.4);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.14s;
}
.smap-card:hover {
  border-color: #38bdf8;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.65);
}
.smap-card.current-map {
  border-color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.35);
}

.smap-thumb-wrap {
  position: relative;
  width: 100%;
  height: 88px;
  background: #020617;
  overflow: hidden;
  border-bottom: 1px solid rgba(71, 134, 178, 0.3);
}
.smap-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.smap-id-badge {
  position: absolute;
  top: 5px;
  left: 5px;
  background: rgba(2, 6, 23, 0.88);
  border: 1px solid #38bdf8;
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
}
.smap-portals-count {
  position: absolute;
  bottom: 4px;
  right: 5px;
  background: rgba(2, 6, 23, 0.85);
  color: #fde047;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid rgba(250, 204, 21, 0.4);
}
.smap-portal-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1.5px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px #38bdf8;
}

.smap-body {
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.smap-title {
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smap-links {
  font-size: 9.5px;
  color: #94a3b8;
  line-height: 1.25;
  min-height: 24px;
}
.smap-warp-btn {
  margin-top: auto;
  width: 100%;
  padding: 5px 0;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  border-radius: 3px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.smap-warp-btn:hover {
  filter: brightness(1.15);
}
.smap-card.current-map .smap-warp-btn {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border-color: #86efac;
}

.pet-main-controls {
  display: flex;
  gap: 6px;
  margin-bottom: 5px;
}

.pet-ctrl-btn {
  flex: 1;
  padding: 5px 6px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.14s ease;
}

.pet-ctrl-btn.start {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border: 1px solid #38bdf8;
  color: #f8fafc;
}
.pet-ctrl-btn.start.active-pet {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  border-color: #4ade80;
}

.pet-ctrl-btn.repair {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
  border: 1px solid #facc15;
  color: #fef08a;
}
.pet-ctrl-btn.repair.urgent {
  background: linear-gradient(180deg, #dc2626 0%, #991b1b 100%);
  border-color: #fca5a5;
  color: #ffffff;
  animation: kbPulse 0.7s infinite alternate;
}
.pet-ctrl-btn:hover {
  filter: brightness(1.16);
}

/* ========================================================================== */
/* PILOT LOGIN / REGISTER & LOCKED NICKNAME HANGAR STYLES                     */
/* ========================================================================== */
.auth-view {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 6px 0 4px 0;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.auth-tab-btn {
  padding: 11px 14px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  border-radius: 6px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.4px;
  transition: all 0.16s ease;
}

.auth-tab-btn:hover {
  border-color: #38bdf8;
  color: #f8fafc;
}

.auth-tab-btn.active {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.35), rgba(3, 105, 161, 0.5));
  border-color: #38bdf8;
  color: #fde047;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.32);
}

.auth-notice-banner {
  background: rgba(14, 116, 144, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
  color: #bae6fd;
  line-height: 1.4;
}

.auth-error-box {
  background: rgba(185, 28, 28, 0.3);
  border: 1px solid #f87171;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fecaca;
}

.auth-error-box.success {
  background: rgba(21, 128, 61, 0.3);
  border-color: #4ade80;
  color: #bbf7d0;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-form-grid .form-group input {
  width: 100%;
  background: url('/assets/ui/swf_common/input_background_blue.png') center/100% 100% no-repeat;
  background-color: #091322;
  border: 1px solid #38bdf8;
  border-radius: 4px;
  padding: 10px 12px;
  color: #f8fafc;
  font-size: 13.5px;
  font-weight: 700;
  outline: none;
}

.auth-form-grid .form-group input:focus {
  border-color: #fde047;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.35);
}

.auth-actions-row {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}

.auth-submit-btn {
  width: 100%;
  padding: 13px 20px;
  font-size: 14px;
}

.account-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: rgba(10, 20, 35, 0.92);
  border: 1px solid rgba(56, 189, 248, 0.55);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.account-pilot-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.account-lbl {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.locked-nick-val {
  font-size: 15px;
  font-weight: 900;
  color: #fde047;
  text-shadow: 0 0 8px rgba(250, 204, 21, 0.35);
}

.nick-lock-badge {
  background: rgba(22, 163, 74, 0.25);
  border: 1px solid #4ade80;
  color: #bbf7d0;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.account-kd-badge {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid #334155;
  color: #7dd3fc;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.account-logout-btn {
  background: rgba(185, 28, 28, 0.25);
  border: 1px solid #f87171;
  border-radius: 4px;
  color: #fecaca;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 11px;
  cursor: pointer;
  transition: all 0.14s;
}

.account-logout-btn:hover {
  background: rgba(220, 38, 38, 0.45);
  color: #fff;
}


/* ========================================================================== */
/* DRAGGABLE HUD MINI-WINDOWS & HANDLES                                       */
/* ========================================================================== */
.do-mini-window.do-draggable-hud {
  position: fixed;
  z-index: 26;
  user-select: none;
}
#doShipWin {
  position: fixed;
  top: 50px;
  left: 10px;
  width: 272px;
  z-index: 26;
}
#doPetWin {
  position: fixed;
  top: 240px;
  left: 10px;
  width: 268px;
  z-index: 26;
}
#doUserWin {
  position: fixed;
  top: 50px;
  left: 290px;
  width: 215px;
  z-index: 26;
}
.do-mini-window .do-win-header {
  cursor: grab;
  user-select: none;
  height: 24px;
}
.do-mini-window .do-win-header:active {
  cursor: grabbing;
}
.drag-grip-icon {
  font-size: 13px;
  color: #38bdf8;
  opacity: 0.9;
  margin-right: 2px;
  cursor: grab;
  user-select: none;
}
.do-mini-close {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.do-mini-close:hover {
  color: #f87171;
}
.do-hud-drag-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(8, 15, 26, 0.88);
  border: 1px solid rgba(71, 134, 178, 0.45);
  border-radius: 4px;
  padding: 2px 10px;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  cursor: grab;
  user-select: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 3px;
  transition: all 0.12s;
}
.do-hud-drag-handle:hover {
  background: rgba(14, 165, 233, 0.25);
  color: #e2e8f0;
  border-color: #38bdf8;
}
.do-hud-drag-handle:active {
  cursor: grabbing;
}
.drag-grip {
  color: #38bdf8;
  font-size: 12px;
}

/* ========================================================================== */
/* CLAN WINDOW STYLES                                                         */
/* ========================================================================== */
.clan-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  max-height: 520px;
  overflow-y: auto;
}
.clan-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.25);
  padding-bottom: 8px;
}
.clan-tab-btn {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s;
}
.clan-tab-btn:hover {
  background: rgba(56, 189, 248, 0.15);
  color: #e2e8f0;
  border-color: #38bdf8;
}
.clan-tab-btn.active {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #fff;
  box-shadow: 0 0 10px rgba(14, 165, 233, 0.4);
}
.clan-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.clan-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.clan-table th {
  background: rgba(30, 41, 59, 0.8);
  color: #38bdf8;
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid #475569;
}
.clan-table td {
  padding: 6px 10px;
  border-bottom: 1px solid #1e293b;
  color: #cbd5e1;
}
.clan-war-badge {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid #ef4444;
  color: #fca5a5;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========================================================================== */
/* HANGAR EQUIPMENT & CONFIGURATION STYLES                                    */
/* ========================================================================== */
.hangar-equip-layout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}
.hangar-base-notice {
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.hangar-base-notice.at-base {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid #22c55e;
  color: #4ade80;
}
.hangar-base-notice.not-at-base {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid #ef4444;
  color: #f87171;
}
.hangar-cfg-tabs {
  display: flex;
  gap: 6px;
}
.hangar-cfg-tab {
  flex: 1;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s;
}
.hangar-cfg-tab.active {
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  border-color: #38bdf8;
  color: #fff;
}
.hangar-equip-body {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 16px;
}
.equip-sliders-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.equip-control-group {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid #1e293b;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.equip-label-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}
.equip-hint {
  font-size: 10px;
  color: #64748b;
}
.equip-summary-col {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.equip-preview-title {
  font-size: 11px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #334155;
  padding-bottom: 6px;
}
.equip-stat-card {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}
.equip-save-btn {
  margin-top: auto;
  padding: 10px;
  font-size: 12px;
  font-weight: 800;
}
