/* =============================================
   STYLE.CSS — Versão Premium GTA RP
   Unificado com HUD (não precisa hud.css separado)
   ============================================= */

/* Fontes Orbitron + Poppins */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700&family=Poppins:wght@400;600&display=swap');

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

/* ======================
   GERAL
   ====================== */
body {
  display: grid;
  grid-template-columns: 1fr 320px; /* 3D | Painel */
  height: 100vh;
  overflow: hidden;
}

/* ============================
   ÁREA DO AVATAR 3D
  ============================ */
/*CONTAINER CENTRALIZADO NO MEIO DA TELA*/
.gta-container-externa {
  width: 100vw;
  height: 100vh;
  background: transparent; /* fundo agora fica transparente */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* O "painel" visual principal do criador */
.gta-wrapper {
  width: 1280px; /* define o limite horizontal */
  height: 840px; /*antes 760px*/
  display: flex;
  background: radial-gradient(ellipse at center, #1a1a1a 0%, #121212 100%);
  border: 1px solid #FFD700; /* BORDA MAIS FINA */
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3), 0 0 60px rgba(255, 215, 0, 0.05) inset;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
   
/* Canvas 3D com fundo e compensação da HUD */
#gta-canvas-container {
  width: calc(100% - 320px); /* tira a largura da HUD */
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, #1e1e1e 0%, #121212 100%);
  overflow: hidden; /* impede avatar estourar */
  padding: 0 30px; /* margens laterais pro avatar respirar */
}

#gta-canvas-container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,215,0,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* CONTROLES NO TOPO (MOBILE/TABLET) - ESCONDIDOS NO DESKTOP */
.gta-top-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.95);
  border-bottom: 1px solid #FFD700;
  padding: 10px;
  z-index: 10;
  backdrop-filter: blur(10px);
  display: none; /* ESCONDIDO POR PADRÃO */
}

/* ============================
   HUD / PAINEL DE CONTROLE
   ============================ */
/* Painel HUD lateral fixo */
.gta-hud-panel {
  width: 400px;
  height: 100%;
  overflow-y: hidden;
  max-height: 95vh;
  background: rgba(20, 20, 20, 0.95);
  overflow-y: auto !important;      /* permite scroll interno */
  padding: 16px 12px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid #FFD700;
  box-shadow: -8px 0 30px rgba(255, 215, 0, 0.1);
}

/* SUBCATEGORIAS DE PEÇAS */
.subcategorias-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.subcategoria h4 {
  margin: 6px 0 4px;
  font-family: 'Orbitron', sans-serif;
  color: #FFD700;
  font-size: 14px;
}

.botoes-pecas {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.botoes-pecas button {
  font-size: 13px;
  background: #222;
  border: 1px solid #FFD700;
  color: #FFD700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.botoes-pecas button:hover {
  background: #FFD700;
  color: #121212;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* Menu */
/* Ícones em linha única, grandes e padronizados */
.gta-tab-nav.minimal-icons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 10px 0;
}

.gta-tab-nav.minimal-icons .gta-tab-btn {
  flex: 1;
  font-size: 26px;
  padding: 12px;
  border-radius: 10px;
  background: #111;
  color: #FFD700;
  border: 1px solid #FFD700; /* BORDA MAIS FINA */
  transition: all 0.3s;
  cursor: pointer;
}

.gta-tab-nav.minimal-icons .gta-tab-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.gta-tab-nav.minimal-icons .gta-tab-btn.active {
  background: #FFD700;
  color: #121212;
  box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

.gta-tab-nav.minimal-icons .gta-tab-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.6);
}

/* Label visível abaixo do menu */
.gta-tab-label-ativa {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  font-weight: bold;
  color: #FFD700;
  padding: 6px 0 12px;
  border-bottom: 1px solid #FFD700; /* BORDA MAIS FINA */
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Título da seção */
.gta-panel-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 24px;
  text-align: center;
}

/* ✅ TÍTULO KIT DE SKIN COM TRAÇADO */
.gta-kit-skin-title {
  width: 100%;
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFD700;
  margin: 15px 0 10px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #FFD700;
}

