/* ===== STARHUB BASE – Hangár dizájn (egyedi szépség) ===== */

:root {
  --hangar-gold: #e4b85c;
  --hangar-gold-soft: rgba(228, 184, 92, 0.45);
  --hangar-gold-glow: rgba(228, 184, 92, 0.28);
  --hangar-cyan: #00d4ee;
  --hangar-cyan-soft: rgba(0, 212, 238, 0.42);
  --hangar-cyan-glow: rgba(0, 212, 238, 0.22);
  --hangar-bg-dark: #070b12;
  --hangar-bg-panel: rgba(10, 16, 26, 0.94);
  --hangar-border-subtle: rgba(255, 255, 255, 0.07);
  --hangar-glass: rgba(14, 22, 34, 0.88);
}

@font-face {
  font-family: Eurostile;
  src: url("/public/fonts/EurostileFl.ttf") format('truetype');
}
@font-face {
  font-family: EurostileMedium;
  src: url("/public/fonts/EurostileTMed.ttf") format('truetype');
}
@font-face {
  font-family: EurostileHeaFl;
  src: url("/public/fonts/EurostileHeaFl.ttf") format('truetype');
}

.important-label, .premium-label {
  margin-top: 10px;
  text-shadow: 0 0 5px #000;
}

/* ===== PAGE LAYOUT ===== */

.page.starhub {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-content: stretch;
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 0;
  overflow: hidden;
  font-family: Eurostile, 'Segoe UI', sans-serif;
}

/* Teljes böngészőablak (térkép iframe): saját viewport */
body.eq-map-embed .page.starhub {
  flex: 1 1 0;
  height: 100%;
  max-height: 100%;
  padding-top: 4px;
}

/* Site fejléc mellett: maradék magasság, navbar (fixed) alatti tartalom */
body:not(.eq-map-embed) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

body:not(.eq-map-embed) #header {
  flex: 0 0 auto;
}

body:not(.eq-map-embed) .page.starhub {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  max-height: none;
  padding-top: 65px;
}

.page.starhub.fullscreen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
}

/* ===== STARHUB CONTAINER ===== */

.page.starhub .starhub-container {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-content: stretch;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  box-sizing: border-box;
  background: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page.starhub .starhub-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(80, 40, 20, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 80% 80%, rgba(20, 40, 80, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.page.starhub .starhub-container .blurBox {
  background: linear-gradient(165deg, var(--hangar-glass) 0%, var(--hangar-bg-panel) 55%, rgba(6, 10, 16, 0.96) 100%);
  border-radius: 14px;
  border: 1px solid rgba(0, 200, 224, 0.14);
  box-shadow:
    0 0 0 1px rgba(212, 168, 75, 0.12) inset,
    0 4px 24px rgba(0, 0, 0, 0.45),
    0 0 28px var(--hangar-cyan-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  margin-left: 0;
  margin-right: 10px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(8px);
}

/* Bal panel: egy görgető, a layout magasságához igazodik */
.page.starhub .starhub-container .hangar-main-panel.blurBox {
  overflow-x: hidden;
  overflow-y: auto;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 238, 0.4) rgba(0, 0, 0, 0.35);
}

.page.starhub .starhub-container .blurBox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--hangar-gold) 0%, transparent 40%, transparent 60%, var(--hangar-cyan) 100%);
  opacity: 0.8;
  pointer-events: none;
}

.page.starhub .starhub-container .blurBox::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hangar-cyan-soft), transparent);
  opacity: 0.5;
  pointer-events: none;
}

.page.starhub .starhub-container .betalabel {
  position: absolute;
  width: auto;
  height: auto;
  top: 0;
  right: 0;
  background-color: #960000;
  font-weight: 700;
  letter-spacing: 3px;
  color: #fff;
  border-radius: 0 0 0 5px;
  padding: 5px 30px;
  box-shadow: 0 0 5px #000;
  text-shadow: 0 0 5px #000;
  z-index: 2;
  pointer-events: none;
}

/* ===== SIDEBAR ===== */

.page.starhub .starhub-container .sidebar {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  align-items: center;
  width: 5%;
  min-width: 60px;
  height: 100%;
  min-height: 600px;
  border-right: 1px solid rgba(80, 100, 140, 0.3);
  background: rgba(10, 14, 22, 0.95);
  transition: width 50ms linear;
  z-index: 1;
}

.page.starhub .starhub-container .sidebar .items {
  width: 100%;
  height: auto;
}

.page.starhub .starhub-container .sidebar .logo {
  width: 100%;
  height: 60px;
  background: url('/do_img/global/internalPages/starhub/logo.png') center center/90% no-repeat;
}

.page.starhub .starhub-container .sidebar .seperator {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.page.starhub .starhub-container .sidebar .button {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 55px;
  margin-top: 5px;
  margin-bottom: 5px;
  cursor: pointer;
}

.page.starhub .starhub-container .sidebar .button:after {
  content: '';
  position: absolute;
  display: none;
  width: 1px;
  height: 100%;
  background-color: #fff;
  right: 0;
}

.page.starhub .starhub-container .sidebar .button:hover:after,
.page.starhub .starhub-container .sidebar .button.selected:after {
  display: block;
  background-color: #00b4ff;
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.5);
}

.page.starhub .starhub-container .sidebar .button.selected:after {
  width: 3px;
}

