/* ==================== MASTER MODAL DISPLAY CONTROLS ==================== */
.modal-overlay,
.modal-overlay#hangar-modal,
.modal-overlay#equip-modal,
.modal-overlay#trade-modal,
.modal-overlay#clan-modal,
.modal-overlay#admin-modal {
  display: none !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000 !important;
  align-items: center !important;
  justify-content: center !important;
}

.modal-overlay.open,
.modal-overlay#hangar-modal.open,
.modal-overlay#equip-modal.open,
.modal-overlay#trade-modal.open,
.modal-overlay#clan-modal.open,
.modal-overlay#admin-modal.open {
  display: flex !important;
}
/* ======================================================================== */

/* ==========================================================================
   🌌 DARK ORION - STILURI GENERALE ȘI TEMĂ SCI-FI PENTRU MENIURI
   Acestea sunt stilurile folosite de toate interfețele și ferestrele modale.
   ========================================================================== */

:root {
  --bg-dark: #070a10;
  --panel-bg: rgba(14, 20, 31, 0.95);
  --border-cyan: #00d2d3;
  --border-gold: #ffd32a;
  --border-red: #ff4757;
  --cyan-glow: rgba(0, 210, 211, 0.45);
  --gold-glow: rgba(255, 211, 42, 0.45);
  --red-glow: rgba(255, 71, 87, 0.45);
  --font-main: 'Rajdhani', sans-serif;
  --font-title: 'Orbitron', monospace;
  --font-mono: 'Share Tech Mono', monospace;
}

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

/* body reset removed to protect game canvas */