/* Grupo de controles */
.gta-control-group {
  margin-bottom: 6px; /* era 10px */
}

.gta-control-label {
  font-weight: bold;
  font-size: 12px; /* era 13px */
  margin-bottom: 4px; /* era 8px */
  color: #d1d1d1;
}

.gta-control-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #2c2c2c;
  padding: 10px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.gta-control-buttons:hover {
  background-color: #333;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
}

.gta-control-buttons span {
  flex: 1;
  text-align: center;
  color: #ffffff;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
}

.gta-btn {
  background-color: #FFD700;
  color: #121212;
  padding: 4px 10px; /* era 6px 12px */
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; /* mais compacto */
  cursor: pointer;
  transition: all 0.3s ease;
}

.gta-btn:hover {
  background-color: #ffe45c;
  box-shadow: 0 0 8px #ffd70080;
  transform: scale(1.05);
}

/* Toggle de gênero */
.gta-gender-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 18px; /* Espaço abaixo do gênero */
  justify-content: center; /* Centraliza */
}

.gta-gender-toggle .gta-btn {
  flex: 1;
  font-size: 13px;
  background-color: #2c2c2c;
  color: #fff;
  border: 1px solid #444;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.gta-gender-toggle .gta-btn:hover {
  background-color: #3a3a3a;
  border-color: #FFD700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  transform: translateY(-1px);
}

/* Conteúdo das abas */
.gta-tab-content {
  animation: fadeIn 0.3s ease;
  color: #d1d1d1;
  font-size: 14px;
}

/* Rodapé com botões */
.gta-hud-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.gta-footer {
  width: 100%; 	
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 12px; /* espaço entre botão e fim do painel */
}

.gta-footer button {
  padding: 10px;
  font-size: 13px;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.gta-footer button:hover {
  transform: translateY(-2px);
}

.gta-btn-salvar {
  background: #4CAF50;
  color: white;
  border: 2px solid #4CAF50;
  border-radius: 6px;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  font-size: 14px;
  padding: 10px 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

.gta-btn-salvar:hover {
  background: #66bb6a;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.7), 0 0 20px rgba(76, 175, 80, 0.4);
  transform: scale(1.05);
}

.gta-btn-comprar {
  background: #2196f3;
  color: white;
  border: 2px solid #2196f3;
  box-shadow: 0 0 5px rgba(33, 150, 243, 0.4);
}

.gta-btn-comprar:hover {
  background: #42a5f5;
  box-shadow: 0 0 12px rgba(33, 150, 243, 0.7), 0 0 20px rgba(33, 150, 243, 0.4);
}

.gta-btn-cancelar {
  background: #FF3131;
  color: white;
  border: 2px solid #FF3131;
  box-shadow: 0 0 5px rgba(255, 49, 49, 0.4);
}

.gta-btn-cancelar:hover {
  background: #ff5252;
  box-shadow: 0 0 12px rgba(255, 49, 49, 0.7), 0 0 20px rgba(255, 49, 49, 0.4);
}

/* ==========================
   MODAL DE COMPRA
   ========================== */
#modal-compra,
#gta-modal-compra {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.modal-content,
.gta-modal-content {
  background-color: #1e1e1e;
  width: 400px;
  margin: 10% auto;
  padding: 30px;
  border: 1px solid #FFD700;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.2);
  color: #fff;
}

.gta-modal-close {
  float: right;
  font-size: 22px;
  font-weight: bold;
  color: #FF3131;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gta-modal-close:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px #FF3131;
}

.btn-loja {
  margin-top: 20px;
  background-color: #FFD700;
  color: #121212;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-loja:hover {
  background-color: #ffe45c;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.skin-salva {
  background: #1c1c1c;
  border: 1px solid #333;
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 6px;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.skin-salva button {
  margin-top: 8px;
}

.skin-vazia,
.skin-erro {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  color: #ccc;
  padding: 6px;
}

/* ====================
   SEÇÃO DAS ABAS
   ==================== */
.gta-section-title {
  background: #fff;
  color: #121212;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
  box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.gta-section-title .emoji {
  font-size: 20px;
}

/* ====================
   ABA LOJA
   ==================== */
#aba-loja {
  color: #d1d1d1;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  background-color: #1e1e1e;
  border: 1px dashed #FFD700;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.1);
}

#aba-loja h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: #FFD700;
  margin-bottom: 12px;
}

.neon-destaque {
  color: #FFD700;
  font-weight: bold;
  text-shadow: 0 0 8px #ffd70088;
}

.neon-rp {
  color: #FF3131;
  font-weight: bold;
  text-shadow: 0 0 8px #ff313188;
}

/*CSS para os subtítulos (Camisa, Calça, etc)*/
.gta-control-label {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #FFD700;
  margin-bottom: 6px;
}

/* ====================
   🔄 ESTILO SELETOR: Escolhe os Kits de Skin
   ==================== */
/* Estilo específico para o SELECT de kits */
#gta-selector,
#kit-selector,
select.gta-btn {
  background: #FFD700;
  color: #121212;
  border: 1px solid #FFD700;
  border-radius: 4px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  width: 100%;
  outline: none;
  appearance: none; /* Remove o estilo nativo do navegador */
  transition: all 0.3s ease;
}

select.gta-btn:focus,
#kit-selector:focus {
  outline: none;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.5);
}