.page.starhub .starhub-container .sidebar .button:before {
  content: '';
  position: absolute;
  width: 50px;
  height: 100%;
  background-size: 100% !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.page.starhub .starhub-container .sidebar .button.hangar:before {
  background-image: url('/do_img/global/internalPages/starhub/icons/hangar.png');
}

/* ===== CONTENT ===== */

.page.starhub .starhub-container .content {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding-top: 1px;
  box-sizing: border-box;
  overflow: hidden;
}



.page.starhub .starhub-container .content > .body {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  max-height: none;
  background: transparent;
  padding: 10px 14px 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ===== HANGAR CONTROLS (felső sáv) ===== */

.hangar-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0, 200, 224, 0.2);
  background: linear-gradient(165deg, rgba(12, 22, 30, 0.92) 0%, rgba(6, 12, 18, 0.96) 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 2px 12px rgba(0, 0, 0, 0.3);
}

.ctrl-btn {
  background: linear-gradient(180deg, #1a2540, #0d1525);
  border: 1px solid rgba(80, 100, 140, 0.4);
  color: #e0e8f0;
  padding: 8px 14px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.ctrl-btn:hover {
  background: linear-gradient(180deg, #2a3550, #1a2540);
  border-color: rgba(120, 150, 200, 0.5);
}

.ctrl-label {
  color: #8090a8;
  font-size: 12px;
  margin-left: 8px;
}

.ctrl-icon {
  background: rgba(26, 37, 64, 0.8);
  border: 1px solid rgba(80, 100, 140, 0.4);
  color: #a8c4e8;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.ctrl-icon:hover {
  background: rgba(42, 53, 80, 0.9);
  border-color: rgba(120, 150, 200, 0.5);
}

/* ===== VEHICLE TABS (HAJÓ | DRONOK | HÁZIÁLLATOK) ===== */

.vehicle-controls {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid rgba(0, 200, 224, 0.18);
  background: linear-gradient(165deg, rgba(10, 20, 26, 0.9) 0%, rgba(4, 10, 14, 0.95) 100%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
}

.vehicle-tab {
  flex: 1 1 0;
  min-width: 0;
  background: linear-gradient(180deg, rgba(16, 26, 34, 0.95), rgba(8, 14, 20, 0.98));
  border: 1px solid rgba(60, 130, 150, 0.35);
  color: #7a9aad;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  border-radius: 8px;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35) inset;
}

.vehicle-tab:hover {
  color: #c8d4e8;
  border-color: var(--hangar-cyan-soft);
  box-shadow: 0 0 12px var(--hangar-cyan-glow);
}

.vehicle-tab.htab-active {
  background: linear-gradient(180deg, rgba(212, 168, 75, 0.12), rgba(212, 168, 75, 0.06));
  border-color: var(--hangar-gold-soft);
  color: var(--hangar-gold);
  box-shadow: 0 0 16px var(--hangar-gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ===== HANGAR LAYOUT ===== */

.hangar-layout {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 440px);
  grid-template-rows: minmax(0, 1fr);
  width: 100%;
  flex: 1;
  min-height: 0;
  max-height: 100%;
  gap: 12px;
  align-items: stretch;
  overflow: hidden;
}

.hangar-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

/* ===== PG HANGAR – hajó balra, felszerelés jobbra (utolsó 2 kép) ===== */

.hangar-main-panel {
  flex: 1;
  min-height: 0;
  padding: 16px 18px;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hangar-main-panel .hangar-ship-equip-row {
  flex: 1;
  min-height: 0;
}

.hangar-ship-equip-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.hangar-ship-equip-row.is-pet-mode {
  align-items: stretch;
}

/* Drón nézet: egy görgető (#drone-list), kompakt kártyák */
.hangar-main-panel.blurBox:has(.hangar-ship-equip-row.is-drone-mode) {
  overflow: hidden;
}

.hangar-ship-equip-row.is-drone-mode {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.hangar-ship-equip-row.is-drone-mode .hangar-equipment {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hangar-ship-equip-row.is-drone-mode .equip-panel-bg {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.hangar-ship-equip-row.is-pet-mode .hangar-equipment {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* P.E.T.: ne legyen görgetés a bal panelen — minden kiférjen */
.hangar-main-panel.blurBox:has(.hangar-ship-equip-row.is-pet-mode) {
  overflow: hidden;
}

.hangar-ship-equip-row.is-pet-mode {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.hangar-ship-equip-row.is-pet-mode .pet-panel.view-pet {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.hangar-ship-equip-row.is-pet-mode {
  --pet-slot-size: 42px;
}

.hangar-ship-equip-row.is-pet-mode .pet-shell {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hangar-ship-equip-row.is-pet-mode .pet-shell-top {
  margin-bottom: 4px;
  padding-bottom: 6px;
  flex-shrink: 0;
}

.hangar-ship-equip-row.is-pet-mode .pet-shell-title {
  font-size: 15px;
}

.hangar-ship-equip-row.is-pet-mode .pet-slot-tab {
  padding: 6px 12px;
  font-size: 12px;
}

.hangar-ship-equip-row.is-pet-mode .pet-slot-grid-eq {
  flex: 1;
  min-height: 0;
}

.hangar-ship-equip-row.is-pet-mode .pet-slot-eq {
  padding: 8px 10px;
}

.hangar-ship-equip-row.is-pet-mode .pet-equip-row {
  flex: 1;
  min-height: 0;
  gap: 12px;
  overflow: hidden;
}

.hangar-ship-equip-row.is-pet-mode .pet-preview-col {
  width: 188px;
  gap: 8px;
}

.hangar-ship-equip-row.is-pet-mode .pet-preview-frame--sm {
  max-width: 88px;
  height: 88px;
  min-height: 88px;
}

.hangar-ship-equip-row.is-pet-mode .pet-status-panel > .pet-xp-card {
  margin: 6px 6px 0;
}

.hangar-ship-equip-row.is-pet-mode .pet-xp-remain {
  font-size: 9px;
}

.hangar-ship-equip-row.is-pet-mode .pet-vitals-panel {
  padding: 0 6px;
  gap: 4px;
}

.hangar-ship-equip-row.is-pet-mode .pet-stat-line {
  padding: 6px 8px;
}

.hangar-ship-equip-row.is-pet-mode .pet-actions-panel {
  padding: 5px 6px 8px;
}

.hangar-ship-equip-row.is-pet-mode .btn-pet-action-btn {
  padding: 7px 5px !important;
  font-size: 9px !important;
}

.hangar-ship-equip-row.is-pet-mode .pet-equip-main {
  gap: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.hangar-ship-equip-row.is-pet-mode .pet-config-panel {
  flex-shrink: 0;
}

.hangar-ship-equip-row.is-pet-mode .pet-config-fields {
  gap: 6px;
}

.hangar-ship-equip-row.is-pet-mode .pet-config-field {
  padding: 6px 8px;
}

.hangar-ship-equip-row.is-pet-mode .pet-config-input,
.hangar-ship-equip-row.is-pet-mode .pet-config-select {
  height: 30px;
  font-size: 12px;
}

.hangar-ship-equip-row.is-pet-mode .btn-pet-config-save {
  min-width: 50px;
  height: 30px;
}

/* Felszerelés: a maradék magasságban görgethető (AI-PROTOCOLS ne vágódjon le) */
.hangar-ship-equip-row.is-pet-mode .pet-slot-main {
  flex: 1 1 0;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 238, 0.4) rgba(0, 0, 0, 0.35);
  padding-bottom: 4px;
}

.hangar-ship-equip-row.is-pet-mode .pet-slot-main::-webkit-scrollbar {
  width: 6px;
}

.hangar-ship-equip-row.is-pet-mode .pet-slot-main::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 238, 0.4);
  border-radius: 999px;
}

/* LASERS → GENERATORS → GEARS → AI-PROTOCOLS: egymás alatt */
.hangar-ship-equip-row.is-pet-mode .pet-eq-panel--stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  flex: 0 0 auto;
  min-height: min-content;
  overflow: visible;
  padding-bottom: 4px;
  box-sizing: border-box;
}

.hangar-ship-equip-row.is-pet-mode .pet-eq-panel--stack > .equip-block,
.hangar-ship-equip-row.is-pet-mode .pet-eq-panel--stack > .pet-eq-block {
  flex-shrink: 0;
  min-width: 0;
}

.hangar-ship-equip-row.is-pet-mode .pet-equip-main .equip-block.pet-equip-block {
  margin-bottom: 0;
}

.hangar-ship-equip-row.is-pet-mode .pet-equip-main .equip-header {
  padding: 5px 8px 5px 12px;
  margin: 0 0 4px 0;
  font-size: 11px;
}

.hangar-ship-equip-row.is-pet-mode .pet-equip-main .equip-block.pet-equip-block:last-child {
  padding-bottom: 2px;
}

.hangar-ship-equip-row.is-pet-mode .pet-equip-main .equip-header .pet-eq-lv {
  font-size: 11px;
}

.hangar-ship-equip-row.is-pet-mode .pet-equip-main .slot-grid {
  grid-template-columns: repeat(10, var(--pet-slot-size));
  gap: 4px;
  width: max-content;
  max-width: 100%;
}

.hangar-ship-equip-row.is-pet-mode .pet-equip-main .slot-grid .slot {
  width: var(--pet-slot-size);
  height: var(--pet-slot-size);
  min-width: var(--pet-slot-size);
  min-height: var(--pet-slot-size);
  max-width: var(--pet-slot-size);
  max-height: var(--pet-slot-size);
}

.hangar-ship-equip-row.is-pet-mode .pet-eq-slots {
  width: max-content;
  max-width: 100%;
  gap: 4px;
}

/* 6 / 12 oszlop: fix méret (1fr miatt a Gears széles panelen óriási volt) */
.hangar-ship-equip-row.is-pet-mode .pet-eq-grid-6 {
  grid-template-columns: repeat(6, var(--pet-slot-size));
}

.hangar-ship-equip-row.is-pet-mode .pet-eq-grid-12 {
  grid-template-columns: repeat(12, var(--pet-slot-size));
}

.hangar-ship-equip-row.is-pet-mode .pet-eq-grid-12 .pet-eq-cell,
.hangar-ship-equip-row.is-pet-mode .pet-eq-grid-6 .pet-eq-cell {
  width: var(--pet-slot-size);
  height: var(--pet-slot-size);
  min-width: var(--pet-slot-size);
  min-height: var(--pet-slot-size);
  max-width: var(--pet-slot-size);
  max-height: var(--pet-slot-size);
  clip-path: none;
  border-radius: 6px;
  aspect-ratio: unset;
}

.hangar-ship-equip-row.is-pet-mode .pet-eq-cell.slot img {
  width: auto;
  height: auto;
  max-width: calc(var(--pet-slot-size) - 8px);
  max-height: calc(var(--pet-slot-size) - 8px);
  object-fit: contain;
}

.hangar-ship-equip-row.is-pet-mode .pet-eq-grid-6 .pet-eq-cell.slot img,
.hangar-ship-equip-row.is-pet-mode .pet-eq-grid-12 .pet-eq-cell.slot img {
  max-width: calc(var(--pet-slot-size) - 6px);
  max-height: calc(var(--pet-slot-size) - 6px);
}

.hangar-ship-equip-row.is-pet-mode .pet-eq-cell .slot-lvl,
.hangar-ship-equip-row.is-pet-mode .pet-equip-main .slot-grid .slot-lvl {
  font-size: 9px;
  padding: 2px 4px;
}

.hangar-ship-equip-row.is-pet-mode .pet-eq-cell .pet-lock {
  font-size: 16px;
}

.ship-hexagon-wrap {
  flex-shrink: 0;
  text-align: center;
  width: 280px;
}



/* EQUIP SHIP. felirat a hexagon felett (utolsó 2 kép) */
.ship-equip-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #a8c4e8;
  text-transform: uppercase;
  margin-bottom: 12px;
  text-shadow: 0 0 8px rgba(168, 196, 232, 0.4);
}

/* Hexagon keret – egyedi arany + cián glow */
.ship-hexagon {
  width: 250px;
  height: 285px;
  margin: 0 auto 14px;
  position: relative;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(165deg, #141c28 0%, #0d121c 50%, #0a0e14 100%);
  border: 2px solid var(--hangar-gold-soft);
  box-shadow:
    0 0 18px var(--hangar-gold-glow),
    0 0 28px var(--hangar-cyan-glow),
    inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.ship-hexagon::before {
  content: '';
  position: absolute;
  inset: 3px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(180deg, #0d1525 0%, #080c12 100%);
  z-index: 0;
}

.ship-hexagon-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.ship-title {
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--hangar-gold);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-shadow: 0 0 12px var(--hangar-gold-glow), 0 1px 2px rgba(0, 0, 0, 0.4);
}

.ship-preview {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ship-preview img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.6)) drop-shadow(0 0 40px rgba(0, 180, 255, 0.4));
}

.ship-design-selector {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;

  width: 215px;
  height: 32px;

  padding: 0 10px;

  background: linear-gradient(180deg,#0e1827,#040b14);

  border: 1px solid rgba(0,200,255,0.45);
  border-radius: 20px;

  box-shadow:
      0 0 12px rgba(0,200,255,0.35),
      inset 0 0 12px rgba(0,0,0,0.8);
}

.design-label{
  font-size:11px;
  letter-spacing:1px;
  color:#7fb6da;
  text-transform:uppercase;
  flex-shrink:0;
}
.design-select{

  flex:1;

  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  background:#08121d;
  border:1px solid rgba(0,200,255,0.35);

  color:#d8f5ff;

  font-size:11px;

  height:22px;

  padding:2px 18px 2px 6px;

  border-radius:6px;

  cursor:pointer;

  background-image:url("data:image/svg+xml;utf8,<svg fill='%2300cfff' height='10' viewBox='0 0 24 24' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat:no-repeat;
  background-position:right 6px center;

}

.design-select:hover{
  border-color:#00e5ff;
  box-shadow:0 0 6px rgba(0,200,255,0.5);
}

.ship-cosmetic-block {
  width: 215px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 8px 10px;
  background: linear-gradient(180deg,#0e1827,#040b14);
  border: 1px solid rgba(0,200,255,0.45);
  border-radius: 12px;
  box-shadow:
      0 0 12px rgba(0,200,255,0.35),
      inset 0 0 12px rgba(0,0,0,0.8);
}
.ship-skins-link {
  font-size: 11px;
  color: #9ee2ff;
  text-decoration: none;
  font-weight: 700;
}
.ship-skins-link:hover { color: #fff; }
.design-thumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 148px;
  overflow-y: auto;
}
.design-thumb {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(0,200,255,0.35);
  background: #08121d;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  padding: 2px;
  flex-shrink: 0;
}
.design-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.design-thumb.active {
  border-color: #00e5ff;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}
.design-thumb.skin-overridden:not(.active) {
  opacity: 0.72;
}
.design-thumb.locked {
  opacity: 0.55;
}
.design-thumb-lock {
  position: absolute;
  right: 1px;
  bottom: 0;
  font-size: 11px;
  line-height: 1;
}
.design-thumb:hover {
  border-color: #00e5ff;
}
.design-thumb.skin-cosmetic {
  border-color: color-mix(in srgb, var(--rarity, #4f6bff) 65%, #00e5ff);
  box-shadow: 0 0 6px color-mix(in srgb, var(--rarity, #4f6bff) 35%, transparent);
}
.design-thumb.skin-cosmetic.active {
  border-color: var(--rarity, #4f6bff);
  box-shadow: 0 0 10px color-mix(in srgb, var(--rarity, #4f6bff) 55%, #00e5ff);
}
.design-thumb-skin-tag {
  position: absolute;
  left: 1px;
  top: 1px;
  padding: 0 3px;
  border-radius: 3px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #041018;
  background: linear-gradient(180deg, #7dd3fc, #38bdf8);
  line-height: 1.35;
  pointer-events: none;
}

.design-bonus-tip {
  position: fixed;
  z-index: 12000;
  width: 260px;
  pointer-events: none;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
}
.design-bonus-tip[hidden] {
  display: none !important;
}
.design-bonus-tip-inner {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 220, 255, 0.45);
  background:
    linear-gradient(165deg, rgba(12, 34, 52, 0.96), rgba(6, 14, 24, 0.98));
  color: #e8f7ff;
  font-family: "Segoe UI", Tahoma, sans-serif;
}
.design-bonus-art {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  border: 1px solid rgba(255, 200, 80, 0.35);
  background: radial-gradient(circle at 40% 30%, #1a3048, #070d14 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.design-bonus-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.design-bonus-name {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffe39a;
  margin-bottom: 4px;
  text-shadow: 0 0 10px rgba(255, 190, 60, 0.35);
}
.design-bonus-locked {
  font-size: 10px;
  color: #9bb8cc;
  margin-bottom: 6px;
}
.design-bonus-grid {
  display: grid;
  gap: 3px;
}
.design-bonus-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
}
.design-bonus-label {
  color: #a9c6d8;
  font-weight: 600;
}
.design-bonus-value {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.design-bonus-hp .design-bonus-value { color: #7dff9a; }
.design-bonus-shield .design-bonus-value { color: #6ecbff; }
.design-bonus-dmg .design-bonus-value { color: #ff8e6b; }
.design-bonus-honor .design-bonus-value { color: #ffd76a; }
.design-bonus-exp .design-bonus-value { color: #c29bff; }

.ship-select-btn {
  display: block;
  width: 100%;
  max-width: 180px;
  margin: 0 auto 12px;
  padding: 10px 20px;
  background: linear-gradient(180deg, #006088, #004466);
  border: 1px solid rgba(0, 200, 255, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.ship-select-btn:hover {
  box-shadow: 0 0 20px rgba(0, 180, 255, 0.5);
}

.ship-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.ship-item {
  background: linear-gradient(180deg, #1a2540, #0d1525);
  border: 1px solid rgba(100, 130, 180, 0.4);
  color: #b0c4e0;
  padding: 6px 12px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.ship-item:hover {
  background: linear-gradient(180deg, #2a3550, #1a2540);
  border-color: rgba(120, 150, 200, 0.6);
}

.ship-item.active {
  background: linear-gradient(180deg, #006088, #004466);
  border-color: rgba(0, 200, 255, 0.5);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.35);
}

/* ===== EQUIPMENT PANEL – referencia kinézet (sötét, neon kék, fémes) ===== */

.hangar-equipment {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.equip-panel-bg {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  border-radius: 0;
  padding: 0;
  border: none;
}

/* Függőleges stack: LÉZEREK, RAKÉTAVEZETŐK, GENERÁTOROK, EXTRÁK */
.equip-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Slot grid – vízszintesen 10 sorba: LÉZEREK 10, RAKÉTA 2, GENERÁTOROK 10, EXTRÁK 10 */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(10, 48px);
  gap: 3px;
}

#slot-rocketlauncher.slot-grid {
  grid-template-columns: repeat(2, 48px);
  justify-content: start;
  width: max-content;
  max-width: 100%;
}

#slot-generators.slot-grid,
#slot-cpu.slot-grid {
  grid-template-columns: repeat(10, 48px);
}

@media (max-width: 900px) {
  .hangar-ship-equip-row { flex-direction: column; }
  .ship-hexagon-wrap { width: 100%; }
  .slot-grid { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
  .inventory-grid { grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); }
}

/* Controls – StarHub stílus */
.inventory_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.inventory_configs {
  display: flex;
  gap: 4px;
}

.cfg-chip {
  width: 38px;
  height: 30px;
  background: linear-gradient(180deg, rgba(16, 26, 34, 0.95), rgba(8, 14, 20, 0.98));
  border: 1px solid rgba(60, 130, 150, 0.35);
  color: #8a9ab5;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 8px;
  transition: border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cfg-chip:hover {
  border-color: var(--hangar-cyan-soft);
  color: #c8d4e8;
}

.cfg-active, .cfg-chip.cfg-active {
  background: linear-gradient(180deg, rgba(212, 168, 75, 0.15), rgba(212, 168, 75, 0.06));
  border-color: var(--hangar-gold-soft);
  color: var(--hangar-gold);
  box-shadow: 0 0 12px var(--hangar-gold-glow);
}

.inventory_type {
  display: flex;
  gap: 5px;
}

.htab {
  background: linear-gradient(180deg, #2a3a4a, #1a2530);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.htab:hover {
  background: linear-gradient(180deg, #3a4a5a, #2a3540);
}

.htab-active {
  background: linear-gradient(180deg, #00a5af, #0060a2);
  border-color: #00e5ff;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

/* Equipment sections */
.equip-block {
  margin-bottom: 12px;
}

.equip-block:last-child {
  margin-bottom: 0;
}

/* Felszerelés fejléc – egyedi arany accent bal oldalon */
.equip-header {
  display: block;
  padding: 6px 10px 6px 14px;
  margin: 0 0 6px;
  background: linear-gradient(90deg, rgba(212, 168, 75, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
  border-left: 3px solid var(--hangar-gold-soft);
  border-top: 1px solid var(--hangar-border-subtle);
  border-bottom: 1px solid rgba(0, 0, 0, 0.6);
  border-radius: 0 4px 4px 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #e2e8f0;
  text-transform: uppercase;
  text-shadow: 0 0 12px var(--hangar-gold-glow), 0 1px 2px rgba(0, 0, 0, 0.6);
}

.equip-title {
  font-size: 12px;
  margin-bottom: 8px;
  color: #a8c4e8;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===== SLOT – StarHub slot stílus ===== */

.slot {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: linear-gradient(180deg, #141c28, #0d121c);
  border: 1px solid var(--hangar-cyan-soft);
  box-shadow: 0 0 10px var(--hangar-cyan-glow), inset 0 0 10px rgba(0, 0, 0, 0.5);
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.slot:hover {
  border-color: var(--hangar-gold-soft);
  box-shadow: 0 0 14px var(--hangar-gold-glow), inset 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Üres slot – tiszta keret (slot-empty osztály + :empty, ha valamiért nincs gyerek) */
.slot:empty,
.slot.slot-empty {
  background: linear-gradient(165deg, rgba(16, 24, 38, 0.98) 0%, rgba(8, 12, 20, 0.99) 100%);
  border: 1px solid rgba(0, 200, 255, 0.38);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.45) inset,
    0 0 10px rgba(0, 180, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-width: 40px;
  min-height: 40px;
}


.slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Rakéta slot: egy oszlop ne nyúljon a teljes panel szélességére — ikon maradjon kompakt */
#slot-rocketlauncher.slot-grid .slot img {
  width: auto;
  height: auto;
  max-width: 44px;
  max-height: 44px;
  object-fit: contain;
}

.slot-lvl {
  position: absolute;
  right: 2px;
  top: 2px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.9);
  padding: 2px 4px;
  border-radius: 2px;
  color: #ffd54f;
  box-shadow: 0 0 4px rgba(255, 213, 79, 0.3);
  z-index: 2;
  pointer-events: none;
}
.slot-lvl.is-upgraded,
.inv-item .item-level.is-upgraded {
  font-size: 11px;
  color: #ffe566;
  background: rgba(20, 12, 0, 0.95);
  border: 1px solid rgba(255, 200, 60, 0.85);
  box-shadow: 0 0 6px rgba(255, 200, 60, 0.45);
}

/* Rarity borders – neon glow (referencia) */
.slot.item.common {
  border-color: rgba(184, 199, 255, 0.5);
  box-shadow: 0 0 8px rgba(184, 199, 255, 0.2), inset 0 0 8px rgba(0, 0, 0, 0.5);
}
.slot.item.uncommon {
  border-color: rgba(0, 255, 100, 0.6);
  box-shadow: 0 0 8px rgba(0, 255, 100, 0.25), inset 0 0 8px rgba(0, 0, 0, 0.5);
}
.slot.item.rare {
  border-color: rgba(0, 165, 225, 0.6);
  box-shadow: 0 0 8px rgba(0, 165, 225, 0.25), inset 0 0 8px rgba(0, 0, 0, 0.5);
}
.slot.item.epic {
  border-color: rgba(255, 92, 255, 0.6);
  box-shadow: 0 0 10px rgba(255, 92, 255, 0.3), inset 0 0 8px rgba(0, 0, 0, 0.5);
}
.slot.item.legendary {
  border-color: rgba(255, 200, 0, 0.6);
  box-shadow: 0 0 10px rgba(255, 200, 0, 0.25), inset 0 0 8px rgba(0, 0, 0, 0.5);
}
.slot.item.divine {
  border-color: rgba(255, 100, 0, 0.7);
  box-shadow: 0 0 12px rgba(255, 100, 0, 0.3), inset 0 0 8px rgba(0, 0, 0, 0.5);
}

/* ===== INVENTORY PANEL (jobb) – PG Hangar ===== */

.hangar-inventory {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  height: 100%;
  overflow: hidden;
  max-width: 440px;
  padding: 14px 12px;
  border-radius: 14px;
  background: linear-gradient(165deg, var(--hangar-glass) 0%, var(--hangar-bg-panel) 100%);
  border: 1px solid rgba(212, 168, 75, 0.2);
  box-shadow:
    0 0 0 1px rgba(212, 168, 75, 0.08) inset,
    0 4px 20px rgba(0, 0, 0, 0.35),
    inset 4px 0 24px rgba(212, 168, 75, 0.05);
  align-self: stretch;
  box-sizing: border-box;
  backdrop-filter: blur(8px);
}

.hangar-inventory .quick-controls,
.hangar-inventory .inv-actions,
.hangar-inventory .inventory-tabs {
  flex-shrink: 0;
}

/* Gyors vezérlők – egyedi HUD / cockpit stílus */
.quick-controls {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  margin-bottom: 12px;
  padding: 0;
  min-height: 36px;
  flex-shrink: 0;
  box-sizing: border-box;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(0, 180, 255, 0.2);
  background: linear-gradient(180deg, rgba(0, 25, 45, 0.85) 0%, rgba(0, 15, 30, 0.9) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03) inset,
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 0 12px rgba(0, 180, 255, 0.08);
}

.quick-controls::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--hangar-gold) 0%, transparent 50%, var(--hangar-cyan) 100%);
  opacity: 0.7;
  pointer-events: none;
}

.currency-screen {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px 8px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
  white-space: nowrap;
  transition: filter 0.2s ease, background 0.2s ease;
}

.currency-screen:first-child {
  border-right: 1px solid var(--hangar-border-subtle);
}

.currency-screen:hover {
  filter: brightness(1.08);
}

/* Credits – arany HUD sáv */
.currency-screen.credits {
  color: #ffd966;
  border-left: 3px solid rgba(255, 200, 80, 0.7);
  background: linear-gradient(90deg, rgba(255, 180, 0, 0.07) 0%, transparent 100%);
  text-shadow: 0 0 10px rgba(255, 220, 120, 0.5), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.currency-screen.credits::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 200, 80, 0.04));
  pointer-events: none;
}

/* Uridium – cián HUD sáv */
.currency-screen.uridium {
  color: #5dd5ff;
  border-left: 3px solid rgba(0, 220, 255, 0.6);
  background: linear-gradient(90deg, rgba(0, 200, 255, 0.06) 0%, transparent 100%);
  text-shadow: 0 0 10px rgba(100, 230, 255, 0.5), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.currency-screen.uridium::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 220, 255, 0.04));
  pointer-events: none;
}

/* Event coins (P.E.T. slot feloldás) */
.currency-screen.event-coins {
  color: #c9a0ff;
  border-left: 3px solid rgba(180, 120, 255, 0.55);
  background: linear-gradient(90deg, rgba(140, 80, 200, 0.08) 0%, transparent 100%);
  text-shadow: 0 0 10px rgba(200, 160, 255, 0.45), 0 1px 2px rgba(0, 0, 0, 0.5);
}

.currency-screen.event-coins::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(180, 120, 255, 0.05));
  pointer-events: none;
}

.inv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  justify-content: center;
}

.inv-actions #invRepairBtn {
  flex: 1 1 100%;
}

.inv-action-btn {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.inv-action-btn.red { background: linear-gradient(180deg, #a52a2a, #8b0000); border-color: rgba(255, 80, 80, 0.4); }
.inv-action-btn.blue { background: linear-gradient(180deg, #0088aa, #006088); border-color: rgba(0, 212, 255, 0.4); }
.inv-action-btn.green { background: linear-gradient(180deg, #228b22, #006400); border-color: rgba(0, 255, 100, 0.4); }

.inv-action-btn:hover:not(.disabled) {
  filter: brightness(1.2);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.inv-action-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.3);
}

.inventory-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.inv-tab {
  background: linear-gradient(180deg, #1a2540, #0d1525);
  border: 1px solid rgba(80, 100, 140, 0.4);
    border-top-color: rgba(80, 100, 140, 0.4);
    border-right-color: rgba(80, 100, 140, 0.4);
    border-bottom-color: rgba(80, 100, 140, 0.4);
    border-left-color: rgba(80, 100, 140, 0.4);
  color: #b0c4e0;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.inv-tab:hover {
  color: #c8d4e8;
  border-color: var(--hangar-cyan-soft);
  box-shadow: 0 0 10px var(--hangar-cyan-glow);
}

.inv-tab.active {
  background: linear-gradient(180deg, rgba(212, 168, 75, 0.12), rgba(212, 168, 75, 0.06));
  border-color: var(--hangar-gold-soft);
  color: var(--hangar-gold);
  box-shadow: 0 0 12px var(--hangar-gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 6px;
  flex: 1 1 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  align-content: start;
  justify-content: flex-start;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 200, 224, 0.45) rgba(0, 0, 0, 0.35);
}

/* Drón / P.E.T. jobb inventory: 7 oszlop (SHIP marad auto-fill) */
.inventory-grid.inventory-grid--seven {
  grid-template-columns: repeat(7, 48px);
  justify-content: start;
  width: max-content;
  max-width: 100%;
}

.hangar-layout:has(.hangar-ship-equip-row.is-drone-mode),
.hangar-layout:has(.hangar-ship-equip-row.is-pet-mode) {
  grid-template-columns: 1fr minmax(330px, 440px);
}

.inventory-grid::-webkit-scrollbar {
  width: 6px;
}

.inventory-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 200, 224, 0.4);
  border-radius: 999px;
}

/* Inventory item – StarHub slot stílus */
.inv-item {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: linear-gradient(180deg, #1a2235, #0d1525);
  border: 1px solid rgba(80, 100, 140, 0.4);
  position: relative;
  cursor: pointer;
  border-radius: 3px;
  overflow: hidden;
}

.inv-item:hover {
  border-color: rgba(0, 200, 255, 0.5);
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.3);
  transform: translateY(-2px);
}

.inv-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.inv-item .item-level {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.85);
  padding: 1px 3px;
  border-radius: 2px;
  color: #c5d6ef;
  z-index: 2;
  pointer-events: none;
}
.tooltip-desc {
  max-width: 220px;
  white-space: normal;
  line-height: 1.35;
  color: #9eb6d4 !important;
  font-weight: 400;
  margin: 2px 0 4px;
}

.inv-item .item-charge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 9px;
  background: rgba(0, 0, 0, 0.85);
  padding: 1px 3px;
  border-radius: 2px;
  color: #ffe100;
}

/* Rarity – színelt sarkok (item-grade) */
.inv-item.item.common { border-color: rgba(184, 199, 255, 0.5); }
.inv-item.item.uncommon { border-color: rgba(0, 255, 100, 0.6); }
.inv-item.item.rare { border-color: rgba(0, 165, 225, 0.6); }
.inv-item.item.epic { border-color: rgba(255, 92, 255, 0.6); }
.inv-item.item.legendary { border-color: rgba(255, 200, 0, 0.7); }
.inv-item.item.divine { border-color: rgba(255, 100, 0, 0.7); }

.inv-item.inv-selected {
  box-shadow:
    0 0 0 2px rgba(0, 212, 255, 0.85),
    0 0 14px rgba(0, 180, 255, 0.45);
  z-index: 1;
}

/* —— Eladni tételeket (DarkOrbit-szerű) —— */
.do-sell-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.do-sell-modal.is-open {
  display: flex;
}

.do-sell-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 8, 20, 0.72);
}

.do-sell-modal-panel {
  position: relative;
  width: min(440px, 96vw);
  max-height: min(90vh, 560px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, #0a1018 0%, #05080d 100%);
  border: 1px solid rgba(90, 110, 130, 0.55);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 16px 48px rgba(0, 0, 0, 0.85);
}

.do-sell-modal-head {
  padding: 12px 16px;
  background: linear-gradient(180deg, #151b24, #0c1016);
  border-bottom: 1px solid rgba(60, 80, 100, 0.45);
}

.do-sell-modal-head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #e8eef5;
  letter-spacing: 0.03em;
}

.do-sell-modal-body {
  padding: 14px 16px 16px;
  color: #d8e4f0;
  font-size: 12px;
  line-height: 1.45;
  overflow: auto;
}

.do-sell-intro {
  margin: 0 0 10px;
}

.do-sell-warn {
  margin: 0 0 12px;
  font-weight: 700;
  color: #ff4444;
  text-shadow: 0 0 8px rgba(255, 60, 60, 0.35);
}

.do-sell-grid-wrap {
  max-height: 200px;
  overflow-y: auto;
  margin-bottom: 10px;
  border: 1px solid rgba(50, 65, 85, 0.5);
  background: #06090e;
}

.do-sell-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 8px;
}

.do-sell-slot {
  aspect-ratio: 1;
  min-height: 40px;
  background: linear-gradient(135deg, #121820 0%, #0a0e14 100%);
  border: 1px solid rgba(70, 90, 115, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.do-sell-slot img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  image-rendering: pixelated;
}

.do-sell-slot-empty {
  background:
    repeating-linear-gradient(
      -45deg,
      #0d1016,
      #0d1016 4px,
      #141a22 4px,
      #141a22 8px
    );
  border-color: rgba(45, 55, 70, 0.6);
}

.do-sell-qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.do-sell-qty-row label {
  color: #a8b8cc;
}

.do-sell-qty-row input {
  width: 72px;
  padding: 4px 8px;
  background: #0a0f16;
  border: 1px solid rgba(0, 200, 255, 0.35);
  color: #fff;
  border-radius: 3px;
  font-size: 13px;
}

.do-sell-price-bar {
  padding: 10px 14px;
  margin-bottom: 14px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #f5d76e;
  text-shadow: 0 0 12px rgba(245, 200, 80, 0.35);
  background: linear-gradient(180deg, #152a3d, #0d1822);
  border: 1px solid rgba(0, 200, 230, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.do-sell-price-bar.uridium {
  color: #7edbff;
  text-shadow: 0 0 12px rgba(120, 220, 255, 0.35);
}

.do-sell-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.do-sell-btn {
  min-width: 100px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 3px;
  border: 1px solid rgba(200, 210, 220, 0.35);
  background: linear-gradient(180deg, #2a323c, #1a2028);
  color: #e8eef5;
}

.do-sell-btn:hover {
  filter: brightness(1.12);
}

.do-sell-btn.do-sell-confirm {
  border-color: rgba(255, 100, 100, 0.45);
  background: linear-gradient(180deg, #6b2222, #4a1515);
  color: #fff;
}

.do-sell-btn.do-sell-cancel {
  border-color: rgba(140, 160, 180, 0.4);
}

.do-sell-btn.do-drone-repair-confirm {
  border-color: rgba(0, 200, 230, 0.55);
  background: linear-gradient(180deg, #1a4a52, #0d3038);
  color: #e8ffff;
}

.do-sell-btn.do-drone-repair-confirm:hover {
  filter: brightness(1.12);
}

/* ===== TOOLTIP ===== */

#itemTooltip {
  position: fixed;
  background: linear-gradient(180deg, #1a2235, #0d1525);
  border: 1px solid rgba(80, 100, 140, 0.5);
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s;
  z-index: 99999;
  max-width: 220px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Drón „Hatás” — külön lebegő sáv (flash / DO hangár: kompakt fekete buborék) */
#droneHatasTooltip.drone-hatas-tooltip {
  position: fixed;
  left: 0;
  top: 0;
  min-width: 200px;
  padding: 8px 12px 9px;
  font-size: 11px;
  line-height: 1.35;
  color: #e8ecf8;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.08s ease, visibility 0.08s ease;
  z-index: 100000;
  background: rgba(8, 10, 16, 0.96);
  border: 1px solid rgba(120, 140, 180, 0.35);
  border-radius: 4px;
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.5);
}

#droneHatasTooltip.drone-hatas-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
}

/* 1. sor: Hitpoint | Shield | Damage — 2. sor: értékek | | (ugyanaz a 5 oszlopos rács) */
#droneHatasTooltip .drone-hatas-tip-wrap {
  display: grid;
  grid-template-columns: minmax(52px, 1fr) auto minmax(52px, 1fr) auto minmax(52px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  justify-items: center;
  column-gap: 6px;
  row-gap: 6px;
}

#droneHatasTooltip .drone-hatas-tip-h {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #a8b6d4;
  text-align: center;
}

#droneHatasTooltip .drone-hatas-tip-h:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

#droneHatasTooltip .drone-hatas-tip-h:nth-child(2) {
  grid-column: 3;
  grid-row: 1;
}

#droneHatasTooltip .drone-hatas-tip-h:nth-child(3) {
  grid-column: 5;
  grid-row: 1;
}

#droneHatasTooltip .drone-hatas-tip-v {
  grid-row: 2;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

#droneHatasTooltip .stat-green.drone-hatas-tip-v {
  grid-column: 1;
}

#droneHatasTooltip .stat-white.drone-hatas-tip-v {
  grid-column: 3;
}

#droneHatasTooltip .stat-red.drone-hatas-tip-v {
  grid-column: 5;
}

#droneHatasTooltip .drone-hatas-tip-sep {
  grid-row: 2;
  color: rgba(180, 195, 220, 0.55);
  font-weight: 400;
  user-select: none;
  font-size: 12px;
}

/* DOM: h,h,h, zöld, |, cián, |, piros — 5. és 7. gyerek a két elválasztó */
#droneHatasTooltip .drone-hatas-tip-wrap > span:nth-child(5) {
  grid-column: 2;
}

#droneHatasTooltip .drone-hatas-tip-wrap > span:nth-child(7) {
  grid-column: 4;
}

/* Tooltipben ugyanaz a HP | pajzs | sebzés szín mint a sorban */
#droneHatasTooltip .stat-green {
  color: #00ff6a;
}
#droneHatasTooltip .stat-white {
  color: #19edd7;
}
#droneHatasTooltip .stat-red {
  color: #ff5050;
}

.drone-stat-row .drone-effect-values {
  cursor: help;
}

.tooltip-title {
  font-weight: bold;
  margin-bottom: 4px;
}

.tooltip-common { color: #b8c7ff; }
.tooltip-epic { color: #ff5cff; text-shadow: 0 0 6px #ff5cff, 0 0 12px #b200ff; }
.tooltip-stat { font-size: 12px; margin-top: 2px; }

/* ===== DRONE PANEL ===== */

.drone-panel {
  display: none;
  flex-direction: column;
  gap: 0;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.drone-panel.view-drones {
  display: flex;
}

.pet-panel {
  display: none;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.pet-panel.view-pet {
  flex: 1;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

#drone-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 4px 4px 2px;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 212, 238, 0.45) rgba(0, 0, 0, 0.4);
}

#drone-list::-webkit-scrollbar {
  width: 7px;
}

#drone-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 999px;
  margin: 4px 0;
}

#drone-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 212, 238, 0.55), rgba(0, 140, 200, 0.4));
  border-radius: 999px;
  border: 1px solid rgba(0, 212, 238, 0.25);
}

#drone-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(0, 232, 255, 0.7), rgba(0, 160, 220, 0.55));
}

.drone-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hangar-sell-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid #c9a227;
  border-radius: 3px;
  background: linear-gradient(180deg, #3a3530 0%, #1e1c18 100%);
  color: #f0d78c;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}
.hangar-sell-btn:hover {
  border-color: #ffd54a;
  color: #fff;
}

.hangar-repair-btn {
  font-family: inherit;
  font-size: 11px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid rgba(120, 200, 255, 0.45);
  border-radius: 3px;
  background: linear-gradient(180deg, #2a4a60 0%, #152a38 100%);
  color: #c8ecff;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.hangar-repair-btn:hover {
  border-color: #7edbff;
  color: #fff;
}

.drone-stat-value.stat-warning {
  color: #ffb74d;
}

/* Drone sor: fejléc + [kép | slotok | statok | design] */
.drone-row-do {
  display: grid;
  grid-template-areas:
    "head head head head"
    "img slots stats design";
  grid-template-columns: 84px 52px minmax(200px, 1fr) 52px;
  grid-template-rows: auto auto;
  align-items: center;
  padding: 8px 10px 10px;
  overflow: visible;
  background: linear-gradient(135deg, rgba(28, 42, 68, 0.55), rgba(8, 12, 22, 0.85));
  border: 1px solid rgba(0, 180, 255, 0.22);
  border-radius: 8px;
  gap: 6px 10px;
  flex-shrink: 0;
}

.drone-img-wrap.drone-img-select {
  cursor: pointer;
}

.drone-row-do.drone-row-selected {
  border-color: rgba(0, 212, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.45),
    0 0 18px rgba(0, 180, 255, 0.28);
  background: linear-gradient(90deg, rgba(0, 70, 95, 0.4), rgba(0, 0, 0, 0.45));
}

.drone-left-column {
  display: contents;
}

.drone-identifier-wrap {
  grid-area: head;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(0, 180, 255, 0.12);
}

.drone-identifier-bar {
  width: 3px;
  height: 22px;
  background: linear-gradient(180deg, #9f7aea, #7c3aed);
  border-radius: 2px;
  flex-shrink: 0;
}

.drone-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.drone-img-wrap {
  grid-area: img;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(0, 180, 255, 0.28);
  border-radius: 6px;
  overflow: hidden;
}

.drone-img {
  width: 62px;
  height: 62px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 200, 80, 0.45)) drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}

.drone-slots-wrap {
  grid-area: slots;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.drone-slots-wrap .drone-slots {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.drone-row-do .drone-slots-wrap .slot {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid rgba(0, 180, 255, 0.5);
  box-shadow: 0 0 8px rgba(0, 180, 255, 0.15);
}

.drone-stats {
  grid-area: stats;
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.45;
  overflow: visible;
  min-width: 0;
  padding: 2px 0;
}

.drone-stat-row {
  display: grid;
  grid-template-columns: minmax(118px, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}

.drone-stat-row:last-child {
  margin-bottom: 0;
}

.drone-stat-label {
  color: #94a3b8;
  flex-shrink: 0;
  white-space: nowrap;
}

.drone-stat-value {
  color: #e2e8f0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.stat-green { color: #00ff6a; }
.stat-white { color: #19edd7; }
.stat-red { color: #ff4040; }

.drone-design-wrap {
  grid-area: design;
  display: flex;
  justify-content: center;
  align-items: center;
}

.drone-design-name-cap {
  white-space: nowrap;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drone-design-slot-wrap .slot {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: repeating-linear-gradient(
    -45deg,
    #0d1525,
    #0d1525 2px,
    rgba(45, 60, 90, 0.5) 2px,
    rgba(45, 60, 90, 0.5) 4px
  );
  border: 1px solid rgba(80, 100, 140, 0.5);
}

.drone-slot-label {
  font-size: 10px;
  color: #aaa;
  margin-bottom: 4px;
}

.drone-empty {
  padding: 20px;
  text-align: center;
  color: #888;
}

/* ===== P.E.T. panel — DarkOrbit-szerű, előnézet + slot-fülek ===== */
.pet-shell {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1;
  overflow: hidden;
  box-sizing: border-box;
}
.pet-shell-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pet-shell-title {
  font-family: EurostileHeaFl, Eurostile, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #f0f4fc;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0, 200, 255, 0.2);
  flex-shrink: 0;
}
.pet-shell-top .pet-slot-strip {
  flex: 1;
  justify-content: flex-end;
  min-width: min(280px, 100%);
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.pet-shell-sub {
  font-size: 10px;
  color: #6a7f96;
  line-height: 1.35;
  margin: 0 0 8px 0;
}
.pet-shell-sub strong { color: #c5d8e8; }
.pet-shell-link {
  color: var(--hangar-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 200, 224, 0.35);
}
.pet-shell-link:hover { color: #dff6ff; }

.pet-slot-strip {
  display: flex;
  gap: 4px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pet-slot-tab {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 72px;
  padding: 6px 10px;
  font-family: Eurostile, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6a7a94;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.pet-slot-tab:hover {
  color: #b8c8e0;
  border-color: rgba(255, 255, 255, 0.15);
}
.pet-slot-tab.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 -2px 0 #fff;
}
.pet-slot-tab.is-empty-slot:not(.is-active) {
  opacity: 0.55;
}

.pet-slot-grid-eq {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}
.pet-slot-pane {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  animation: petPaneFade 0.22s ease;
}
.pet-slot-pane.is-active {
  display: flex;
}
@keyframes petPaneFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pet-slot-eq {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 10px;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(18, 26, 42, 0.95) 0%, rgba(6, 10, 18, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.45);
}
.pet-slot-eq.is-active-slot {
  border-color: rgba(0, 200, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(0, 220, 255, 0.08),
    0 0 0 1px rgba(0, 200, 255, 0.12),
    0 8px 36px rgba(0, 80, 120, 0.2);
}
.pet-slot-eq.empty {
  opacity: 0.92;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pet-slot-eq-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0;
  align-items: stretch;
  overflow: hidden;
}

/* P.E.T. — hajó-szerű sor: előnézet balra, felszerelés jobbra */
.pet-equip-row {
  display: flex;
  flex-direction: row;
  gap: 14px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.pet-preview-col {
  flex-shrink: 0;
  width: 196px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

/* Bal oszlop: szint, EP, vitals, gombok */
.pet-status-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(10, 18, 30, 0.96), rgba(5, 10, 18, 0.98));
  border: 1px solid rgba(140, 120, 255, 0.25);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 18px rgba(100, 80, 200, 0.1);
  overflow: hidden;
}

.pet-status-panel::before {
  content: 'ÁLLAPOT';
  display: block;
  padding: 6px 12px 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(200, 180, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(140, 100, 220, 0.12) 0%, transparent 55%);
}

.pet-status-panel > .pet-xp-card {
  margin: 8px 8px 0;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0 2px 4px;
}

.pet-vitals-panel {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 8px;
}

.pet-stat-line {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 7px 9px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.pet-stat-line--fuel {
  border-left: 3px solid rgba(0, 212, 238, 0.65);
}

.pet-stat-line--hp {
  border-left: 3px solid rgba(100, 220, 140, 0.65);
}

.pet-stat-line--heat {
  border-left: 3px solid rgba(255, 160, 80, 0.65);
}

.pet-stat-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a92aa;
  flex-shrink: 0;
}

.pet-stat-values {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px 6px;
  min-width: 0;
  text-align: right;
}

.pet-vitals-panel .pet-fuel-inline {
  font-size: 13px;
  font-weight: 700;
  color: #7ee8ff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 10px rgba(0, 200, 255, 0.35);
}

.pet-vitals-panel .pet-stat-hint {
  font-size: 10px;
  font-weight: 600;
  color: rgba(140, 190, 220, 0.85);
  font-variant-numeric: tabular-nums;
}

.pet-vitals-panel .pet-stat-inline.pet-stat-max-hp {
  font-size: 13px;
  font-weight: 700;
  color: #9ef0b0;
  text-shadow: 0 0 8px rgba(80, 220, 120, 0.3);
}

.pet-vitals-panel .pet-stat-inline.pet-stat-heat {
  font-size: 13px;
  font-weight: 700;
  color: #ffc88a;
  text-shadow: 0 0 8px rgba(255, 140, 60, 0.25);
}

.pet-actions-panel {
  padding: 6px 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.15));
}

.btn-pet-slot-status {
  width: 100%;
  padding: 7px 10px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px !important;
  border: 1px solid rgba(0, 200, 224, 0.35) !important;
  background: linear-gradient(180deg, rgba(0, 80, 100, 0.35), rgba(0, 40, 60, 0.5)) !important;
  color: #b8ecff !important;
  cursor: pointer;
}

.btn-pet-slot-status:disabled {
  opacity: 0.85;
  cursor: default;
  border-color: rgba(0, 220, 255, 0.5) !important;
  background: linear-gradient(180deg, rgba(0, 120, 140, 0.4), rgba(0, 60, 80, 0.55)) !important;
  color: #e8fcff !important;
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.2);
}

.pet-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.btn-pet-action-btn {
  padding: 8px 6px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  border-radius: 6px !important;
  line-height: 1.2;
  text-decoration: none;
  box-sizing: border-box;
}

.btn-pet-action-btn--wide {
  grid-column: 1 / -1;
}

/* P.E.T. — elsődleges slot + üzemanyag (kártyás elrendezés) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.pet-toolbar {
  margin: 0 0 10px;
  padding: 0;
}

.pet-toolbar-grid {
  display: grid;
  grid-template-columns: minmax(168px, 200px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.pet-toolbar-card {
  padding: 8px 10px 10px;
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(10, 18, 30, 0.96), rgba(4, 10, 18, 0.98));
  border: 1px solid rgba(0, 200, 224, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.pet-toolbar-card--fuel {
  border-color: rgba(255, 209, 102, 0.28);
  background: linear-gradient(165deg, rgba(14, 20, 12, 0.96), rgba(6, 10, 8, 0.98));
}

.pet-toolbar-card-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pet-toolbar-card-ico {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.pet-toolbar-card-ico--cyan {
  background: var(--hangar-cyan, #00d4ee);
  color: var(--hangar-cyan, #00d4ee);
}

.pet-toolbar-card-ico--fuel {
  background: #ffd166;
  color: #ffd166;
}

.pet-toolbar-card-title {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hangar-cyan, #a8e8ff);
  line-height: 1.2;
}

.pet-toolbar-card--fuel .pet-toolbar-card-title {
  color: #ffe8a8;
}

.pet-toolbar-card-badge {
  margin-left: auto;
  font-size: 8px;
  font-weight: 600;
  color: rgba(180, 200, 220, 0.7);
  letter-spacing: 0.04em;
}

.pet-toolbar-card-hint {
  margin: 0;
  font-size: 8px;
  line-height: 1.35;
  color: rgba(160, 180, 200, 0.65);
}

.pet-active-slot-select {
  width: 100%;
  height: 30px;
  font-size: 11px;
}

.pet-fuel-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  flex: 1 1 auto;
}

.pet-fuel-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 8px 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(6, 14, 24, 0.95), rgba(2, 6, 12, 0.98));
  border: 1px solid rgba(0, 200, 224, 0.22);
  min-width: 0;
}

.pet-fuel-card-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
  flex: 1 1 auto;
}

.pet-fuel-card-liters {
  font-size: 13px;
  font-weight: 800;
  color: #ffe8a8;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.pet-fuel-card-price {
  font-size: 11px;
  font-weight: 700;
  color: #7ee8ff;
  line-height: 1.2;
}

.pet-fuel-card-list {
  font-size: 8px;
  color: rgba(160, 180, 200, 0.55);
  text-decoration: line-through;
  line-height: 1.1;
}

.pet-fuel-buy-btn {
  width: 100%;
  padding: 6px 8px;
  border: none;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #041208;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(180deg, #5ecf8a 0%, #2a8f4a 55%, #1e6b38 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.25) inset,
    0 2px 8px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.pet-fuel-buy-btn:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.3) inset,
    0 0 14px rgba(80, 220, 140, 0.35);
}

.pet-fuel-buy-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.pet-fuel-buy-btn:disabled {
  opacity: 0.5;
  cursor: wait;
  filter: grayscale(0.4);
}

@media (max-width: 720px) {
  .pet-toolbar-grid {
    grid-template-columns: 1fr;
  }
  .pet-fuel-shop-grid {
    grid-template-columns: repeat(3, minmax(88px, 1fr));
  }
}

.pet-actions-grid--compact {
  grid-template-columns: 1fr 1fr;
}

.pet-actions-panel--solo {
  padding-top: 4px;
}

.btn-pet-launch-primary.btn-pet-action-btn {
  border-color: rgba(0, 230, 255, 0.5) !important;
  background: linear-gradient(180deg, rgba(0, 150, 190, 0.55), rgba(0, 80, 120, 0.6)) !important;
  font-weight: 800 !important;
}

.btn-pet-off.btn-pet-action-btn {
  border-color: rgba(180, 100, 100, 0.45) !important;
  background: linear-gradient(180deg, rgba(80, 30, 35, 0.5), rgba(40, 15, 20, 0.6)) !important;
  color: #ffd0d0 !important;
}

.pet-equip-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

/* P.E.T. — Name / Pet-Design / Gears (kártyás rács) */
.pet-config-panel {
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(165deg, rgba(10, 18, 30, 0.96), rgba(5, 10, 18, 0.98));
  border: 1px solid rgba(0, 200, 224, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 20px rgba(0, 160, 200, 0.08);
  overflow: hidden;
}

.pet-config-panel::before {
  content: 'BEÁLLÍTÁSOK';
  display: block;
  padding: 6px 12px 5px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: rgba(180, 200, 220, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(212, 168, 75, 0.1) 0%, transparent 55%);
}

.pet-config-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}

.pet-config-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(6, 14, 26, 0.92), rgba(2, 8, 16, 0.96));
  border: 1px solid rgba(0, 200, 224, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pet-config-field:hover {
  border-color: rgba(0, 212, 238, 0.28);
}

.pet-config-field--wide {
  grid-column: 1 / -1;
}

.pet-config-field--wide .pet-config-lbl::before {
  background: linear-gradient(180deg, rgba(180, 120, 255, 0.9), rgba(120, 80, 200, 0.7));
  box-shadow: 0 0 8px rgba(160, 120, 255, 0.35);
}

.pet-config-lbl {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hangar-cyan);
  line-height: 1.2;
  margin: 0;
  cursor: default;
}

.pet-config-lbl::before {
  content: '';
  flex-shrink: 0;
  width: 3px;
  height: 12px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--hangar-cyan), rgba(0, 120, 160, 0.6));
  box-shadow: 0 0 6px var(--hangar-cyan-glow);
}

.pet-config-field:first-child .pet-config-lbl {
  color: #a8d4f0;
}

.pet-config-field:nth-child(2) .pet-config-lbl {
  color: var(--hangar-gold);
}

.pet-config-field:nth-child(2) .pet-config-lbl::before {
  background: linear-gradient(180deg, var(--hangar-gold), rgba(160, 120, 40, 0.7));
  box-shadow: 0 0 6px var(--hangar-gold-glow);
}

.pet-config-control {
  display: flex;
  align-items: stretch;
  gap: 6px;
  min-width: 0;
}

.pet-config-control--solo {
  display: block;
}

.pet-config-control--solo .pet-config-select {
  width: 100%;
}

.pet-config-input,
.pet-config-select {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 12px;
  font-size: 12px;
  font-family: Eurostile, 'Segoe UI', sans-serif;
  font-weight: 600;
  color: #e8f4ff;
  border-radius: 6px;
  border: 1px solid rgba(0, 200, 224, 0.32);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pet-config-input {
  background: linear-gradient(180deg, rgba(4, 12, 22, 0.98), rgba(0, 6, 14, 0.99));
}

.pet-config-select {
  padding-right: 30px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  color-scheme: dark;
  background-color: #040c16;
  background-image: linear-gradient(180deg, rgba(4, 12, 22, 0.98), rgba(0, 6, 14, 0.99)),
    url("data:image/svg+xml;utf8,<svg fill='%2300d4ee' height='10' viewBox='0 0 24 24' width='10' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 11px center;
  background-size: auto, 12px;
}

.pet-config-select option {
  background-color: #0a1420;
  color: #e8f4ff;
}

.pet-config-input::placeholder {
  color: rgba(120, 150, 180, 0.5);
  font-weight: 500;
}

.pet-config-input:hover,
.pet-config-select:hover {
  border-color: rgba(0, 212, 238, 0.5);
}

.pet-config-input:focus,
.pet-config-select:focus {
  outline: none;
  border-color: rgba(0, 212, 238, 0.7);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.45),
    0 0 0 2px rgba(0, 212, 238, 0.12),
    0 0 12px rgba(0, 200, 224, 0.18);
}

.btn-pet-config-save {
  flex: 0 0 auto;
  align-self: stretch;
  min-width: 54px;
  height: auto;
  min-height: 34px;
  padding: 0 14px !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px !important;
  border: 1px solid rgba(212, 168, 75, 0.5) !important;
  background: linear-gradient(180deg, rgba(228, 184, 92, 0.28), rgba(140, 100, 35, 0.45)) !important;
  color: #fff8e8 !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 12px rgba(212, 168, 75, 0.15);
  cursor: pointer;
  transition: filter 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-pet-config-save:hover {
  filter: brightness(1.1);
  border-color: rgba(240, 200, 120, 0.75) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 16px rgba(212, 168, 75, 0.3);
}

@media (max-width: 780px) {
  .pet-equip-row {
    flex-direction: column;
  }
  .pet-preview-col {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .pet-preview-frame--sm {
    max-width: 72px;
    height: 72px;
    min-height: 72px;
  }
  .pet-status-panel {
    flex: 1 1 140px;
    min-width: 140px;
  }
  .pet-config-fields {
    grid-template-columns: 1fr;
  }
  .pet-config-field--wide {
    grid-column: 1;
  }
}

.pet-preview-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--hangar-cyan);
  padding: 6px 10px;
  border-radius: 4px;
  background: rgba(0, 200, 255, 0.1);
  border: 1px solid rgba(0, 200, 255, 0.25);
  text-align: center;
}
.pet-preview-badge--float {
  position: absolute;
  top: 4px;
  left: 4px;
  z-index: 2;
  padding: 2px 6px;
  font-size: 8px;
  margin: 0;
}
.pet-preview-frame {
  position: relative;
  width: 100%;
  max-width: 96px;
  height: 96px;
  margin: 0;
  aspect-ratio: 1;
  border-radius: 10px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 75%, rgba(0, 100, 160, 0.35), transparent 55%),
    radial-gradient(ellipse at 50% 20%, rgba(255, 200, 120, 0.08), transparent 45%),
    #050a12;
  border: 1px solid rgba(0, 200, 255, 0.35);
  box-shadow:
    inset 0 0 50px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(0, 160, 220, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pet-preview-frame--sm {
  max-width: 96px;
  height: 96px;
  min-height: 96px;
}
.pet-preview-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.pet-preview-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(120, 200, 255, 0.4));
  position: relative;
  z-index: 1;
}

.pet-top-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

/* P.E.T. szint + EP */
.pet-xp-card {
  padding: 8px 10px 9px;
  border-radius: 8px;
  background: linear-gradient(165deg, rgba(12, 22, 42, 0.95), rgba(6, 10, 20, 0.98));
  border: 1px solid rgba(140, 120, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 16px rgba(100, 80, 200, 0.12);
}

.pet-status-panel > .pet-xp-card {
  border-radius: 0;
}

.pet-xp-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.pet-lvl-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #f0e8ff;
  background: linear-gradient(180deg, rgba(130, 90, 230, 0.55), rgba(55, 35, 110, 0.75));
  border: 1px solid rgba(190, 160, 255, 0.55);
  box-shadow: 0 0 14px rgba(150, 110, 255, 0.25);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.pet-xp-remain {
  font-size: 10px;
  font-weight: 600;
  color: #c4b4e8;
  text-align: right;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.pet-xp-bar-track {
  height: 12px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(130, 110, 200, 0.45);
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}

.pet-xp-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 5px;
  background: linear-gradient(90deg, #5a38b0, #9b6dff, #e0c8ff);
  box-shadow: 0 0 12px rgba(155, 109, 255, 0.5);
  transition: width 0.4s ease;
}

.pet-xp-caption {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 700;
  color: #d8c8ff;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  text-align: center;
}

.pet-xp-nums {
  color: #f0e8ff;
  letter-spacing: 0.02em;
}
.pet-field-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pet-field-row--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
}
.pet-field-row--split > div {
  flex: 1;
  min-width: 120px;
}
.pet-field-lbl {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6d8098;
}
.pet-field-inline {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pet-field-inline .pet-rename-eq-input {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  font-size: 11px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 8, 20, 0.65);
  color: #f0f6ff;
}
.pet-fuel-inline {
  font-size: 13px;
  font-weight: 700;
  color: #7ee0ff;
  font-variant-numeric: tabular-nums;
}
.pet-stat-hint,
.pet-stat-inline {
  font-size: 11px;
  color: rgba(180, 200, 220, 0.85);
  margin-left: 6px;
  font-variant-numeric: tabular-nums;
}
.pet-eq-cell.slot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.inv-pet-gear img,
.inv-pet-proto img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.inv-pet-proto {
  cursor: grab;
}
.pet-select-inline {
  width: 100%;
  max-width: 100%;
  padding: 5px 6px;
  font-size: 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 8, 20, 0.65);
  color: #e8eef8;
}
.pet-inline-design {
  display: flex;
  gap: 6px;
  align-items: center;
}
.pet-inline-design .pet-design-eq-select {
  flex: 1;
  min-width: 0;
}
.btn-pet-eq-mini {
  padding: 5px 8px !important;
  font-size: 10px !important;
  border-radius: 4px;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-pet-active-slot:not(:disabled) {
  border-color: rgba(23, 235, 230, 0.45);
  background: rgba(0, 100, 95, 0.35);
}
.btn-pet-launch-primary {
  background: linear-gradient(180deg, rgba(0, 140, 180, 0.55), rgba(0, 80, 110, 0.65));
  border-color: rgba(0, 220, 255, 0.45);
  font-weight: 700;
}

.pet-slot-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* P.E.T. felszerelés: 4 vízszintes sor — kompakt, mint a hajó equip-stack */
.pet-eq-panel {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.pet-eq-panel--stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.pet-eq-row-do {
  margin: 0;
}
.pet-eq-block {
  margin: 0;
}
/* Sötét fémsáv fejléc, mint a referencián */
.pet-eq-h {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f2f6fc;
  margin: 0 0 8px 0;
  padding: 8px 12px 8px 14px;
  background: linear-gradient(180deg, rgba(38, 48, 68, 0.88) 0%, rgba(14, 18, 28, 0.94) 100%);
  border: 1px solid rgba(110, 130, 170, 0.35);
  border-radius: 2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -1px 0 rgba(0, 0, 0, 0.45),
    0 2px 8px rgba(0, 0, 0, 0.35);
}
.pet-eq-h-text {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.pet-eq-lv {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: none;
  color: rgba(180, 200, 220, 0.75);
}
.pet-eq-slots {
  display: grid;
  gap: 3px;
  align-items: stretch;
  width: max-content;
  max-width: 100%;
}

/* P.E.T. lézer / generátor — mint a hajó felszerelés (slot-grid) */
.pet-equip-main .equip-block.pet-equip-block {
  margin-bottom: 10px;
}

.pet-equip-main .equip-header .pet-eq-lv {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: none;
  color: rgba(168, 196, 232, 0.85);
  margin-left: 4px;
}

.pet-equip-main .slot-grid .slot.locked {
  opacity: 0.7;
  background: linear-gradient(165deg, rgba(16, 24, 38, 0.98) 0%, rgba(8, 12, 20, 0.99) 100%);
  border: 1px solid rgba(80, 100, 140, 0.3);
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.45);
  cursor: default;
}

.pet-equip-main .slot-grid .slot.locked.locked-purchasable {
  cursor: pointer;
  opacity: 0.88;
  border-color: rgba(0, 200, 255, 0.35);
}

.pet-equip-main .slot-grid .slot.locked .pet-lock {
  font-size: 13px;
  opacity: 0.85;
}

.pet-eq-grid-6 {
  grid-template-columns: repeat(6, 48px);
}
.pet-eq-grid-10 {
  grid-template-columns: repeat(10, 48px);
}
.pet-eq-grid-12 {
  grid-template-columns: repeat(12, 40px);
}
.pet-eq-grid-12 .pet-eq-cell {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  max-width: 40px;
  max-height: 40px;
}
/* 22 generátor cella: 11 + 11 (két sor) */
.pet-eq-grid-22 {
  grid-template-columns: repeat(11, minmax(22px, 1fr));
  max-width: 100%;
}
.pet-eq-grid-3 {
  grid-template-columns: repeat(3, minmax(36px, 1fr));
  max-width: 100%;
}
/* Slot: „fém” keret, enyhén vágott sarkok */
.pet-eq-cell {
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  max-width: 48px;
  max-height: 48px;
  aspect-ratio: unset;
  border: 1px solid rgba(140, 160, 190, 0.45);
  border-radius: 3px;
  background: linear-gradient(165deg, #1a2234 0%, #0c121f 55%, #080c14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -2px 6px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 0, 0, 0.35);
  clip-path: polygon(4px 0%, calc(100% - 4px) 0%, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0% calc(100% - 4px), 0% 4px);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pet-eq-cell.slot:hover {
  border-color: rgba(0, 200, 255, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 12px rgba(0, 180, 255, 0.18);
}
.pet-eq-cell.slot.item.legendary,
.pet-eq-cell.slot.item.epic {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 10px rgba(255, 160, 60, 0.22);
}
.pet-eq-cell.empty,
.pet-eq-cell.slot.empty {
  cursor: pointer;
  background: repeating-linear-gradient(
    -45deg,
    #0a1018,
    #0a1018 3px,
    rgba(35, 48, 68, 0.45) 3px,
    rgba(35, 48, 68, 0.45) 6px
  );
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}
.pet-eq-cell.is-target,
.slot.is-target {
  outline: 2px solid rgba(80, 220, 180, 0.95) !important;
  box-shadow: 0 0 10px rgba(60, 200, 160, 0.55), inset 0 0 8px rgba(40, 180, 140, 0.25) !important;
  cursor: pointer;
}
.slot.item {
  cursor: pointer;
}
.slot.slot-empty {
  cursor: pointer;
}
.pet-eq-cell.locked {
  opacity: 0.72;
  background: linear-gradient(165deg, #121820 0%, #080c12 100%);
}
.pet-eq-cell.locked.locked-purchasable {
  cursor: pointer;
  opacity: 0.88;
}
.pet-eq-cell.locked.locked-purchasable:hover {
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35);
}
.pet-eq-cell .pet-lock {
  font-size: 14px;
  opacity: 0.88;
  filter: grayscale(0.15);
}
.pet-eq-cell.slot img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6));
}
.pet-eq-cell .slot-lvl {
  position: absolute;
  bottom: 2px;
  right: 2px;
  font-size: 8px;
  color: #ffe100;
  background: rgba(0, 0, 0, 0.8);
  padding: 0 3px;
  border-radius: 2px;
}

.pet-slot-eq-empty-do {
  text-align: center;
  padding: 32px 20px;
  max-width: 320px;
  margin: 0 auto;
}
.pet-empty-visual {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 12px;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
}
.pet-empty-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a8b8cc;
  margin: 0 0 8px 0;
}
.pet-empty-desc {
  font-size: 12px;
  color: #6a7a90;
  line-height: 1.5;
  margin: 0;
}

.inv-pet-gear img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.pet-inv-hint {
  grid-column: 1 / -1;
  font-size: 11px;
  color: #8ab;
  padding: 12px 8px;
  text-align: center;
}
.pet-eq-cell.pet-proto {
  font-size: 9px;
  color: #9cf;
  padding: 2px;
  text-align: center;
  word-break: break-all;
}

.btn-pet-eq {
  font-size: 10px;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 200, 255, 0.45);
  background: rgba(0, 60, 90, 0.4);
  color: #dff6ff;
  cursor: pointer;
  font-family: Eurostile, sans-serif;
}
.btn-pet-eq:hover { filter: brightness(1.08); }
.btn-pet-eq:disabled { opacity: 0.45; cursor: not-allowed; }
a.btn-pet-fuel-shop {
  text-decoration: none;
  display: inline-block;
  box-sizing: border-box;
  text-align: center;
  line-height: 1.2;
}
a.btn-pet-fuel-shop:hover { filter: brightness(1.08); color: #dff6ff; }
.pet-gear-eq-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* P.E.T. inventory fülek — aláhúzás, mint a referencia */
.pet-inv-tabs-do {
  gap: 4px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.pet-inv-tabs-do .inv-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #7d8fa8;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  box-shadow: none;
}
.pet-inv-tabs-do .inv-tab:hover {
  color: #c5d4e8;
  box-shadow: none;
}
.pet-inv-tabs-do .inv-tab.active {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
  background: transparent;
  box-shadow: none;
}

/* ===== GLOBAL OVERRIDES ===== */

html {
  box-sizing: border-box;
  height: 100%;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html, body {
  background: #070b12;
  font-family: Eurostile, 'Segoe UI', sans-serif;
  color: #e8eef6;
  margin: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.page.starhub .tooltip-inner {
  max-width: 300px;
}

body:not(.eq-map-embed) {
  background:
    radial-gradient(ellipse 120% 70% at 50% -10%, rgba(0, 212, 238, 0.07), transparent 55%),
    url("/assets/background/background-main.jpg") no-repeat center center fixed;
  background-size: cover, cover;
}

body.eq-map-embed {
  background: radial-gradient(ellipse 100% 80% at 50% 0%, rgba(0, 200, 224, 0.08), transparent 50%),
    linear-gradient(180deg, #070a10 0%, #040508 100%);
}

.page.starhub .starhub-container .hangar-main-panel.blurBox::-webkit-scrollbar {
  width: 6px;
}

.page.starhub .starhub-container .hangar-main-panel.blurBox::-webkit-scrollbar-thumb {
  background: rgba(0, 212, 238, 0.4);
  border-radius: 999px;
}

/* Single P.E.T. — hide multi-slot tabs */
.pet-slot-tabs[hidden],
.pet-slot-tabs:has(.pet-slot-tab:only-child) {
  display: none !important;
}