/* Ferestre Modale Principale */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 6, 14, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-card {
  width: 880px;
  max-width: 95vw;
  max-height: 90vh;
  background: linear-gradient(180deg, #101726 0%, #080c14 100%);
  border: 2px solid var(--border-cyan);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 0 50px var(--cyan-glow), inset 0 0 30px rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  padding-bottom: 12px;
}

.modal-header h2 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--border-cyan);
  text-shadow: 0 0 14px var(--cyan-glow);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close {
  background: transparent;
  border: none;
  font-size: 22px;
  color: #8395a7;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-close:hover { color: #fff; }

/* Butoane Tab */
.do-tab-btn {
  background: rgba(14, 25, 42, 0.7);
  border: 1px solid rgba(0, 210, 211, 0.3);
  color: #8fa0b5;
  font-family: var(--font-title);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.do-tab-btn.active, .do-tab-btn:hover {
  background: rgba(0, 210, 211, 0.18);
  border-color: var(--border-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(0, 210, 211, 0.3);
}

/* Grile de Magazin & Nave */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.shop-item {
  background: rgba(16, 26, 42, 0.85);
  border: 1px solid rgba(0, 210, 211, 0.25);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.shop-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-cyan);
  box-shadow: 0 6px 20px rgba(0, 210, 211, 0.25);
}

/* Sloturi de Echipare */
.do-slot-box {
  width: 58px;
  height: 58px;
  background: #090e18;
  border: 1px solid #1c2b3d;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}
.do-slot-box:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 0 12px var(--cyan-glow);
}
.do-slot-box.equipped {
  border-color: #00d2d3;
  background: rgba(0, 210, 211, 0.08);
}
.do-slot-icon { font-size: 22px; }
.do-slot-num { font-size: 9px; font-weight: 800; color: #8fa0b5; margin-top: 2px; }

/* Butoane Cyber */
.cyber-btn {
  background: linear-gradient(135deg, #0984e3 0%, #00cec9 100%);
  border: none;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  font-family: var(--font-title);
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.2s;
  box-shadow: 0 4px 15px rgba(0, 206, 201, 0.3);
}
.cyber-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-1px);
}



/* ========== STYLES FROM 01_meniu_hangar_nave.html ========== */

    :root {
      --cyan: #00e5ff;
      --cyan-soft: rgba(0, 229, 255, 0.12);
      --gold: #ffaa00;
      --orange: #ff7700;
      --green: #00ff88;
      --red: #ff2255;
      --violet: #a855f7;

      --panel: rgba(8, 12, 22, 0.96);
      --panel-light: rgba(13, 23, 38, 0.90);
      --border: rgba(0, 229, 255, 0.25);
      --text: #e8f4ff;
      --muted: #8297ad;
    }

    * {
      box-sizing: border-box;
    }

    /* Fundal hangar */

    /* body reset removed to protect game canvas */

    /* Overlay principal */

    .modal-overlay#hangar-modal {  
      position: fixed;
      inset: 0;
      z-index: 1000;

      display: none;
      align-items: center;
      justify-content: center;

      padding: 15px;

      overflow-y: auto;

      background: rgba(1, 4, 12, 0.88);

      backdrop-filter: blur(9px);
      -webkit-backdrop-filter: blur(9px);
      }

    /* Fereastra hangar */

    .modal-card {
      width: 880px;
      max-width: 95vw;

      max-height: 92vh;
      display: flex;
      flex-direction: column;

      overflow: hidden;

      background:
        linear-gradient(145deg, rgba(12, 22, 37, 0.98), rgba(4, 9, 18, 0.99));

      border: 1px solid rgba(0, 229, 255, 0.55) !important;
      border-radius: 10px;

      box-shadow:
        0 0 35px rgba(0, 229, 255, 0.16),
        0 0 90px rgba(0, 0, 0, 0.8),
        inset 0 0 35px rgba(0, 229, 255, 0.025) !important;

      position: relative;
    }

    .modal-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 10%;
      right: 10%;
      height: 2px;
      z-index: 2;

      background: linear-gradient(90deg, transparent, var(--cyan), transparent);
      box-shadow: 0 0 14px var(--cyan);
    }

    /* Header */

    .modal-header {
      flex-shrink: 0;

      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;

      padding: 17px 20px;

      background: linear-gradient(
        90deg,
        rgba(0, 229, 255, 0.11),
        rgba(0, 229, 255, 0.025)
      );

      border-bottom: 1px solid rgba(0, 229, 255, 0.30) !important;
    }

    #hangar-title {
      margin: 0;

      color: var(--cyan) !important;

      font-family: 'Orbitron', sans-serif;
      font-size: 15px;
      font-weight: 900;
      letter-spacing: 1px;

      text-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
    }

    #hangar-title span {
      line-height: 1.5;
    }

    /* Buton reductor 3D */

    .modal-header button:not(.btn-close) {
      flex-shrink: 0;

      padding: 8px 12px !important;

      color: var(--cyan) !important;
      background: rgba(0, 229, 255, 0.08) !important;

      border: 1px solid rgba(0, 229, 255, 0.55) !important;
      border-radius: 4px !important;

      font-family: 'Share Tech Mono', monospace !important;
      font-size: 10px !important;
      font-weight: bold;

      cursor: pointer;
      transition: 0.25s ease;
    }

    .modal-header button:not(.btn-close):hover {
      background: rgba(0, 229, 255, 0.18) !important;
      box-shadow: 0 0 15px rgba(0, 229, 255, 0.25);
    }

    .btn-close {
      flex-shrink: 0;

      width: 33px;
      height: 33px;

      display: flex;
      align-items: center;
      justify-content: center;

      color: var(--red) !important;
      background: rgba(255, 34, 85, 0.08) !important;

      border: 1px solid rgba(255, 34, 85, 0.4) !important;
      border-radius: 4px;

      font-size: 16px;
      cursor: pointer;
      transition: 0.25s ease;
    }

    .btn-close:hover {
      color: white !important;
      background: var(--red) !important;
      box-shadow: 0 0 15px rgba(255, 34, 85, 0.35);
    }

    /* Conținut interior */

    .modal-card > .modal-header,
    .modal-card > .do-tab-btn,
    .modal-card > div {
      position: relative;
    }

    .modal-card > div:not(.modal-header) {
      flex-shrink: 0;
    }

    /* Taburi hangar */

    .modal-card > div:has(> #tab-hangar-my-ships) {
      display: flex;
      gap: 10px !important;

      margin: 0 !important;
      padding: 15px 18px 11px !important;

      border-bottom: 1px solid rgba(0, 229, 255, 0.16) !important;
    }

    .do-tab-btn {
      flex: 1;
      min-width: 0;

      padding: 12px 9px !important;

      color: var(--muted);
      background: rgba(12, 23, 38, 0.75);

      border: 1px solid rgba(0, 229, 255, 0.17);
      border-radius: 4px;

      font-family: 'Orbitron', sans-serif;
      font-size: 10px !important;
      font-weight: 800;
      letter-spacing: 0.5px;

      cursor: pointer;
      transition: 0.25s ease;
    }

    .do-tab-btn:hover {
      color: white;
      border-color: rgba(0, 229, 255, 0.6);
      background: rgba(0, 229, 255, 0.07);
    }

    .do-tab-btn.active {
      color: var(--cyan);
      background: rgba(0, 229, 255, 0.12);

      border-color: var(--cyan);

      box-shadow:
        inset 0 0 12px rgba(0, 229, 255, 0.05),
        0 0 12px rgba(0, 229, 255, 0.12);

      text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
    }

    /* Panouri nave și magazin */

    #hangar-my-ships-view,
    #hangar-store-view {
      flex: 1;
      min-height: 0;

      max-height: 520px;

      padding: 15px 18px 20px !important;

      overflow-y: auto;
      overscroll-behavior: contain;

      scrollbar-width: thin;
      scrollbar-color: var(--cyan) rgba(0, 0, 0, 0.3);
    }

    #hangar-my-ships-view::-webkit-scrollbar,
    #hangar-store-view::-webkit-scrollbar {
      width: 5px;
    }

    #hangar-my-ships-view::-webkit-scrollbar-track,
    #hangar-store-view::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.3);
    }

    #hangar-my-ships-view::-webkit-scrollbar-thumb,
    #hangar-store-view::-webkit-scrollbar-thumb {
      background: rgba(0, 229, 255, 0.6);
      border-radius: 10px;
    }

    /* Mesaj informativ */

    #hangar-my-ships-view > div:first-child,
    #hangar-store-view > div:first-child {
      padding: 12px 14px !important;
      margin-bottom: 16px !important;

      border-radius: 4px !important;

      font-size: 12px !important;
      line-height: 1.6;

      background: rgba(0, 229, 255, 0.065) !important;
      border: 1px solid rgba(0, 229, 255, 0.25) !important;
      border-left: 3px solid var(--cyan) !important;

      color: #9bd9e8 !important;
    }

    #hangar-store-view > div:first-child {
      background: rgba(255, 170, 0, 0.07) !important;
      border-color: rgba(255, 170, 0, 0.28) !important;
      border-left-color: var(--gold) !important;

      color: #ffd98a !important;
    }

    #hangar-my-ships-view > div:first-child strong,
    #hangar-store-view > div:first-child strong {
      color: white;
      font-family: 'Orbitron', sans-serif;
      font-size: 10px;
    }

    /* Grila de nave */

    .shop-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 15px;

      width: 100%;
    }

    /* Card navă */

    .shop-item {
      min-width: 0;
      position: relative;

      display: flex;
      flex-direction: column;
      align-items: stretch;

      padding: 15px;

      overflow: hidden;

      background:
        linear-gradient(145deg, rgba(16, 29, 47, 0.96), rgba(5, 11, 21, 0.98));

      border: 1px solid rgba(0, 229, 255, 0.20);
      border-radius: 6px;

      transition: 0.25s ease;
    }

    .shop-item::before {
      content: "";
      position: absolute;
      top: 0;
      left: 12%;
      right: 12%;
      height: 1px;

      background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent);
    }

    .shop-item:hover {
      transform: translateY(-3px);

      border-color: rgba(0, 229, 255, 0.7);

      box-shadow:
        0 0 18px rgba(0, 229, 255, 0.12),
        inset 0 0 20px rgba(0, 229, 255, 0.035);
    }

    /* Navă activă */

    .shop-item:has(> div:first-child) {
      border-color: rgba(0, 229, 255, 0.45);
    }

    /* Imagine navă */

    .shop-ship-img {
      display: block;

      width: 100%;
      height: 165px;

      object-fit: contain;
      margin: 12px auto;

      filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.16));

      transition: 0.3s ease;
    }

    .shop-item:hover .shop-ship-img {
      filter: drop-shadow(0 0 18px rgba(0, 229, 255, 0.35));
      transform: scale(1.035);
    }

    /* Titlu navă */

    .shop-item-title {
      margin: 8px 0;

      color: #f0f8ff;

      font-family: 'Orbitron', sans-serif;
      font-size: 12px;
      font-weight: 800;
      line-height: 1.6;

      text-align: center;
      letter-spacing: 0.3px;
    }

    /* Descriere navă */

    .shop-item-desc {
      min-height: 45px;

      margin: 4px 0 12px;

      color: #91a6bc;

      font-family: 'Rajdhani', sans-serif;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.65;

      text-align: center;
    }

    /* Butoane cumpărare / activare */

    .shop-buy-btn {
      width: 100%;
      min-height: 39px;

      margin-top: auto;
      padding: 10px 8px;

      color: #001018;
      background: linear-gradient(135deg, #00e5ff, #008eaa);

      border: 1px solid rgba(0, 229, 255, 0.7);
      border-radius: 4px;

      font-family: 'Orbitron', sans-serif;
      font-size: 9px;
      font-weight: 900;
      letter-spacing: 0.4px;

      cursor: pointer;
      transition: 0.25s ease;
    }

    .shop-buy-btn:hover {
      filter: brightness(1.18);

      box-shadow:
        0 0 12px rgba(0, 229, 255, 0.30),
        0 0 20px rgba(0, 229, 255, 0.12);
    }

    .shop-buy-btn[style*="2ecc71"] {
      color: #001b10 !important;
      background: linear-gradient(135deg, #00ff88, #00a85a) !important;
      border-color: var(--green);
    }

    /* Starea navei active */

    .shop-item > div:first-child:not(.shop-item-title):not(.shop-item-desc) {
      padding: 7px 8px;
      margin: -2px -2px 5px;

      color: var(--green) !important;
      background: rgba(0, 255, 136, 0.075);

      border: 1px solid rgba(0, 255, 136, 0.25);
      border-radius: 3px;

      font-family: 'Share Tech Mono', monospace;
      font-size: 10px !important;
      text-align: center;
      letter-spacing: 0.5px;
    }

    /* Responsive tabletă */

    @media (max-width: 700px) {
      .modal-overlay#hangar-modal {  
        padding: 10px;
        align-items: center;
        }

      .modal-card {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 95vh;
      }

      .modal-header {
        padding: 13px;
      }

      #hangar-title {
        font-size: 12px;
      }

      .modal-card > div:has(> #tab-hangar-my-ships) {
        padding: 12px 12px 9px !important;
      }

      .do-tab-btn {
        font-size: 9px !important;
        padding: 11px 6px !important;
      }

      #hangar-my-ships-view,
      #hangar-store-view {
        padding: 12px !important;
      }
    }

    /* Responsive telefon */

    @media (max-width: 480px) {
      .modal-overlay#hangar-modal {  
        padding: 6px;
        }

      .modal-card {
        max-height: 97vh;
        border-radius: 6px;
      }

      .modal-header {
        flex-wrap: wrap;
        gap: 8px;
      }

      .modal-header > div {
        gap: 6px !important;
      }

      .modal-header button:not(.btn-close) {
        font-size: 9px !important;
        padding: 7px 8px !important;
      }

      #hangar-title {
        font-size: 10px;
        letter-spacing: 0.3px;
      }

      #hangar-title span {
        line-height: 1.5;
      }

      .do-tab-btn {
        font-size: 8px !important;
        line-height: 1.5;
        padding: 10px 4px !important;
      }

      .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
      }

      .shop-item {
        padding: 9px;
      }

      .shop-ship-img {
        height: 115px;
      }

      .shop-item-title {
        font-size: 10px;
      }

      .shop-item-desc {
        font-size: 11px;
      }

      .shop-buy-btn {
        font-size: 8px;
        padding: 9px 4px;
      }
    }

    @media (max-width: 340px) {
      .shop-grid {
        grid-template-columns: 1fr;
      }

      .shop-ship-img {
        height: 145px;
      }

      .modal-header {
        align-items: flex-start;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }
  

/* ========== STYLES FROM 02_meniu_echipare_fitting.html ========== */

    :root {
      --cyan: #00e5ff;
      --cyan-soft: rgba(0, 229, 255, 0.12);
      --gold: #ffaa00;
      --orange: #ff7700;
      --green: #00ff88;
      --red: #ff2255;
      --violet: #a855f7;

      --panel: rgba(8, 12, 22, 0.96);
      --panel-light: rgba(13, 23, 38, 0.90);
      --border: rgba(0, 229, 255, 0.25);

      --text: #e8f4ff;
      --muted: #8297ad;
    }

    * {
      box-sizing: border-box;
    }

    html {
      min-height: 100%;
      background: #050914;
    }

    /* body reset removed to protect game canvas */

    /* MODAL PRINCIPAL */

    .modal-overlay#equip-modal {  
      position: fixed;
      inset: 0;
      z-index: 1000;

      display: none;
      align-items: center;
      justify-content: center;

      padding: 15px;
      overflow: auto;

      background: rgba(1, 4, 12, 0.90);

      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      }

    .do-modal-card {
      width: 1040px !important;
      max-width: 96vw !important;
      max-height: 90vh !important;

      padding: 16px 18px !important;

      display: flex !important;
      flex-direction: column !important;
      gap: 13px !important;

      overflow: hidden;

      background:
        linear-gradient(145deg, rgba(13, 23, 38, 0.98), rgba(4, 9, 18, 0.99)) !important;

      border: 1px solid rgba(0, 229, 255, 0.48) !important;
      border-radius: 9px !important;

      box-shadow:
        0 0 35px rgba(0, 180, 255, 0.20),
        0 0 90px rgba(0, 0, 0, 0.8),
        inset 0 0 30px rgba(0, 0, 0, 0.65) !important;

      position: relative;
    }

    .do-modal-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 12%;
      right: 12%;
      height: 2px;
      z-index: 2;

      background: linear-gradient(90deg, transparent, var(--cyan), transparent);
      box-shadow: 0 0 14px var(--cyan);
    }

    /* BARA SUPERIOARĂ */

    .do-nav-bar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;

      padding-bottom: 12px;

      border-bottom: 1px solid rgba(0, 229, 255, 0.25);
    }

    .do-tabs-group {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 7px;
    }

    .do-tab-btn {
      padding: 10px 12px !important;

      color: var(--muted);
      background: rgba(7, 15, 27, 0.9);

      border: 1px solid rgba(0, 229, 255, 0.17);
      border-radius: 4px;

      font-family: 'Orbitron', sans-serif;
      font-size: 9px !important;
      font-weight: 800;
      letter-spacing: 0.4px;

      cursor: pointer;
      transition: 0.25s ease;
    }

    .do-tab-btn:hover {
      color: white;
      border-color: rgba(0, 229, 255, 0.65);
      background: rgba(0, 229, 255, 0.07);
    }

    .do-tab-btn.active {
      color: var(--cyan);
      background: rgba(0, 229, 255, 0.12);

      border-color: var(--cyan);

      box-shadow:
        0 0 12px rgba(0, 229, 255, 0.12),
        inset 0 0 12px rgba(0, 229, 255, 0.04);

      text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
    }

    /* CONFIGURAȚII */

    .do-config-switch {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 6px;
    }

    .do-config-switch > span {
      color: var(--muted) !important;

      font-family: 'Share Tech Mono', monospace;
      font-size: 10px !important;
      letter-spacing: 0.5px;
    }

    .do-cfg-btn {
      padding: 8px 10px;

      color: var(--muted);
      background: #090e18;

      border: 1px solid #1c2b3d;
      border-radius: 4px;

      font-family: 'Orbitron', sans-serif;
      font-size: 9px;
      font-weight: 800;

      cursor: pointer;
      transition: 0.2s ease;
    }

    .do-cfg-btn:hover {
      color: white;
      border-color: var(--cyan);
    }

    .do-cfg-btn.active {
      color: var(--cyan);
      background: rgba(0, 229, 255, 0.12);
      border-color: var(--cyan);

      box-shadow: 0 0 10px rgba(0, 229, 255, 0.12);
    }

    .btn-close {
      width: 32px;
      height: 32px;

      display: flex;
      align-items: center;
      justify-content: center;

      color: var(--red) !important;
      background: rgba(255, 34, 85, 0.08) !important;

      border: 1px solid rgba(255, 34, 85, 0.45) !important;
      border-radius: 4px;

      font-size: 16px;
      cursor: pointer;

      transition: 0.2s ease;
    }

    .btn-close:hover {
      color: white !important;
      background: var(--red) !important;
      box-shadow: 0 0 14px rgba(255, 34, 85, 0.35);
    }

    /* CORP PRINCIPAL - 3 COLOANE */

    .do-hangar-/* body reset removed to protect game canvas */

    /* PANOURI */

    .do-ship-bay,
    .do-slots-bay,
    .do-inv-bay {
      min-width: 0;
      min-height: 0;

      background:
        linear-gradient(145deg, rgba(11, 21, 35, 0.96), rgba(5, 11, 20, 0.96));

      border: 1px solid rgba(0, 229, 255, 0.20);
      border-radius: 6px;

      box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
    }

    .do-ship-bay {
      padding: 11px;

      display: flex;
      flex-direction: column;
      gap: 9px;
    }

    .do-slots-bay {
      padding: 11px;

      display: flex;
      flex-direction: column;
      gap: 9px;

      overflow-x: hidden !important;
      overflow-y: auto !important;
      overscroll-behavior: contain;
    }

    .do-inv-bay {
      padding: 11px;

      display: flex;
      flex-direction: column;
      gap: 10px;

      overflow: hidden;
    }

    /* TITLU NAVĂ */

    .do-ship-title-badge {
      padding: 9px 6px;

      color: var(--cyan);
      background: rgba(0, 229, 255, 0.09);

      border: 1px solid rgba(0, 229, 255, 0.55);
      border-radius: 4px;

      font-family: 'Orbitron', monospace;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.5px;

      text-align: center;

      text-shadow: 0 0 9px rgba(0, 229, 255, 0.4);
    }

    /* VIZUALIZARE NAVĂ */

    .do-ship-viewport {
      height: 150px;
      min-height: 120px;

      background:
        radial-gradient(ellipse at center, rgba(0, 130, 190, 0.20), transparent 70%),
        linear-gradient(145deg, #0b1b2e, #040810);

      border: 1px solid rgba(0, 229, 255, 0.22);
      border-radius: 5px;

      display: flex;
      align-items: center;
      justify-content: center;

      position: relative;
      overflow: hidden;
    }

    .do-ship-viewport::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;

      background:
        linear-gradient(rgba(0, 229, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px);

      background-size: 20px 20px;
    }

    .do-ship-viewport img {
      max-width: 90%;
      max-height: 90%;

      object-fit: contain;

      filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.35));
      position: relative;
      z-index: 1;
    }

    /* STATISTICI */

    .do-stats-box {
      padding: 10px;

      display: flex;
      flex-direction: column;
      gap: 8px;

      background: rgba(0, 0, 0, 0.34);

      border: 1px solid rgba(0, 229, 255, 0.10);
      border-radius: 5px;
    }

    .do-stat-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 5px;

      padding-bottom: 5px;

      border-bottom: 1px solid rgba(255, 255, 255, 0.045);

      font-size: 11px;
      font-family: 'Share Tech Mono', monospace;
    }

    .do-stat-row:last-child {
      border-bottom: none;
      padding-bottom: 0;
    }

    .do-stat-lbl {
      color: #8fa0b5;
    }

    .do-stat-val {
      color: white;
      font-weight: bold;
      text-align: right;
    }

    /* INSTRUCȚIUNI */

    .do-ship-bay > div:last-child {
      color: #74869b !important;

      font-family: 'Share Tech Mono', monospace;
      font-size: 9px !important;
      line-height: 1.6 !important;
    }

    /* CATEGORII SLOTURI */

    .do-cat-header {
      min-height: 25px;

      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;

      margin-bottom: 5px;
      padding-bottom: 6px;

      color: var(--cyan);

      border-bottom: 1px solid rgba(0, 229, 255, 0.22);

      font-family: 'Orbitron', sans-serif;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 0.3px;
    }

    .do-cat-header small {
      color: #8297ad;

      font-family: 'Share Tech Mono', monospace;
      font-size: 9px;
      font-weight: normal;

      text-align: right;
    }

    .do-cat-header small span {
      color: var(--green);
      font-weight: bold;
    }

    /* RÂNDURI SLOTURI */

    .do-slots-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 7px;

      margin-bottom: 10px;
    }

    /* SLOT INDIVIDUAL */

    .do-slot-box {
      width: 55px;
      height: 57px;
      min-width: 0;

      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;

      position: relative;
      overflow: hidden;

      color: #8297ad;
      background:
        linear-gradient(145deg, rgba(16, 30, 47, 0.96), rgba(5, 11, 21, 0.98));

      border: 1px solid rgba(0, 229, 255, 0.20);
      border-radius: 4px;

      cursor: pointer;
      transition: 0.2s ease;
    }

    .do-slot-box::before {
      content: "";
      position: absolute;
      top: 0;
      left: 20%;
      right: 20%;
      height: 1px;

      background: rgba(0, 229, 255, 0.25);
    }

    .do-slot-box:hover {
      color: white;
      border-color: var(--cyan);

      background: rgba(0, 229, 255, 0.10);

      box-shadow:
        0 0 12px rgba(0, 229, 255, 0.20),
        inset 0 0 10px rgba(0, 229, 255, 0.05);

      transform: translateY(-2px);
    }

    .do-slot-box.equipped {
      border-color: rgba(0, 229, 255, 0.48);

      background:
        linear-gradient(145deg, rgba(0, 105, 135, 0.20), rgba(5, 15, 28, 0.98));

      box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.05);
    }

    .do-slot-box.equipped:hover {
      border-color: var(--red);
      box-shadow: 0 0 12px rgba(255, 34, 85, 0.20);
    }

    .do-slot-icon {
      font-size: 19px;
      line-height: 1;
      filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.22));
    }

    .do-slot-num {
      color: #b6cce0;

      font-family: 'Share Tech Mono', monospace;
      font-size: 9px;
      font-weight: bold;
      letter-spacing: 0.3px;
    }

    .do-slot-box.equipped .do-slot-num {
      color: var(--cyan);
    }

    /* DEPOZIT */

    .do-inv-bay > div:first-child {
      flex-shrink: 0;

      color: var(--gold) !important;

      font-family: 'Orbitron', sans-serif;
      font-size: 10px !important;
      font-weight: 900 !important;

      padding-bottom: 9px;
      border-bottom: 1px solid rgba(255, 170, 0, 0.25);
    }

    #depot-item-count {
      color: #8fa0b5 !important;

      font-family: 'Share Tech Mono', monospace;
      font-size: 10px !important;
    }

    .do-inv-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-content: start;

      gap: 8px;

      min-height: 0;
      flex: 1;

      overflow-y: auto;
      overscroll-behavior: contain;

      padding: 3px;

      scrollbar-width: thin;
      scrollbar-color: var(--gold) rgba(0, 0, 0, 0.25);
    }

    .do-inv-grid::-webkit-scrollbar,
    .do-slots-bay::-webkit-scrollbar {
      width: 5px;
      height: 0px !important;
    }

    .do-inv-grid::-webkit-scrollbar-track,
    .do-slots-bay::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.25);
    }

    .do-inv-grid::-webkit-scrollbar-thumb {
      background: rgba(255, 170, 0, 0.65);
      border-radius: 8px;
    }

    .do-slots-bay::-webkit-scrollbar-thumb {
      background: rgba(0, 229, 255, 0.6);
      border-radius: 8px;
    }

    .do-inv-grid .do-slot-box {
      width: 100%;
      height: 65px;

      border-color: rgba(255, 170, 0, 0.24);
    }

    .do-inv-grid .do-slot-box:hover {
      border-color: var(--gold);

      box-shadow:
        0 0 12px rgba(255, 170, 0, 0.20),
        inset 0 0 10px rgba(255, 170, 0, 0.05);
    }

    .do-inv-grid .do-slot-icon {
      font-size: 20px;
    }

    .do-inv-grid .do-slot-num {
      color: #ffd58a;
    }

    /* TABLETĂ */

    @media (max-width: 1000px) {
      .do-modal-card {
        width: 96vw !important;
      }

      .do-hangar-/* body reset removed to protect game canvas */

      .do-ship-bay,
      .do-slots-bay,
      .do-inv-bay {
        padding: 9px;
      }

      .do-slot-box {
        width: 48px;
        height: 53px;
      }

      .do-inv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    /* ECRANE MAI MICI */

    @media (max-width: 760px) {
      .modal-overlay#equip-modal {  
        align-items: flex-start;
        padding: 8px;
        }

      .do-modal-card {
        width: 100% !important;
        max-width: 100% !important;
        max-height: none !important;

        min-height: 0;

        padding: 12px !important;
      }

      .do-nav-bar {
        align-items: flex-start;
        flex-direction: column;
      }

      .do-tabs-group {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .do-tab-btn {
        padding: 10px 4px !important;
        font-size: 8px !important;
      }

      .do-config-switch {
        width: 100%;
      }

      .do-hangar-/* body reset removed to protect game canvas */

      .do-ship-bay {
        grid-column: 1;
        grid-row: 1;
      }

      .do-slots-bay {
        grid-column: 2;
        grid-row: 1;
        max-height: 480px;
      }

      .do-inv-bay {
        grid-column: 1 / -1;
        grid-row: 2;

        min-height: 180px;
      }

      .do-inv-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }

      .do-inv-grid .do-slot-box {
        height: 62px;
      }
    }

    /* TELEFOANE */

    @media (max-width: 480px) {
      .modal-overlay#equip-modal {  
        padding: 5px;
        }

      .do-modal-card {
        padding: 9px !important;
        gap: 10px !important;
        border-radius: 6px !important;
      }

      .do-tabs-group {
        gap: 5px;
      }

      .do-tab-btn {
        font-size: 7px !important;
        line-height: 1.5;
      }

      .do-config-switch > span {
        width: 100%;
      }

      .do-cfg-btn {
        flex: 1;
        padding: 8px 4px;
        font-size: 8px;
      }

      .do-config-switch .btn-close {
        margin-left: 2px !important;
      }

      .do-hangar-/* body reset removed to protect game canvas */

      .do-ship-bay {
        display: flex;
        flex-direction: column;
      }

      .do-ship-viewport {
        height: 135px;
      }

      .do-slots-bay {
        max-height: none;
        overflow: visible;
      }

      .do-inv-bay {
        min-height: 180px;
      }

      .do-inv-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .do-slot-box {
        width: 48px;
        height: 53px;
      }

      .do-inv-grid .do-slot-box {
        width: 100%;
        height: 58px;
      }

      .do-cat-header {
        font-size: 8px;
      }

      .do-cat-header small {
        font-size: 8px;
      }
    }

    @media (max-width: 340px) {
      .do-inv-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .do-slots-row {
        gap: 5px;
      }

      .do-slot-box {
        width: 43px;
        height: 49px;
      }

      .do-slot-icon {
        font-size: 16px;
      }

      .do-slot-num {
        font-size: 8px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
      }
    }
  