#gta-selector:hover,
#kit-selector:hover,
select.gta-btn:hover {
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
  background-color: #ffe45c;
  transform: translateY(-1px);
}

.gta-control-buttons select {
  margin-top: 4px;
}

/* Estilo para toast de feedback */
.gta-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #181818;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 15px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.gta-toast.show {
  opacity: 0.95;
  pointer-events: auto;
}

/* Aba Skin */
/* Texto descritivo da seção */
#minhas-skins p {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #dcdcdc;
  background: #181818;
  padding: 10px 14px;
  border-left: 4px solid #FFD700;
  border-radius: 6px;
  margin-bottom: 14px;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.1);
}

/* Caixa de skins */
#lista-skins {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  background: #121212;
  color: #FFD700;
  border: 1px solid #FFD70040;
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 90px;
  margin-bottom: 16px;
  box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.08);
}

/* Estilo animado para o texto "Carregando..." */
#lista-skins.loading {
  color: #FFD700;
  font-style: italic;
  animation: pulseLoad 1.2s infinite ease-in-out;
}

@keyframes pulseLoad {
  0%   { opacity: 0.3; }
  50%  { opacity: 1; }
  100% { opacity: 0.3; }
}

/* Aba Loja */
.loja-card {
  width: 100%;
  background: #1b1b1b;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 3px solid #FFD700;
  transition: all 0.3s ease;
}

.loja-card:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
}

#aba-loja h2 {
  margin-bottom: 8px;
  font-size: 18px;
  color: #FFD700;
}

#aba-loja p {
  margin-bottom: 20px;
  color: #ccc;
  font-size: 15px;
  line-height: 1.5;
}

/* =============================================
   RESPONSIVIDADE MOBILE/TABLET - AJUSTES ESPECÍFICOS
   ============================================= */

/* ESCONDER CONTROLES MOBILE NO DESKTOP */
@media (min-width: 769px) {
  .gta-top-nav {
    display: none !important;
  }
}

/* TABLET LANDSCAPE (1024px - 769px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .gta-wrapper {
    width: 95vw;
    height: 90vh;
  }
  
  .gta-container-externa {
    padding: 10px;
  }

  /* Botões um pouco menores no tablet */
  .gta-tab-nav.minimal-icons .gta-tab-btn {
    font-size: 22px;
    padding: 10px;
  }

  .gta-btn {
    padding: 6px 8px;
    font-size: 10px;
  }
  
  /*  LAYOUT EM DUAS COLUNAS PARA CATEGORIAS NO TABLET */
  .gta-tablet-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* TABLET PORTRAIT E MOBILE (768px e menor) */
@media (max-width: 768px) {
  body {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    overflow: hidden !important;
  }

  .gta-container-externa {
    width: 100vw;
    height: 100vh;
    padding: 0;
    align-items: stretch;
  }

  .gta-wrapper {
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    border-radius: 0;
    border: 1px solid #FFD700;
  }

  /* MOSTRAR CONTROLES NO TOPO EM MOBILE/TABLET */
  .gta-top-nav {
    display: block !important;
  }

  /* ESCONDER CONTROLES DO PAINEL EM MOBILE/TABLET */
  .gta-hud-panel .gta-tab-nav.minimal-icons,
  .gta-hud-panel .gta-tab-label-ativa,
  .gta-hud-panel .gta-gender-toggle {
    display: none !important;
  }

  /* ÁREA DO AVATAR COM PADDING PARA OS CONTROLES NO TOPO */
  #gta-canvas-container {
    width: 100% !important;
    height: 60vh;
    border: none !important;
    padding: 120px 15px 20px 15px !important; /* MAIS ESPAÇO PARA O AVATAR */
    position: relative;
  }

  /* PAINEL DE CONTROLES EMBAIXO */
  .gta-hud-panel {
    width: 100% !important;
    height: 40vh !important;
    border-left: none !important;
    border-top: 1px solid #FFD700 !important;
    padding: 15px !important;
    overflow-y: auto;
    max-height: 40vh !important;
    position: relative;
  }

  /* Botões menores mas ainda touch-friendly */
  .gta-btn {
    padding: 6px 8px !important;
    font-size: 10px !important;
    min-height: 36px;
    min-width: 36px;
  }

  .gta-footer button {
    padding: 8px 6px !important;
    font-size: 12px !important;
    min-height: 40px;
  }

  /* Controles mais compactos */
  .gta-control-buttons {
    padding: 6px 8px !important;
  }

  .gta-control-buttons span {
    font-size: 11px !important;
  }

  select.gta-btn,
  #kit-selector {
    padding: 6px 8px !important;
    font-size: 12px !important;
  }

  /* Modal responsivo */
  .gta-modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 20px;
  }

  .gta-modal-close {
    padding: 5px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-loja {
    padding: 12px 20px;
    min-height: 44px;
    text-align: center;
  }

  /* Toast responsivo */
  .gta-toast {
    max-width: 90%;
    font-size: 14px;
    padding: 10px 15px;
    bottom: 15px;
  }
}

@media (max-width: 480px) {
  body {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    overflow: hidden !important;
  }

  .gta-container-externa {
    width: 100vw;
    height: 100vh;
    padding: 0;
    align-items: stretch;
  }

  .gta-wrapper {
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    border-radius: 0;
    border: 1px solid #FFD700;
  }

  /* Mantém o container maior para não cortar a perna */
  #gta-canvas-container {
    height: 95vh !important;
    align-items: flex-start !important;
    padding-top: 40px !important;
    width: 100% !important;
    min-height: 320px;
    max-height: 100vh;
    position: relative;
  }

  /* Aplica scale só no canvas/avatar */
  #gta-canvas-container canvas {
    transform: scale(0.70) translateY(110px);
    transform-origin: center top;
    display: block;
    margin: 0 auto;
  }

  /* Se for uma imagem, pode fazer igual */
  #gta-canvas-container img {
    transform: scale(0.70) translateY(110px);
    transform-origin: center top;
    display: block;
    margin: 0 auto;
  }

  .gta-hud-panel {
    height: 35vh !important;
    padding: 12px !important;
    width: 100% !important;
    min-height: 180px;
    max-height: 48vh !important;
    border-left: none !important;
    border-top: 1px solid #FFD700 !important;
    overflow-y: auto;
  }

  /* ✅ MOSTRAR CONTROLES NO TOPO */
  .gta-top-nav {
    display: block !important;
    padding: 8px !important;
  }

  /* ✅ ESCONDER CONTROLES DO PAINEL */
  .gta-hud-panel .gta-tab-nav.minimal-icons,
  .gta-hud-panel .gta-tab-label-ativa,
  .gta-hud-panel .gta-gender-toggle {
    display: none !important;
  }

  .gta-btn {
    padding: 5px 6px !important;
    font-size: 9px !important;
    min-height: 32px;
    min-width: 32px;
  }

  .gta-footer button {
    padding: 6px 4px !important;
    font-size: 11px !important;
    min-height: 35px;
  }

  /* Controles mais compactos */
  .gta-control-buttons {
    padding: 6px 8px !important;
  }

  .gta-control-buttons span {
    font-size: 11px !important;
  }

  select.gta-btn,
  #kit-selector {
    padding: 6px 8px !important;
    font-size: 12px !important;
  }

  /* Modal responsivo */
  .gta-modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 20px;
  }

  .gta-modal-close {
    padding: 5px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-loja {
    padding: 12px 20px;
    min-height: 44px;
    text-align: center;
  }

  /* Toast responsivo */
  .gta-toast {
    max-width: 90%;
    font-size: 14px;
    padding: 10px 15px;
    bottom: 15px;
  }
}