/* ========== STYLES FROM 03_meniu_drone_iris.html ========== */

    :root {
      --drone-cyan: #00e5ff;
      --drone-blue: #008cff;
      --drone-green: #00ff88;
      --drone-gold: #ffaa00;
      --drone-red: #ff2255;
      --drone-violet: #a855f7;
      --drone-bg: rgba(8, 12, 22, 0.96);
      --drone-panel: rgba(12, 19, 31, 0.92);
      --drone-border: rgba(0, 229, 255, 0.3);
      --drone-text: #eafaff;
      --drone-muted: #8297ad;
    }

    * {
      box-sizing: border-box;
    }

    /* body reset removed to protect game canvas */

    button {
      font-family: inherit;
    }

    .modal-card {
      position: relative;
      width: min(920px, 96vw);
      max-height: 92vh;
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 22px;
      overflow: hidden;
      background: var(--drone-bg);
      border: 1px solid var(--drone-border);
      border-radius: 12px;
      box-shadow:
        0 0 35px rgba(0, 180, 255, 0.12),
        inset 0 0 30px rgba(0, 120, 180, 0.035),
        0 20px 70px rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      clip-path: polygon(
        0 12px, 12px 0, calc(100% - 12px) 0, 100% 12px,
        100% calc(100% - 12px), calc(100% - 12px) 100%,
        12px 100%, 0 calc(100% - 12px)
      );
    }

    .modal-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.12;
      background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 229, 255, 0.08) 4px
      );
    }

    .modal-header {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(0, 229, 255, 0.25);
    }

    .modal-header h2 {
      margin: 0;
      color: var(--drone-cyan);
      font-family: 'Orbitron', monospace;
      font-size: clamp(13px, 2vw, 19px);
      font-weight: 900;
      letter-spacing: 1.3px;
      text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
    }

    .btn-close {
      width: 36px;
      height: 36px;
      flex-shrink: 0;
      border: 1px solid rgba(255, 34, 85, 0.45);
      border-radius: 5px;
      color: #ff6688;
      background: rgba(255, 34, 85, 0.09);
      font-size: 18px;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .btn-close:hover {
      color: #fff;
      background: var(--drone-red);
      box-shadow: 0 0 16px rgba(255, 34, 85, 0.4);
    }

    .drone-summary {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px;
      background: linear-gradient(
        110deg,
        rgba(0, 229, 255, 0.10),
        rgba(0, 110, 180, 0.035)
      );
      border: 1px solid rgba(0, 229, 255, 0.28);
      border-left: 3px solid var(--drone-cyan);
      border-radius: 7px;
    }

    .drone-summary-info {
      min-width: 0;
    }

    .drone-count-title {
      color: #fff;
      font-size: 16px;
      font-weight: 800;
      letter-spacing: 0.5px;
    }

    #fit-drone-count-val {
      color: var(--drone-cyan);
      font-family: 'Orbitron', monospace;
      text-shadow: 0 0 9px rgba(0, 229, 255, 0.45);
    }

    .drone-summary-description {
      margin-top: 5px;
      color: var(--drone-muted);
      font-size: 12px;
      line-height: 1.5;
    }

    .drone-summary-description b {
      color: var(--drone-gold);
    }

    .cyber-btn {
      position: relative;
      flex-shrink: 0;
      padding: 11px 15px;
      border: 1px solid rgba(0, 229, 255, 0.7);
      border-radius: 5px;
      color: #00131b;
      background: linear-gradient(135deg, #008cff, #00e5ff);
      font-family: 'Orbitron', monospace;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: 0.2s ease;
      box-shadow: 0 0 12px rgba(0, 210, 255, 0.18);
    }

    .cyber-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 0 22px rgba(0, 229, 255, 0.42);
      filter: brightness(1.15);
    }

    .cyber-btn:active {
      transform: translateY(0);
    }

    .drone-section-title {
      display: flex;
      align-items: center;
      gap: 9px;
      margin: 2px 0 -5px;
      color: var(--drone-cyan);
      font-family: 'Orbitron', monospace;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1.5px;
    }

    .drone-section-title::before {
      content: "";
      width: 4px;
      height: 15px;
      background: var(--drone-cyan);
      box-shadow: 0 0 10px var(--drone-cyan);
    }

    .drone-grid {
      position: relative;
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 14px;
      max-height: 480px;
      min-height: 120px;
      padding: 3px 5px 10px 2px;
      overflow-y: auto;
      overscroll-behavior: contain;
      scrollbar-width: thin;
      scrollbar-color: var(--drone-cyan) rgba(0, 229, 255, 0.06);
    }

    .drone-grid::-webkit-scrollbar {
      width: 5px;
    }

    .drone-grid::-webkit-scrollbar-track {
      background: rgba(0, 229, 255, 0.06);
      border-radius: 5px;
    }

    .drone-grid::-webkit-scrollbar-thumb {
      background: rgba(0, 229, 255, 0.55);
      border-radius: 5px;
    }

    .drone-card {
      position: relative;
      min-width: 0;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      overflow: hidden;
      background:
        linear-gradient(145deg, rgba(15, 29, 47, 0.96), rgba(7, 13, 25, 0.98));
      border: 1px solid rgba(0, 229, 255, 0.2);
      border-radius: 8px;
      transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
    }

    .drone-card::before {
      content: "";
      position: absolute;
      top: 0;
      left: 14px;
      right: 14px;
      height: 1px;
      background: linear-gradient(90deg, transparent, var(--drone-cyan), transparent);
      opacity: 0.55;
    }

    .drone-card:hover {
      transform: translateY(-2px);
      border-color: rgba(0, 229, 255, 0.65);
      box-shadow:
        0 0 20px rgba(0, 210, 255, 0.13),
        inset 0 0 20px rgba(0, 210, 255, 0.035);
    }

    .drone-card-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(0, 229, 255, 0.17);
      color: var(--drone-cyan);
      font-family: 'Orbitron', monospace;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.4px;
    }

    .drone-card-header span:first-child {
      min-width: 0;
    }

    .drone-card-header span:last-child {
      color: var(--drone-green) !important;
      font-size: 9px !important;
      white-space: nowrap;
      text-shadow: 0 0 8px rgba(0, 255, 136, 0.35);
    }

    .drone-card-slots {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 12px;
      min-height: 112px;
      padding: 13px 8px;
      background: rgba(0, 0, 0, 0.28);
      border: 1px solid rgba(0, 229, 255, 0.09);
      border-radius: 6px;
    }

    .do-slot-box {
      position: relative;
      width: 88px;
      min-height: 78px;
      padding: 9px 5px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 7px;
      background: linear-gradient(145deg, rgba(17, 35, 53, 0.95), rgba(5, 12, 22, 0.98));
      border: 1px solid rgba(112, 143, 170, 0.28);
      border-radius: 5px;
      text-align: center;
      transition: 0.2s ease;
    }

    .do-slot-box.equipped {
      border-color: rgba(0, 229, 255, 0.55);
      box-shadow:
        inset 0 0 15px rgba(0, 229, 255, 0.07),
        0 0 10px rgba(0, 229, 255, 0.08);
    }

    .do-slot-box.equipped:hover {
      border-color: var(--drone-gold);
      box-shadow: 0 0 14px rgba(255, 170, 0, 0.2);
    }

    .do-slot-icon {
      font-size: 25px;
      line-height: 1;
      filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.3));
    }

    .do-slot-num {
      color: var(--drone-cyan);
      font-family: 'Share Tech Mono', monospace;
      font-size: 10px;
      font-weight: bold;
      white-space: nowrap;
    }

    .do-slot-box:not(.equipped) {
      border-style: dashed;
      border-color: rgba(112, 143, 170, 0.25);
      background: rgba(0, 0, 0, 0.22);
    }

    .drone-card-stats {
      display: flex;
      justify-content: space-around;
      flex-wrap: wrap;
      gap: 8px;
      padding-top: 4px;
      color: var(--drone-muted);
      font-family: 'Share Tech Mono', monospace;
      font-size: 10px;
      text-align: center;
    }

    .drone-card-stats span {
      color: var(--drone-green);
    }

    .drone-card-stats .stat-shield {
      color: var(--drone-cyan);
    }

    button:focus-visible {
      outline: 2px solid var(--drone-gold);
      outline-offset: 3px;
    }

    @media (max-width: 650px) {
      /* body reset removed to protect game canvas */

      .modal-card {
        width: 100%;
        max-height: calc(100vh - 16px);
        padding: 14px;
        gap: 13px;
      }

      .modal-header h2 {
        font-size: 12px;
        line-height: 1.5;
      }

      .drone-summary {
        align-items: stretch;
        flex-direction: column;
      }

      .cyber-btn {
        width: 100%;
        white-space: normal;
      }

      .drone-grid {
        grid-template-columns: 1fr;
        max-height: none;
        overflow-y: auto;
      }

      .drone-card {
        padding: 12px;
      }
    }

    @media (max-width: 360px) {
      .drone-card-header {
        font-size: 9px;
      }

      .do-slot-box {
        width: 82px;
      }

      .drone-summary-description {
        font-size: 11px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
      }
    }
  

/* ========== STYLES FROM 04_meniu_pet_guardian.html ========== */

    :root {
      --pet-green: #00ff88;
      --pet-green-dark: #00c96b;
      --pet-cyan: #00e5ff;
      --pet-gold: #ffaa00;
      --pet-blue: #70a1ff;
      --pet-red: #ff2255;
      --pet-bg: rgba(8, 13, 22, 0.97);
      --pet-panel: rgba(13, 24, 38, 0.92);
      --pet-border: rgba(0, 255, 136, 0.27);
      --pet-muted: #8fa0b5;
      --pet-text: #eafff5;
    }

    * {
      box-sizing: border-box;
    }

    /* body reset removed to protect game canvas */

    button {
      font-family: inherit;
    }

    .modal-card {
      position: relative;
      width: min(850px, 96vw);
      max-height: 92vh;
      padding: 22px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      overflow-y: auto;
      background: var(--pet-bg);
      border: 1px solid var(--pet-border);
      border-radius: 10px;
      box-shadow:
        0 0 40px rgba(0, 255, 136, 0.12),
        inset 0 0 30px rgba(0, 255, 136, 0.025),
        0 20px 70px rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      scrollbar-width: thin;
      scrollbar-color: var(--pet-green) rgba(0, 255, 136, 0.06);
    }

    .modal-card::-webkit-scrollbar {
      width: 5px;
    }

    .modal-card::-webkit-scrollbar-thumb {
      background: rgba(0, 255, 136, 0.55);
      border-radius: 5px;
    }

    .modal-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.10;
      background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(0, 255, 136, 0.07) 4px
      );
    }

    .modal-header {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(0, 255, 136, 0.3);
    }

    .modal-header h2 {
      margin: 0;
      color: var(--pet-green);
      font-family: 'Orbitron', monospace;
      font-size: clamp(12px, 2vw, 18px);
      font-weight: 900;
      line-height: 1.5;
      letter-spacing: 1px;
      text-shadow: 0 0 12px rgba(0, 255, 136, 0.4);
    }

    .btn-close {
      width: 36px;
      height: 36px;
      flex-shrink: 0;
      color: #ff6688;
      background: rgba(255, 34, 85, 0.08);
      border: 1px solid rgba(255, 34, 85, 0.4);
      border-radius: 5px;
      font-size: 18px;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .btn-close:hover {
      color: #fff;
      background: var(--pet-red);
      box-shadow: 0 0 15px rgba(255, 34, 85, 0.4);
    }

    /* STATISTICI P.E.T. */

    .pet-stats {
      position: relative;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 10px;
      padding: 15px;
      background: linear-gradient(
        120deg,
        rgba(0, 255, 136, 0.075),
        rgba(0, 0, 0, 0.3)
      );
      border: 1px solid rgba(0, 255, 136, 0.22);
      border-left: 3px solid var(--pet-green);
      border-radius: 7px;
    }

    .pet-stat {
      min-width: 0;
      padding: 5px 7px;
      background: rgba(0, 0, 0, 0.17);
      border-radius: 4px;
    }

    .pet-stat-label {
      margin-bottom: 7px;
      color: var(--pet-muted);
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.8px;
      text-transform: uppercase;
    }

    .pet-stat-value {
      overflow-wrap: anywhere;
      color: var(--pet-green);
      font-family: 'Orbitron', monospace;
      font-size: 13px;
      font-weight: 800;
      text-shadow: 0 0 8px rgba(0, 255, 136, 0.2);
    }

    .pet-stat-value.fuel {
      color: var(--pet-gold);
      text-shadow: 0 0 8px rgba(255, 170, 0, 0.2);
    }

    .pet-stat-value.model {
      color: var(--pet-cyan);
      text-shadow: 0 0 8px rgba(0, 229, 255, 0.2);
    }

    /* PANOU ECHIPAMENTE */

    .pet-equipment-panel {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 17px;
      background: linear-gradient(
        145deg,
        rgba(14, 25, 42, 0.9),
        rgba(7, 14, 25, 0.95)
      );
      border: 1px solid rgba(0, 255, 136, 0.2);
      border-radius: 8px;
    }

    .pet-equipment-panel::before {
      content: "P.E.T. SYSTEM";
      position: absolute;
      top: -8px;
      right: 15px;
      padding: 2px 9px;
      color: var(--pet-green);
      background: #091522;
      font-family: 'Orbitron', monospace;
      font-size: 8px;
      letter-spacing: 1px;
    }

    .pet-equipment-category {
      min-width: 0;
    }

    .pet-category-title {
      display: flex;
      align-items: center;
      gap: 7px;
      margin-bottom: 9px;
      font-family: 'Orbitron', monospace;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.5px;
    }

    .pet-category-title.laser {
      color: var(--pet-cyan);
    }

    .pet-category-title.repair {
      color: var(--pet-green);
    }

    .pet-category-title.shield {
      color: var(--pet-blue);
    }

    .pet-category-title::before {
      content: "";
      width: 4px;
      height: 13px;
      flex-shrink: 0;
      background: currentColor;
      box-shadow: 0 0 9px currentColor;
    }

    .pet-slots-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 10px;
      min-height: 83px;
      padding: 10px;
      background: rgba(0, 0, 0, 0.24);
      border: 1px solid rgba(120, 150, 180, 0.1);
      border-radius: 6px;
    }

    /* SLOTURI ECHIPAMENTE */

    .do-slot-box {
      position: relative;
      width: 82px;
      min-height: 70px;
      padding: 8px 5px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
      background: linear-gradient(
        145deg,
        rgba(17, 35, 53, 0.95),
        rgba(5, 12, 22, 0.98)
      );
      border: 1px solid rgba(112, 143, 170, 0.28);
      border-radius: 5px;
      text-align: center;
      transition: 0.2s ease;
    }

    .do-slot-box.equipped {
      border-color: rgba(0, 255, 136, 0.5);
      box-shadow:
        inset 0 0 15px rgba(0, 255, 136, 0.055),
        0 0 9px rgba(0, 255, 136, 0.07);
    }

    .do-slot-box.equipped:hover {
      border-color: var(--pet-gold);
      box-shadow: 0 0 14px rgba(255, 170, 0, 0.2);
    }

    .do-slot-icon {
      font-size: 24px;
      line-height: 1;
      filter: drop-shadow(0 0 6px rgba(0, 255, 136, 0.25));
    }

    .do-slot-num {
      color: var(--pet-green);
      font-family: 'Share Tech Mono', monospace;
      font-size: 10px;
      font-weight: bold;
    }

    .do-slot-box:not(.equipped) {
      background: rgba(0, 0, 0, 0.2);
      border-style: dashed;
      border-color: rgba(112, 143, 170, 0.25);
    }

    .do-slot-box:not(.equipped) .do-slot-num {
      color: #8297ad;
    }

    /* BUTOANE DE CONTROL */

    .pet-controls {
      position: relative;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .cyber-btn {
      min-height: 44px;
      padding: 11px 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      border: 1px solid transparent;
      border-radius: 5px;
      color: #07121a;
      font-family: 'Orbitron', monospace;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.3px;
      text-align: center;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .cyber-btn:hover {
      transform: translateY(-2px);
      filter: brightness(1.15);
    }

    .cyber-btn:active {
      transform: translateY(0);
    }

    .cyber-btn.fuel-btn {
      background: linear-gradient(135deg, #f39c12, #e67e22);
      border-color: rgba(255, 170, 0, 0.6);
      box-shadow: 0 0 12px rgba(255, 170, 0, 0.12);
    }

    .cyber-btn.fuel-btn:hover {
      box-shadow: 0 0 20px rgba(255, 170, 0, 0.3);
    }

    .cyber-btn.activate-btn {
      background: linear-gradient(135deg, #00ff88, #16a765);
      border-color: rgba(0, 255, 136, 0.6);
      box-shadow: 0 0 12px rgba(0, 255, 136, 0.12);
    }

    .cyber-btn.activate-btn:hover {
      box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    }

    button:focus-visible {
      outline: 2px solid var(--pet-gold);
      outline-offset: 3px;
    }

    @media (max-width: 650px) {
      /* body reset removed to protect game canvas */

      .modal-card {
        width: 100%;
        max-height: calc(100vh - 16px);
        padding: 14px;
        gap: 13px;
      }

      .pet-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .pet-stat-value {
        font-size: 12px;
      }

      .pet-equipment-panel {
        padding: 14px 10px;
      }

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

      .cyber-btn {
        width: 100%;
        font-size: 9px;
      }
    }

    @media (max-width: 360px) {
      .modal-header h2 {
        font-size: 11px;
      }

      .pet-stat {
        padding: 5px;
      }

      .pet-stat-value {
        font-size: 10px;
      }

      .pet-category-title {
        font-size: 9px;
      }

      .do-slot-box {
        width: 75px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
      }
    }
  

/* ========== STYLES FROM 05_meniu_comert_rafinarie.html ========== */

    :root {
      --trade-gold: #ffaa00;
      --trade-yellow: #ffd32a;
      --trade-orange: #ff7700;
      --trade-cyan: #00e5ff;
      --trade-green: #00ff88;
      --trade-violet: #a855f7;
      --trade-red: #ff5252;
      --trade-bg: rgba(8, 12, 22, 0.97);
      --trade-panel: rgba(14, 22, 35, 0.94);
      --trade-border: rgba(255, 170, 0, 0.3);
      --trade-text: #f4f7ff;
      --trade-muted: #8fa0b5;
    }

    * {
      box-sizing: border-box;
    }

    /* body reset removed to protect game canvas */

    button {
      font-family: inherit;
    }

    .modal-card {
      position: relative;
      width: min(980px, 96vw);
      max-height: 92vh;
      padding: 22px;
      display: flex;
      flex-direction: column;
      gap: 16px;
      overflow-y: auto;
      background: var(--trade-bg);
      border: 1px solid var(--trade-border);
      border-radius: 10px;
      box-shadow:
        0 0 45px rgba(255, 170, 0, 0.12),
        inset 0 0 30px rgba(255, 170, 0, 0.025),
        0 20px 70px rgba(0, 0, 0, 0.55);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      scrollbar-width: thin;
      scrollbar-color: var(--trade-gold) rgba(255, 170, 0, 0.06);
    }

    .modal-card::-webkit-scrollbar {
      width: 5px;
    }

    .modal-card::-webkit-scrollbar-thumb {
      background: rgba(255, 170, 0, 0.6);
      border-radius: 5px;
    }

    .modal-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.09;
      background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 3px,
        rgba(255, 170, 0, 0.07) 4px
      );
    }

    /* HEADER */

    .modal-header {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(255, 170, 0, 0.3);
    }

    .modal-header h2 {
      margin: 0;
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--trade-yellow);
      font-family: 'Orbitron', monospace;
      font-size: clamp(12px, 2vw, 17px);
      font-weight: 900;
      line-height: 1.5;
      letter-spacing: 0.7px;
      text-shadow: 0 0 12px rgba(255, 170, 0, 0.4);
    }

    .btn-close {
      width: 36px;
      height: 36px;
      flex-shrink: 0;
      color: var(--trade-yellow);
      background: rgba(255, 170, 0, 0.08);
      border: 1px solid rgba(255, 170, 0, 0.4);
      border-radius: 5px;
      font-size: 18px;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .btn-close:hover {
      color: #fff;
      background: var(--trade-orange);
      border-color: var(--trade-orange);
      box-shadow: 0 0 15px rgba(255, 119, 0, 0.4);
    }

    /* REZUMAT CALA */

    .trade-summary {
      position: relative;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      gap: 12px;
      padding: 15px 17px;
      background: linear-gradient(
        110deg,
        rgba(255, 170, 0, 0.09),
        rgba(0, 0, 0, 0.3)
      );
      border: 1px solid rgba(255, 170, 0, 0.27);
      border-left: 3px solid var(--trade-gold);
      border-radius: 7px;
    }

    .trade-summary-label {
      color: var(--trade-muted);
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1px;
      text-transform: uppercase;
    }

    .trade-summary-value {
      margin-top: 5px;
      color: #fff;
      font-family: 'Orbitron', monospace;
      font-size: 14px;
      font-weight: 800;
    }

    #trade-cargo-count {
      color: var(--trade-cyan);
      text-shadow: 0 0 8px rgba(0, 229, 255, 0.3);
    }

    #trade-cargo-max {
      color: #fff;
    }

    .trade-summary-worth {
      text-align: right;
    }

    .trade-summary-worth .trade-summary-value {
      color: var(--trade-yellow);
      font-size: 13px;
    }

    #trade-val-cred {
      color: var(--trade-gold);
    }

    #trade-val-uri {
      color: var(--trade-cyan);
    }

    /* TITLU SECTIUNE */

    .trade-section-title {
      display: flex;
      align-items: center;
      gap: 9px;
      margin: 0;
      color: var(--trade-gold);
      font-family: 'Orbitron', monospace;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1.5px;
    }

    .trade-section-title::before {
      content: "";
      width: 4px;
      height: 15px;
      background: var(--trade-gold);
      box-shadow: 0 0 10px var(--trade-gold);
    }

    /* GRID COMERCIAL */

    .trade-grid {
      position: relative;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 14px;
      margin-top: 2px;
    }

    .trade-category {
      position: relative;
      min-width: 0;
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      overflow: hidden;
      background: linear-gradient(
        145deg,
        rgba(18, 27, 42, 0.96),
        rgba(7, 13, 24, 0.98)
      );
      border: 1px solid rgba(255, 170, 0, 0.22);
      border-radius: 8px;
      transition: 0.25s ease;
    }

    .trade-category::before {
      content: "";
      position: absolute;
      top: 0;
      left: 14px;
      right: 14px;
      height: 1px;
      background: linear-gradient(
        90deg,
        transparent,
        var(--trade-gold),
        transparent
      );
      opacity: 0.65;
    }

    .trade-category:hover {
      transform: translateY(-2px);
      border-color: rgba(255, 170, 0, 0.55);
      box-shadow:
        0 0 20px rgba(255, 170, 0, 0.09),
        inset 0 0 20px rgba(255, 170, 0, 0.025);
    }

    .trade-cat-header {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
      padding-bottom: 11px;
      border-bottom: 1px solid rgba(255, 170, 0, 0.2);
      color: var(--trade-yellow);
      font-family: 'Orbitron', monospace;
      font-size: 10px;
      font-weight: 900;
      letter-spacing: 0.5px;
    }

    .trade-cat-title {
      min-height: 28px;
      display: flex;
      align-items: center;
    }

    /* LISTA RESURSE */

    #trade-ores-list,
    #trade-parts-list,
    #trade-mats-list {
      display: flex;
      flex-direction: column;
      gap: 7px;
    }

    .trade-row {
      min-width: 0;
      min-height: 36px;
      padding: 8px 9px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 8px;
      background: rgba(0, 0, 0, 0.3);
      border: 1px solid rgba(120, 150, 180, 0.08);
      border-radius: 4px;
      color: #cbd7e6;
      font-family: 'Share Tech Mono', monospace;
      font-size: 10px;
      transition: 0.2s ease;
    }

    .trade-row:hover {
      background: rgba(255, 170, 0, 0.055);
      border-color: rgba(255, 170, 0, 0.2);
    }

    .trade-row span:first-child {
      min-width: 0;
    }

    .trade-row span:last-child {
      flex-shrink: 0;
      text-align: right;
      font-size: 9px;
    }

    /* BUTOANE VINZARE */

    .inv-btn-action {
      width: 100%;
      min-height: 32px;
      padding: 7px 9px;
      border: 1px solid transparent;
      border-radius: 4px;
      font-family: 'Orbitron', monospace;
      font-size: 9px;
      font-weight: 900;
      letter-spacing: 0.5px;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .inv-btn-action:hover {
      transform: translateY(-1px);
      filter: brightness(1.15);
      box-shadow: 0 0 13px rgba(255, 255, 255, 0.13);
    }

    .inv-btn-action:active {
      transform: translateY(0);
    }

    .inv-btn-action.ore-btn {
      color: #111;
      background: linear-gradient(135deg, #ffd32a, #ffaa00);
      border-color: rgba(255, 211, 42, 0.55);
    }

    .inv-btn-action.parts-btn {
      color: #001319;
      background: linear-gradient(135deg, #00e5ff, #00a9d5);
      border-color: rgba(0, 229, 255, 0.55);
    }

    .inv-btn-action.mats-btn {
      color: #fff;
      background: linear-gradient(135deg, #a855f7, #7138c7);
      border-color: rgba(168, 85, 247, 0.6);
    }

    /* VINDE TOT */

    .trade-sell-all {
      position: relative;
      margin-top: 2px;
    }

    .trade-sell-all button {
      width: 100%;
      min-height: 54px;
      padding: 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      background: linear-gradient(135deg, #00ff88, #10ac84);
      border: 1px solid rgba(0, 255, 136, 0.65);
      border-radius: 6px;
      color: #04130d;
      font-family: 'Orbitron', monospace;
      font-size: 12px;
      font-weight: 900;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      cursor: pointer;
      box-shadow: 0 0 18px rgba(0, 255, 136, 0.17);
      transition: 0.2s ease;
    }

    .trade-sell-all button:hover {
      transform: translateY(-2px);
      filter: brightness(1.1);
      box-shadow: 0 0 25px rgba(0, 255, 136, 0.38);
    }

    .trade-sell-all button:active {
      transform: translateY(0);
    }

    button:focus-visible {
      outline: 2px solid var(--trade-cyan);
      outline-offset: 3px;
    }

    /* RESPONSIVE */

    @media (max-width: 760px) {
      /* body reset removed to protect game canvas */

      .modal-card {
        width: 100%;
        max-height: calc(100vh - 16px);
        padding: 14px;
        gap: 13px;
      }

      .trade-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .trade-summary {
        align-items: flex-start;
        flex-direction: column;
      }

      .trade-summary-worth {
        text-align: left;
      }
    }

    @media (max-width: 520px) {
      .trade-grid {
        grid-template-columns: 1fr;
      }

      .trade-category {
        padding: 13px;
      }

      .trade-cat-header {
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
      }

      .trade-cat-title {
        flex: 1;
      }

      .inv-btn-action {
        width: auto;
        min-width: 105px;
      }

      .trade-summary-value {
        font-size: 12px;
      }

      .trade-sell-all button {
        font-size: 10px;
        padding: 12px 8px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
      }
    }
  

/* ========== STYLES FROM 06_meniu_clan_baza.html ========== */

    * {
      box-sizing: border-box;
    }

    /* body reset removed to protect game canvas */

    .modal-card {
      width: min(800px, 96vw) !important;
      max-width: 800px;
      max-height: 92vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      padding: 0;
      border: 1px solid rgba(255, 75, 85, 0.65) !important;
      border-radius: 14px;
      background:
        linear-gradient(145deg, rgba(35, 13, 25, 0.98), rgba(7, 12, 24, 0.98)) !important;
      box-shadow:
        0 0 35px rgba(255, 45, 65, 0.22),
        0 0 90px rgba(0, 0, 0, 0.75),
        inset 0 0 35px rgba(255, 50, 70, 0.035);
      position: relative;
    }

    .modal-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      opacity: 0.18;
      background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 25px 25px;
    }

    .modal-header {
      position: relative;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 18px 20px;
      border-bottom: 1px solid rgba(255, 75, 85, 0.3) !important;
      background: rgba(10, 8, 18, 0.72);
    }

    .modal-header h2 {
      margin: 0;
      color: #ff858b !important;
      font-family: 'Orbitron', sans-serif;
      font-size: clamp(13px, 2vw, 18px);
      font-weight: 900;
      letter-spacing: 1px;
      line-height: 1.5;
      text-shadow: 0 0 15px rgba(255, 70, 85, 0.55);
    }

    .btn-close {
      flex-shrink: 0;
      width: 34px;
      height: 34px;
      border: 1px solid rgba(255, 100, 110, 0.45);
      border-radius: 7px;
      background: rgba(255, 50, 65, 0.1);
      color: #ff858b !important;
      font-size: 18px;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .btn-close:hover {
      background: rgba(255, 50, 65, 0.28);
      box-shadow: 0 0 15px rgba(255, 50, 65, 0.35);
      transform: scale(1.06);
    }

    #clan-modal-/* body reset removed to protect game canvas */

    #clan-modal-body::-webkit-scrollbar {
      width: 6px;
    }

    #clan-modal-body::-webkit-scrollbar-thumb {
      background: #b7354d;
      border-radius: 10px;
    }

    .clan-overview {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 17px;
      border: 1px solid rgba(255, 85, 100, 0.38);
      border-radius: 10px;
      background: linear-gradient(
        110deg,
        rgba(150, 30, 55, 0.2),
        rgba(12, 20, 35, 0.75)
      );
      box-shadow: inset 0 0 22px rgba(255, 50, 70, 0.04);
    }

    .clan-name {
      color: #ff858b;
      font-family: 'Orbitron', sans-serif;
      font-size: clamp(13px, 2vw, 18px);
      font-weight: 900;
      letter-spacing: 0.5px;
      text-shadow: 0 0 12px rgba(255, 70, 85, 0.35);
    }

    .clan-info {
      margin-top: 7px;
      color: #8fa0b5;
      font-size: 13px;
    }

    .clan-info b {
      color: #fff;
    }

    .clan-info .member-count {
      color: #00e5ff;
    }

    .clan-treasury {
      min-width: 180px;
      text-align: right;
    }

    .treasury-label {
      color: #ffd166;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1px;
    }

    .treasury-value {
      margin-top: 5px;
      color: #ffd166;
      font-family: 'Orbitron', sans-serif;
      font-size: 15px;
      font-weight: 900;
      text-shadow: 0 0 10px rgba(255, 209, 102, 0.25);
    }

    .clan-card {
      display: flex;
      flex-direction: column;
      gap: 12px;
      padding: 16px;
      border: 1px solid rgba(229, 80, 57, 0.28);
      border-radius: 10px;
      background: rgba(9, 16, 29, 0.88);
      box-shadow:
        inset 0 0 20px rgba(255, 60, 75, 0.025),
        0 5px 18px rgba(0, 0, 0, 0.2);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .clan-card:hover {
      border-color: rgba(255, 95, 105, 0.48);
      box-shadow: 0 0 18px rgba(255, 50, 65, 0.08);
    }

    .section-title {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      color: #ffad72;
      font-family: 'Orbitron', sans-serif;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.7px;
    }

    .online-status {
      color: #00ff88;
      font-size: 11px;
      font-weight: 800;
      white-space: nowrap;
      text-shadow: 0 0 9px rgba(0, 255, 136, 0.35);
    }

    .offline-status {
      color: #8291a6;
    }

    .clan-description {
      color: #9aabc0;
      font-size: 13px;
      line-height: 1.55;
    }

    .clan-actions {
      display: flex;
      gap: 10px;
    }

    .cyber-btn {
      flex: 1;
      min-height: 42px;
      padding: 10px 12px;
      border: 1px solid rgba(255,255,255,0.15);
      border-radius: 6px;
      color: #fff;
      font-family: 'Orbitron', sans-serif;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.4px;
      cursor: pointer;
      transition: 0.2s ease;
      box-shadow: inset 0 0 12px rgba(255,255,255,0.05);
    }

    .cyber-btn:hover {
      filter: brightness(1.2);
      transform: translateY(-2px);
      box-shadow: 0 5px 18px rgba(0,0,0,0.3);
    }

    .alert-btn {
      background: linear-gradient(135deg, #9e1738, #e55039);
    }

    .donate-btn {
      background: linear-gradient(135deg, #0874b8, #00a6b8);
    }

    .members-heading {
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      color: #fff;
      font-family: 'Orbitron', sans-serif;
      font-size: 12px;
      font-weight: 800;
      letter-spacing: 0.6px;
    }

    .members-list {
      display: flex;
      flex-direction: column;
      gap: 7px;
      font-family: 'Share Tech Mono', monospace;
      font-size: 12px;
    }

    .member-row {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 9px 10px;
      border: 1px solid rgba(255,255,255,0.045);
      border-radius: 5px;
      background: rgba(0,0,0,0.28);
    }

    .member-name {
      color: #e2eaf5;
    }

    .member-online {
      color: #00ff88;
      white-space: nowrap;
    }

    .member-offline {
      color: #8291a6;
      white-space: nowrap;
    }

    @media (max-width: 600px) {
      .modal-card {
        width: 96vw !important;
        max-height: 94vh;
      }

      .modal-header {
        padding: 14px;
      }

      #clan-modal-/* body reset removed to protect game canvas */

      .clan-overview {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 13px;
      }

      .clan-treasury {
        width: 100%;
        min-width: 0;
        padding-top: 10px;
        border-top: 1px solid rgba(255,255,255,0.1);
        text-align: left;
      }

      .clan-card {
        padding: 13px;
      }

      .clan-actions {
        flex-direction: column;
      }

      .cyber-btn {
        width: 100%;
        min-height: 44px;
      }

      .section-title {
        align-items: flex-start;
        flex-direction: column;
      }

      .member-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
      }
    }
  

/* ========== STYLES FROM 07_meniu_admin_suprem.html ========== */

    * {
      box-sizing: border-box;
    }

    :root {
      --gold: #ffaa00;
      --gold-bright: #ffd32a;
      --cyan: #00e5ff;
      --green: #00ff88;
      --red: #ff2255;
      --violet: #a855f7;
      --panel: rgba(8, 12, 22, 0.94);
      --muted: #8999ae;
    }

    /* body reset removed to protect game canvas */

    .modal-card {
      position: relative;
      isolation: isolate;
      width: min(840px, 96vw) !important;
      max-width: 840px;
      max-height: 94vh;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      gap: 0;
      padding: 0;
      border: 1px solid rgba(255, 170, 0, 0.65) !important;
      border-radius: 12px;
      background:
        linear-gradient(145deg, rgba(34, 25, 13, 0.98), rgba(8, 12, 22, 0.98)) !important;
      box-shadow:
        0 0 25px rgba(255, 170, 0, 0.18),
        0 0 65px rgba(255, 100, 0, 0.1),
        inset 0 0 35px rgba(255, 170, 0, 0.035);
    }

    .modal-card::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      opacity: 0.16;
      background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
      background-size: 24px 24px;
    }

    .modal-card::after {
      content: "";
      position: absolute;
      top: 0;
      left: 8%;
      width: 84%;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--gold), transparent);
      box-shadow: 0 0 14px var(--gold);
      pointer-events: none;
    }

    .modal-header {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 19px 21px;
      border-bottom: 1px solid rgba(255, 170, 0, 0.28) !important;
      background: rgba(4, 8, 15, 0.78);
    }

    .modal-header h2 {
      margin: 0;
      color: var(--gold-bright) !important;
      font-family: 'Orbitron', sans-serif;
      font-size: clamp(13px, 2vw, 18px);
      font-weight: 900;
      letter-spacing: 1px;
      line-height: 1.5;
      text-shadow: 0 0 13px rgba(255, 170, 0, 0.55);
    }

    .btn-close {
      flex-shrink: 0;
      width: 34px;
      height: 34px;
      border: 1px solid rgba(255, 170, 0, 0.5);
      border-radius: 5px;
      background: rgba(255, 170, 0, 0.08);
      color: var(--gold-bright) !important;
      font-size: 18px;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .btn-close:hover {
      background: rgba(255, 34, 85, 0.2);
      border-color: var(--red);
      color: var(--red) !important;
      box-shadow: 0 0 14px rgba(255, 34, 85, 0.35);
    }

    /* ZONA PRINCIPAL */
    .admin-content {
      position: relative;
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 18px;
      overflow-y: auto;
      min-height: 0;
      scrollbar-width: thin;
      scrollbar-color: var(--gold) rgba(0,0,0,0.25);
    }

    .admin-content::-webkit-scrollbar {
      width: 6px;
    }

    .admin-content::-webkit-scrollbar-thumb {
      background: linear-gradient(var(--gold), #ff7700);
      border-radius: 10px;
    }

    /* INDICATOR ADMIN */
    .admin-status {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 10px;
      padding: 10px 13px;
      border: 1px solid rgba(255, 170, 0, 0.25);
      border-radius: 6px;
      background: rgba(255, 170, 0, 0.055);
    }

    .admin-status-title {
      color: #ffe2a0;
      font-family: 'Orbitron', sans-serif;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1px;
    }

    .admin-status-online {
      color: var(--green);
      font-family: 'Share Tech Mono', monospace;
      font-size: 10px;
      animation: statusPulse 2s infinite;
    }

    @keyframes statusPulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.55; }
    }

    /* PANOU MONEDE */
    .admin-currency-panel {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .currency-box {
      display: flex;
      flex-direction: column;
      gap: 9px;
      padding: 14px;
      border: 1px solid rgba(255, 170, 0, 0.28);
      border-radius: 8px;
      background: rgba(0, 0, 0, 0.35);
      box-shadow: inset 0 0 18px rgba(255, 170, 0, 0.025);
    }

    .currency-box.uridium {
      border-color: rgba(0, 229, 255, 0.35);
      box-shadow: inset 0 0 18px rgba(0, 229, 255, 0.035);
    }

    .currency-title {
      font-family: 'Orbitron', sans-serif;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.7px;
      color: var(--gold-bright);
    }

    .uridium .currency-title {
      color: var(--cyan);
    }

    .currency-controls {
      display: flex;
      gap: 7px;
      align-items: stretch;
    }

    .currency-controls input {
      min-width: 0;
      width: 100%;
      flex: 1;
      padding: 9px 10px;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 5px;
      outline: none;
      background: rgba(15, 22, 36, 0.95);
      color: #fff;
      font-family: 'Share Tech Mono', monospace;
      font-size: 13px;
    }

    .currency-controls input:focus {
      border-color: var(--gold);
      box-shadow: 0 0 10px rgba(255, 170, 0, 0.15);
    }

    .uridium .currency-controls input:focus {
      border-color: var(--cyan);
      box-shadow: 0 0 10px rgba(0, 229, 255, 0.15);
    }

    .currency-controls button {
      flex-shrink: 0;
      padding: 8px 12px;
      border: 0;
      border-radius: 5px;
      background: linear-gradient(135deg, #ffd32a, #ff9900);
      color: #171006;
      font-family: 'Orbitron', sans-serif;
      font-size: 9px;
      font-weight: 900;
      cursor: pointer;
      transition: 0.2s ease;
    }

    .uridium .currency-controls button {
      background: linear-gradient(135deg, #00e5ff, #008cff);
      color: #00141c;
    }

    .currency-controls button:hover {
      filter: brightness(1.18);
      transform: translateY(-2px);
      box-shadow: 0 0 13px rgba(255, 170, 0, 0.3);
    }

    .uridium .currency-controls button:hover {
      box-shadow: 0 0 13px rgba(0, 229, 255, 0.3);
    }

    /* TITLU SECȚIUNE */
    .section-heading {
      display: flex;
      align-items: center;
      gap: 10px;
      color: #dce7f6;
      font-family: 'Orbitron', sans-serif;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1px;
    }

    .section-heading::after {
      content: "";
      flex: 1;
      height: 1px;
      background: linear-gradient(90deg, rgba(255,170,0,0.5), transparent);
    }

    /* GRILĂ ADMIN */
    .admin-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 11px;
    }

    .admin-action {
      position: relative;
      min-width: 0;
      min-height: 82px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 6px;
      padding: 13px 14px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.16);
      border-radius: 7px;
      color: #fff;
      text-align: left;
      cursor: pointer;
      transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    }

    .admin-action::before {
      content: "";
      position: absolute;
      top: 0;
      left: -100%;
      width: 55%;
      height: 100%;
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
      transform: skewX(-20deg);
      transition: left 0.55s ease;
      pointer-events: none;
    }

    .admin-action:hover::before {
      left: 150%;
    }

    .admin-action:hover {
      filter: brightness(1.13);
      transform: translateY(-3px);
      box-shadow: 0 7px 20px rgba(0,0,0,0.35);
    }

    .admin-action:active {
      transform: translateY(0) scale(0.99);
    }

    .admin-action span {
      position: relative;
      z-index: 1;
      font-family: 'Orbitron', sans-serif;
      font-size: 10px;
      font-weight: 900;
      line-height: 1.5;
      letter-spacing: 0.3px;
    }

    .admin-action small {
      position: relative;
      z-index: 1;
      font-family: 'Rajdhani', sans-serif;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.35;
      opacity: 0.9;
    }

    /* CULORI INDIVIDUALE */
    .action-god {
      background: linear-gradient(130deg, rgba(173, 105, 0, 0.95), rgba(107, 52, 0, 0.95));
      border-color: rgba(255, 211, 42, 0.65);
    }

    .action-oneshot {
      background: linear-gradient(130deg, rgba(190, 35, 52, 0.95), rgba(90, 13, 28, 0.95));
      border-color: rgba(255, 70, 90, 0.55);
    }

    .action-opals {
      background: linear-gradient(130deg, rgba(159, 54, 160, 0.95), rgba(78, 29, 122, 0.95));
      border-color: rgba(210, 120, 255, 0.65);
    }

    .action-magmacite {
      background: linear-gradient(130deg, rgba(190, 82, 15, 0.95), rgba(102, 34, 10, 0.95));
      border-color: rgba(255, 121, 63, 0.65);
    }

    .action-ship {
      grid-column: 1 / -1;
      background: linear-gradient(110deg, rgba(0, 102, 180, 0.95), rgba(0, 132, 145, 0.95));
      border-color: rgba(0, 229, 255, 0.65);
    }

    .action-drones {
      background: linear-gradient(130deg, rgba(0, 139, 150, 0.95), rgba(0, 82, 105, 0.95));
      border-color: rgba(0, 229, 255, 0.55);
    }

    .action-world {
      background: linear-gradient(130deg, rgba(92, 65, 175, 0.95), rgba(95, 25, 75, 0.95));
      border-color: rgba(168, 85, 247, 0.65);
    }

    /* FOOTER */
    .admin-footer {
      padding-top: 10px;
      border-top: 1px solid rgba(255,255,255,0.08);
      color: #687a91;
      font-family: 'Share Tech Mono', monospace;
      font-size: 9px;
      text-align: center;
      letter-spacing: 1px;
    }

    @media (max-width: 600px) {
      /* body reset removed to protect game canvas */

      .modal-card {
        width: 98vw !important;
        max-height: 96vh;
      }

      .modal-header {
        padding: 14px;
      }

      .admin-content {
        padding: 12px;
        gap: 13px;
      }

      .admin-currency-panel {
        grid-template-columns: 1fr;
      }

      .admin-grid {
        grid-template-columns: 1fr;
      }

      .action-ship {
        grid-column: auto;
      }

      .admin-action {
        min-height: 75px;
      }

      .admin-status {
        align-items: flex-start;
        flex-direction: column;
      }
    }

    @media (max-width: 360px) {
      .currency-controls {
        flex-wrap: wrap;
      }

      .currency-controls input {
        flex-basis: 100%;
      }

      .currency-controls button {
        width: 100%;
        min-height: 36px;
      }
    }
  

/* ========== STYLES FROM 08_portal_login_register.html ========== */

    :root {
      --cyan: #00e5ff;
      --cyan-soft: rgba(0, 229, 255, 0.15);
      --gold: #ffaa00;
      --green: #00ff88;
      --red: #ff2255;
      --violet: #a855f7;
      --text: #e8f4ff;
      --muted: #8194aa;
      --panel: rgba(8, 12, 22, 0.94);
      --border: rgba(0, 229, 255, 0.25);
    }

    * {
      box-sizing: border-box;
    }

    html {
      min-height: 100%;
      background: #050914;
    }

    /* body reset removed to protect game canvas */

    /* Fundal tehnologic */

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;

      background-image:
        linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);

      background-size: 42px 42px;
      mask-image: linear-gradient(to bottom, black, transparent 90%);
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;

      background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 3px,
        rgba(0, 0, 0, 0.10) 4px
      );
    }

    /* Portal principal */

    .dark-orion-portal {
      width: 480px;
      max-width: 100%;
      position: relative;
      z-index: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;

      background: var(--panel);
      border: 1px solid rgba(0, 229, 255, 0.55);
      border-radius: 12px;

      box-shadow:
        0 0 35px rgba(0, 229, 255, 0.13),
        0 0 100px rgba(0, 0, 0, 0.75),
        inset 0 0 30px rgba(0, 229, 255, 0.025);

      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);

      animation: portal-entry 0.7s ease-out;
    }

    .dark-orion-portal::before {
      content: "";
      position: absolute;
      top: 0;
      left: 12%;
      right: 12%;
      height: 2px;
      background: linear-gradient(90deg, transparent, var(--cyan), transparent);
      box-shadow: 0 0 14px var(--cyan);
    }

    .portal-header {
      padding: 25px 20px 21px;
      text-align: center;
      position: relative;

      background:
        linear-gradient(180deg, rgba(0, 229, 255, 0.10), transparent);

      border-bottom: 1px solid var(--border);
    }

    .portal-header h2 {
      margin: 0;
      font-family: 'Orbitron', sans-serif;
      font-size: clamp(19px, 5vw, 25px);
      font-weight: 900;
      letter-spacing: 3px;
      color: #fff;

      text-shadow:
        0 0 8px var(--cyan),
        0 0 22px rgba(0, 229, 255, 0.55);
    }

    .portal-subtitle {
      margin-top: 8px;
      color: var(--cyan);
      font-family: 'Share Tech Mono', monospace;
      font-size: 11px;
      letter-spacing: 2px;
      text-transform: uppercase;
    }

    .portal-status {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-top: 15px;
      padding: 5px 12px;

      border: 1px solid rgba(0, 255, 136, 0.25);
      background: rgba(0, 255, 136, 0.06);
      border-radius: 3px;

      color: var(--green);
      font-family: 'Share Tech Mono', monospace;
      font-size: 10px;
      letter-spacing: 1px;
    }

    .portal-status::before {
      content: "";
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 8px var(--green);
      animation: status-pulse 1.8s infinite;
    }

    /* Taburi */

    .auth-tabs {
      display: flex;
      background: rgba(0, 0, 0, 0.25);
      border-bottom: 1px solid var(--border);
    }

    #tab-btn-login,
    #tab-btn-register {
      flex: 1;
      min-width: 0;
      padding: 15px 8px;

      background: transparent;
      border: none;
      border-bottom: 2px solid transparent;

      color: var(--muted);
      font-family: 'Orbitron', sans-serif;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.5px;

      cursor: pointer;
      transition: 0.25s ease;
    }

    #tab-btn-login:hover,
    #tab-btn-register:hover {
      color: white;
      background: rgba(0, 229, 255, 0.05);
    }

    #tab-btn-login:focus-visible,
    #tab-btn-register:focus-visible {
      outline: 2px solid var(--cyan);
      outline-offset: -3px;
    }

    /* Formulare */

    #auth-panel-login,
    #auth-panel-register {
      padding: 25px;
      display: flex;
      flex-direction: column;
      gap: 17px;
    }

    #auth-panel-login > div:not(#login-error-msg),
    #auth-panel-register > div {
      width: 100%;
    }

    #auth-panel-login label,
    #auth-panel-register label {
      display: block;
      margin-bottom: 7px;

      color: #9eb1c7;
      font-family: 'Orbitron', sans-serif;
      font-size: 10px;
      font-weight: 700;
      letter-spacing: 0.8px;
      text-transform: uppercase;
    }

    /* Câmpuri */

    .auth-input {
      display: block;
      width: 100%;
      min-height: 45px;
      padding: 11px 14px;

      color: white;
      background: rgba(1, 6, 15, 0.85);

      border: 1px solid rgba(0, 229, 255, 0.30);
      border-radius: 5px;

      font-family: 'Rajdhani', sans-serif;
      font-size: 16px;
      font-weight: 700;

      outline: none;
      transition: 0.25s ease;
    }

    .auth-input::placeholder {
      color: #53667d;
      opacity: 1;
    }

    .auth-input:hover {
      border-color: rgba(0, 229, 255, 0.55);
    }

    .auth-input:focus {
      border-color: var(--cyan);
      background: rgba(0, 20, 32, 0.95);

      box-shadow:
        0 0 0 2px rgba(0, 229, 255, 0.08),
        0 0 16px rgba(0, 229, 255, 0.16);
    }

    /* Mesaj eroare */

    #login-error-msg {
      padding: 10px 13px;
      background: rgba(255, 34, 85, 0.10);
      border: 1px solid rgba(255, 34, 85, 0.65);
      border-left: 3px solid var(--red);
      border-radius: 4px;

      color: #ff718f;
      font-size: 13px;
      font-weight: 700;
    }

    /* Butoane */

    .cyber-btn {
      width: 100%;
      min-height: 47px;
      padding: 12px;

      color: #001018;
      background: linear-gradient(135deg, #00e5ff, #008caf);

      border: 1px solid rgba(0, 229, 255, 0.8);
      border-radius: 4px;

      font-family: 'Orbitron', sans-serif;
      font-size: 11px;
      font-weight: 900;
      letter-spacing: 0.7px;

      cursor: pointer;
      transition: 0.25s ease;

      box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
    }

    .cyber-btn:hover {
      filter: brightness(1.18);
      transform: translateY(-2px);
      box-shadow:
        0 0 12px rgba(0, 229, 255, 0.35),
        0 0 25px rgba(0, 229, 255, 0.15);
    }

    .cyber-btn:active {
      transform: translateY(0);
    }

    .cyber-btn:focus-visible,
    .guest-btn:focus-visible {
      outline: 2px solid white;
      outline-offset: 3px;
    }

    .guest-btn {
      width: 100%;
      padding: 11px;

      color: #9aacc0;
      background: rgba(255, 255, 255, 0.015);

      border: 1px dashed rgba(255, 255, 255, 0.20);
      border-radius: 4px;

      font-family: 'Rajdhani', sans-serif;
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 1px;

      cursor: pointer;
      transition: 0.25s ease;
    }

    .guest-btn:hover {
      color: var(--cyan);
      border-color: var(--cyan);
      background: rgba(0, 229, 255, 0.06);
    }

    /* Facțiuni */

    .faction-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 9px;
    }

    .faction-card {
      min-width: 0;
      padding: 13px 5px;
      text-align: center;

      background: rgba(8, 15, 27, 0.85);
      border: 1px solid #1f3a52;
      border-radius: 5px;

      cursor: pointer;
      transition: 0.25s ease;
    }

    .faction-card:hover,
    .faction-card.active {
      border-color: var(--cyan);
      background: rgba(0, 229, 255, 0.09);

      box-shadow:
        0 0 12px rgba(0, 229, 255, 0.15),
        inset 0 0 12px rgba(0, 229, 255, 0.04);

      transform: translateY(-2px);
    }

    .faction-card:active {
      transform: scale(0.97);
    }

    .faction-card > div:first-child {
      font-size: 23px !important;
      margin-bottom: 5px;
    }

    .faction-card > div:nth-child(2) {
      font-family: 'Orbitron', sans-serif;
      font-size: 12px !important;
      letter-spacing: 1px;
    }

    .faction-card > div:nth-child(3) {
      margin-top: 4px;
      font-family: 'Share Tech Mono', monospace;
      font-size: 10px !important;
    }

    /* Subsol */

    .portal-footer {
      padding: 12px 15px;
      text-align: center;

      color: #52677e;
      background: rgba(0, 0, 0, 0.20);
      border-top: 1px solid rgba(0, 229, 255, 0.12);

      font-family: 'Share Tech Mono', monospace;
      font-size: 9px;
      letter-spacing: 1px;
    }

    /* Animații */

    @keyframes portal-entry {
      from {
        opacity: 0;
        transform: translateY(15px) scale(0.98);
      }
      to {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes status-pulse {
      0%, 100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--green);
      }
      50% {
        opacity: 0.45;
        box-shadow: 0 0 2px var(--green);
      }
    }

    /* Telefon */

    @media (max-width: 520px) {
      /* body reset removed to protect game canvas */

      .dark-orion-portal {
        width: 100%;
        border-radius: 9px;
      }

      .portal-header {
        padding: 22px 12px 18px;
      }

      #auth-panel-login,
      #auth-panel-register {
        padding: 19px 16px;
        gap: 15px;
      }

      #tab-btn-login,
      #tab-btn-register {
        font-size: 9px;
        padding: 14px 4px;
      }

      .faction-grid {
        gap: 6px;
      }

      .faction-card {
        padding: 12px 3px;
      }
    }

    @media (max-width: 350px) {
      .portal-header h2 {
        letter-spacing: 1px;
      }

      #auth-panel-login,
      #auth-panel-register {
        padding: 15px 12px;
      }

      #tab-btn-login,
      #tab-btn-register {
        font-size: 8px;
      }
    }

    /* Accesibilitate: respectă setarea de reducere a animațiilor */

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }
  