/* TABLET PORTRAIT E MOBILE (768px e menor) */
@media (min-width: 481px) and (max-width: 768px) {
  body {
    grid-template-columns: 1fr !important;
    grid-template-rows: 1fr !important;
    overflow: hidden !important;
  }

  .gta-container-externa {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: 100vh;
    padding: 0;
  }

  .gta-wrapper {
    width: 100vw;
    height: 100vh;
    flex-direction: column;
    border-radius: 0;
    border: 1px solid #FFD700;
  }

  /* MOSTRAR CONTROLES NO TOPO EM MOBILE/TABLET */
  .gta-top-nav {
    display: block !important;
  }

  /* ESCONDER CONTROLES DO PAINEL EM MOBILE/TABLET */
  .gta-hud-panel .gta-tab-nav.minimal-icons,
  .gta-hud-panel .gta-tab-label-ativa,
  .gta-hud-panel .gta-gender-toggle {
    display: none !important;
  }

 /* Área do avatar ocupa 70% da tela */
  #gta-canvas-container {
    flex: 0 0 70vh;    /* ou flex-basis: 70vh */
    height: 70vh !important;
    min-height: 320px;
    max-height: 70vh;
    width: 100% !important;
    padding: 38px 10px 0 10px !important;
    box-sizing: border-box;
    position: relative;
    background: transparent; /* ou outra cor de fundo se quiser */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Avatar centralizado e ajustado */
  #gta-canvas-container canvas,
  #gta-canvas-container img {
    transform: scale(0.9) translateY(140px);
    transform-origin: center top;
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
  }
  
  /* Painel/hud ocupa o resto (30% da tela) */
  .gta-hud-panel {
  width: 100%;
  min-height: 150px;
  height: 36vh !important;          /* define uma altura padrão */
  max-height: 48vh !important;      /* ou ajuste conforme o desejado */
  padding: 12px;
  background: #181820;
  overflow-y: auto !important;      /* permite scroll interno */
  box-sizing: border-box;
  border-top: 1px solid #FFD700;
  }

  /* Botões menores mas ainda touch-friendly */
  .gta-btn {
    padding: 6px 8px !important;
    font-size: 10px !important;
    min-height: 36px;
    min-width: 36px;
  }

  .gta-footer button {
    padding: 8px 6px !important;
    font-size: 12px !important;
    min-height: 40px;
  }

  /* Controles mais compactos */
  .gta-control-buttons {
    padding: 6px 8px !important;
  }

  .gta-control-buttons span {
    font-size: 11px !important;
  }

  select.gta-btn,
  #kit-selector {
    padding: 6px 8px !important;
    font-size: 12px !important;
  }

  /* Modal responsivo */
  .gta-modal-content {
    width: 95%;
    margin: 5% auto;
    padding: 20px;
  }

  .gta-modal-close {
    padding: 5px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .btn-loja {
    padding: 12px 20px;
    min-height: 44px;
    text-align: center;
  }

  /* Toast responsivo */
  .gta-toast {
    max-width: 90%;
    font-size: 14px;
    padding: 10px 15px;
    bottom: 15px;
  }
}

/* MELHORIAS PARA DISPOSITIVOS TOUCH - MANTÉM EFEITOS HOVER */
@media (hover: none) and (pointer: coarse) {
  .gta-tab-nav.minimal-icons .gta-tab-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  }
  
  .gta-btn:active {
    transform: scale(1.05);
    box-shadow: 0 0 8px #ffd70080;
  }
  
  .gta-gender-toggle .gta-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  }
  
  .gta-footer button:active {
    transform: translateY(-2px);
  }
}