/* ========== STYLES FROM 09_hud_bara_actiuni.html ========== */

    :root {
      --cyan: #00e5ff;
      --cyan-soft: rgba(0,229,255,.15);
      --gold: #ffaa00;
      --green: #00ff88;
      --red: #ff2255;
      --violet: #a855f7;
      --panel: rgba(8,12,22,.91);
      --border: rgba(0,229,255,.30);
      --text: #eafaff;
    }

    * {
      box-sizing: border-box;
    }

    /* body reset removed to protect game canvas */

    /* DECORAȚIUNI HUD */
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      opacity: .12;
      z-index: -1;
      background-image:
        linear-gradient(rgba(0,229,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,229,255,.08) 1px, transparent 1px);
      background-size: 45px 45px;
    }

    /* TOP BAR HUD */
    .top-bar {
      position: relative;
      z-index: 10;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
      flex-wrap: wrap;
      padding: 12px 18px;
      background: var(--panel);
      border: 1px solid var(--border);
      border-radius: 5px;
      backdrop-filter: blur(14px);
      box-shadow:
        0 8px 30px rgba(0,0,0,.5),
        0 0 18px rgba(0,229,255,.08),
        inset 0 1px rgba(255,255,255,.04);
    }

    .top-bar::before,
    .action-bar::before,
    .target-panel::before {
      content: "";
      position: absolute;
      top: 0;
      left: 18px;
      width: 90px;
      height: 2px;
      background: linear-gradient(90deg, var(--cyan), transparent);
      box-shadow: 0 0 12px var(--cyan);
    }

    .top-bar > div {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .hud-title {
      font-family: 'Orbitron', monospace;
      font-size: 17px;
      font-weight: 900;
      letter-spacing: 2px;
      color: #fff;
      text-shadow: 0 0 12px var(--cyan);
      white-space: nowrap;
    }

    .stat-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 7px 12px;
      background: rgba(0,0,0,.45);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 3px;
      font-family: 'Share Tech Mono', monospace;
      font-size: 12px;
      letter-spacing: .5px;
      white-space: nowrap;
      box-shadow: inset 0 0 10px rgba(0,0,0,.4);
    }

    /* BUTOANE MENIU */
    .cyber-btn {
      position: relative;
      padding: 9px 13px;
      border: 1px solid rgba(0,229,255,.35);
      border-radius: 3px;
      background: linear-gradient(180deg, rgba(14,34,49,.95), rgba(5,12,23,.95));
      color: #c8f8ff;
      font-family: 'Orbitron', sans-serif;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: .6px;
      cursor: pointer;
      transition: .2s ease;
      clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px);
    }

    .cyber-btn:hover {
      color: #fff;
      border-color: var(--cyan);
      background: rgba(0,229,255,.18);
      box-shadow: 0 0 14px rgba(0,229,255,.3);
      transform: translateY(-2px);
    }

    /* PANOU ȚINTĂ */
    .target-panel {
      position: absolute;
      top: 95px;
      left: 50%;
      transform: translateX(-50%);
      width: 380px;
      max-width: calc(100vw - 30px);
      padding: 13px 17px;
      background: rgba(5,12,23,.94);
      border: 1px solid rgba(0,229,255,.45);
      border-radius: 4px;
      backdrop-filter: blur(14px);
      box-shadow:
        0 8px 35px rgba(0,0,0,.6),
        0 0 22px rgba(0,229,255,.12),
        inset 0 0 20px rgba(0,229,255,.025);
      z-index: 5;
    }

    .target-panel::after {
      content: "TARGET LOCK // ACTIVE";
      position: absolute;
      top: -9px;
      right: 12px;
      padding: 2px 7px;
      background: #071421;
      color: var(--cyan);
      font-family: 'Share Tech Mono', monospace;
      font-size: 8px;
      letter-spacing: 1px;
    }

    #t-name {
      font-family: 'Orbitron', sans-serif;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .5px;
    }

    #t-dist {
      font-family: 'Share Tech Mono', monospace;
      font-size: 12px;
    }

    .bar-wrap {
      position: relative;
      height: 9px;
      margin-top: 5px;
      overflow: hidden;
      background: rgba(0,0,0,.8);
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 2px;
      box-shadow: inset 0 1px 4px #000;
    }

    .bar-fill-hp {
      height: 100%;
      width: 75%;
      background: linear-gradient(90deg, #00994f, #00ff88);
      box-shadow: 0 0 12px rgba(0,255,136,.65);
      transition: width .3s ease;
    }

    .bar-fill-sh {
      height: 100%;
      width: 90%;
      background: linear-gradient(90deg, #0066aa, #00e5ff);
      box-shadow: 0 0 12px rgba(0,229,255,.65);
      transition: width .3s ease;
    }

    /* ACTION BAR */
    .action-bar {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      align-self: center;
      flex-wrap: wrap;
      gap: 9px;
      padding: 13px 17px;
      background: rgba(5,11,21,.94);
      border: 1px solid rgba(0,229,255,.38);
      border-radius: 5px;
      backdrop-filter: blur(15px);
      box-shadow:
        0 -5px 30px rgba(0,0,0,.5),
        0 0 22px rgba(0,229,255,.09),
        inset 0 1px rgba(255,255,255,.04);
    }

    .action-btn {
      position: relative;
      width: 66px;
      height: 68px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 3px;
      background: linear-gradient(145deg, #111e2c, #050a13);
      border: 1px solid rgba(0,229,255,.25);
      border-radius: 4px;
      cursor: pointer;
      transition: all .2s ease;
      box-shadow:
        inset 0 0 12px rgba(0,0,0,.6),
        0 3px 8px rgba(0,0,0,.4);
    }

    .action-btn::after {
      content: "";
      position: absolute;
      bottom: 0;
      left: 20%;
      width: 60%;
      height: 2px;
      background: rgba(0,229,255,.2);
    }

    .action-btn:hover,
    .action-btn.active {
      border-color: var(--cyan);
      background: linear-gradient(145deg, rgba(0,100,130,.45), #07121e);
      box-shadow:
        0 0 17px rgba(0,229,255,.24),
        inset 0 0 15px rgba(0,229,255,.08);
      transform: translateY(-3px);
    }

    .action-btn.active::after {
      background: var(--cyan);
      box-shadow: 0 0 10px var(--cyan);
    }

    .action-btn .btn-key {
      position: absolute;
      top: 4px;
      left: 6px;
      font-family: 'Share Tech Mono', monospace;
      font-size: 8px;
      font-weight: bold;
      color: #8ba9bc;
    }

    .action-btn .btn-icon {
      font-size: 25px;
      filter: drop-shadow(0 0 5px rgba(0,229,255,.35));
    }

    .action-btn .btn-lbl {
      font-family: 'Orbitron', sans-serif;
      font-size: 8px;
      font-weight: 800;
      letter-spacing: .5px;
      color: #e7faff;
    }

    /* RESPONSIVE */
    @media (max-width: 900px) {
      /* body reset removed to protect game canvas */

      .top-bar {
        justify-content: center;
      }

      .top-bar > div {
        justify-content: center;
      }

      .target-panel {
        top: 155px;
      }
    }

    @media (max-width: 600px) {
      .hud-title {
        font-size: 13px;
      }

      .stat-badge {
        font-size: 10px;
        padding: 5px 8px;
      }

      .cyber-btn {
        padding: 8px;
        font-size: 8px;
      }

      .target-panel {
        top: 190px;
      }

      .action-bar {
        gap: 5px;
        padding: 8px;
      }

      .action-btn {
        width: 55px;
        height: 60px;
      }
    }
  
