.grid-2{
  display:flex;
  gap:14px;
}
/* Nova Terra – Menu Inicial (Passo 1)
   Paleta baseada em documentacoes/DOCUMENTACAO_COMPLETA_NOVA_TERRA.md
*/
:root{
  --preto:#000000;
  --cinza-escuro:#0c1311;
  --branco:#FFFFFF;
  --verde:#00FF00;
  --vermelho:#FF0000;
  --azul:#00FFFF;
  --amarelo:#FFD700;
  --separador:#22352d;
  --nt-emerald:#2f8f6b;
  --nt-emerald-light:#44c79b;
  --nt-emerald-dark:#1b5440;
  --nt-gold:#ffdb6e;
  --nt-cyan:#83f7ff;
  --nt-panel-bg:rgba(10,18,16,0.88);
  --nt-panel-border:rgba(131,247,255,0.28);
  --nt-shadow:0 18px 40px rgba(0,0,0,0.55);
  --nt-text-soft:#cbffe9;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Courier New", monospace;
  color:var(--branco);
  /* css está em public/css, imagens estão em raiz/imagens → subir 2 níveis */
  background: var(--preto) url('../../imagens/papel_parede_menu.png') no-repeat center center fixed;
  background-size: cover;
}
/* Remover papel de parede do menu nas telas internas */
body.no-menu-bg{
  background: var(--preto) !important;
}
#appRoot{ min-height: 100vh; }
#app{
  min-height: calc(100% - 40px);
  display:flex;
  gap:28px;
  padding:28px;
  background: linear-gradient(135deg, rgba(6,12,10,0.74), rgba(8,18,14,0.32));
  backdrop-filter: blur(2px);
}
.left-panel{
  width:360px;
  display:flex;
  flex-direction:column;
  gap:16px;
}
.update-log{
  background:rgba(0,0,0,0.7);
  border:1px solid var(--separador);
  padding:12px;
}
.update-log h2{
  margin:0 0 8px;
  color:var(--amarelo);
  font-weight:bold;
}
.log-content{
  max-height:240px;
  overflow:auto;
  padding-right:6px;
}
.log-entry{ margin:0 0 12px; }
.log-entry .meta{ color:#FFA500; font-weight:bold; }
.log-entry .line{ color:var(--verde); margin-left:8px; }

.banner{
  background:linear-gradient(140deg, rgba(12,22,20,0.92), rgba(18,32,28,0.88));
  border:1px solid rgba(131,247,255,0.24);
  padding:12px;
  border-radius:18px;
  box-shadow:var(--nt-shadow);
}
.banner img{ width:100%; height:auto; display:block; }

.menu-message{
  margin-top:16px;
  padding:14px 16px;
  background:linear-gradient(150deg, rgba(12,24,20,0.92), rgba(18,30,26,0.85));
  border:1px solid rgba(123,255,190,0.28);
  border-radius:16px;
  box-shadow:var(--nt-shadow);
  max-height:220px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.menu-message__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:8px;
  margin-bottom:10px;
}
.menu-message__title{
  margin:0;
  font-size:0.9rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:#7bffbe;
}
.menu-message__updated{
  color:rgba(123,255,190,0.7);
  font-size:0.72rem;
  letter-spacing:0.08em;
}
.menu-message__body{
  flex:1;
  overflow:auto;
  padding-right:6px;
  color:#e6fff5;
  font-family:"Courier New", monospace;
  font-size:0.88rem;
  line-height:1.5;
  word-break:break-word;
  white-space:pre-wrap;
}
.menu-message__body{ scrollbar-width: thin; scrollbar-color: #7bffbe rgba(0,0,0,0.2); }
.menu-message__body::-webkit-scrollbar{ width:10px; }
.menu-message__body::-webkit-scrollbar-track{ background:rgba(0,0,0,0.35); border-radius:12px; }
.menu-message__body::-webkit-scrollbar-thumb{ background:linear-gradient(180deg, #7bffbe, #2f8f6b); border-radius:12px; }
.menu-message__body::-webkit-scrollbar-thumb:hover{ filter:brightness(1.1); }

.menu-online{
  margin-top:16px;
  padding:14px 16px;
  background:linear-gradient(160deg, rgba(16,26,24,0.95), rgba(10,18,16,0.88));
  border:1px solid rgba(131,247,255,0.2);
  border-radius:16px;
  box-shadow:var(--nt-shadow);
  display:flex;
  flex-direction:column;
  gap:12px;
}
.menu-online.hidden{ display:none; }
.menu-online__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.menu-online__title{
  margin:0;
  font-size:0.88rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#83f7ff;
}
.menu-online__count{
  font-size:0.76rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:rgba(131,247,255,0.75);
  border:1px solid rgba(131,247,255,0.35);
  border-radius:999px;
  padding:4px 10px;
  background:rgba(8,16,14,0.8);
}
.menu-online__list{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.menu-online__list--scroll{
  max-height:calc((3 * 56px) + (2 * 8px));
  overflow:auto;
  scrollbar-width:thin;
  scrollbar-color:#83f7ff rgba(0,0,0,0.25);
}
.menu-online__list--scroll::-webkit-scrollbar{ width:8px; }
.menu-online__list--scroll::-webkit-scrollbar-track{ background:rgba(0,0,0,0.35); border-radius:12px; }
.menu-online__list--scroll::-webkit-scrollbar-thumb{ background:linear-gradient(180deg, #83f7ff, #2f8f6b); border-radius:12px; }
.menu-online__item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(12,24,20,0.78);
  border:1px solid rgba(131,247,255,0.16);
  box-shadow:0 6px 18px rgba(0,0,0,0.28);
}
.menu-online__name{
  margin:0;
  font-size:0.9rem;
  letter-spacing:0.04em;
  color:#dfffee;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.menu-online__emoji{
  display:inline-block;
  margin-right:6px;
  font-size:1.05em;
  vertical-align:middle;
}
.menu-online__lvl{
  font-size:0.82rem;
  color:#7bffbe;
  letter-spacing:0.08em;
  text-transform:uppercase;
}
.menu-online__empty{
  margin:0;
  color:rgba(131,247,255,0.65);
  font-size:0.8rem;
  text-align:center;
}
.menu-online__actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

.menu-message-meta__right{
  display:flex;
  align-items:center;
  gap:10px;
}

.menu-message-meta__right .btn{
  padding:8px 16px;
  font-size:0.75rem;
  letter-spacing:0.08em;
}

.emoji-popover{
  position:relative;
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(6,12,10,0.92), rgba(12,24,20,0.88));
  border:1px solid rgba(123,255,190,0.25);
  box-shadow:0 16px 32px rgba(0,0,0,0.45);
  max-height:260px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.emoji-popover.hidden{
  display:none;
}

.emoji-popover__search input{
  width:100%;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid rgba(123,255,190,0.25);
  background:rgba(6,12,10,0.85);
  color:#dfffee;
  font-family:"Segoe UI", sans-serif;
}

.emoji-popover__search input::placeholder{
  color:rgba(123,255,190,0.55);
}

.emoji-popover__grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(36px, 1fr));
  gap:6px;
  overflow-y:auto;
  max-height:180px;
  padding-right:4px;
}

.emoji-popover__grid button{
  padding:6px;
  font-size:24px;
  border-radius:10px;
  border:1px solid transparent;
  background:rgba(12,20,18,0.65);
  cursor:pointer;
  transition:transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.emoji-popover__grid button:hover{
  transform:translateY(-1px);
  border-color:rgba(123,255,190,0.35);
  box-shadow:0 8px 18px rgba(0,0,0,0.35);
}

.emoji-popover__grid button:focus-visible{
  outline:2px solid rgba(123,255,190,0.6);
  outline-offset:2px;
}

.popup-banner{
  position:fixed;
  top:16px;
  left:50%;
  transform:translate(-50%, -140%);
  opacity:0;
  transition:transform 260ms ease, opacity 260ms ease;
  background:linear-gradient(135deg, rgba(32,24,10,0.96), rgba(20,16,8,0.9));
  color:#ffeacc;
  border:1px solid rgba(255,220,131,0.45);
  border-radius:16px;
  box-shadow:0 18px 36px rgba(0,0,0,0.55);
  max-width:540px;
  width:calc(100% - 32px);
  padding:18px 20px 18px 22px;
  z-index:4000;
  pointer-events:none;
}
.popup-banner--visible{
  transform:translate(-50%, 0);
  opacity:1;
  pointer-events:auto;
}
.popup-banner__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:10px;
}
.popup-banner__title{
  margin:0;
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:#ffd27a;
}
.popup-banner__message{
  color:#ffeacc;
  font-size:0.95rem;
  line-height:1.55;
  white-space:pre-wrap;
  margin-bottom:12px;
}
.popup-banner__time{
  font-size:0.75rem;
  letter-spacing:0.06em;
  color:rgba(255,220,180,0.7);
}
.popup-banner__close{
  background:transparent;
  border:1px solid rgba(255,220,131,0.35);
  border-radius:999px;
  color:#ffe3bb;
  font-size:0.85rem;
  font-weight:700;
  line-height:1;
  padding:6px 10px;
  cursor:pointer;
  transition:background 180ms ease, transform 180ms ease, border-color 180ms ease;
}
.popup-banner__close:hover{
  background:rgba(255,220,131,0.18);
  transform:translateY(-1px);
}
.popup-banner__close:focus-visible{
  outline:2px solid rgba(255,220,131,0.65);
  outline-offset:2px;
}

.maintenance-overlay{
  position:fixed;
  inset:0;
  background:rgba(6,10,12,0.86);
  backdrop-filter:blur(4px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:5000;
}
.maintenance-overlay.hidden{ display:none; }
.maintenance-box{
  max-width:420px;
  background:linear-gradient(135deg, rgba(12,18,22,0.95), rgba(14,10,8,0.92));
  border:1px solid rgba(255,220,131,0.35);
  border-radius:18px;
  padding:26px 24px;
  color:#ffeacc;
  text-align:center;
  box-shadow:0 18px 40px rgba(0,0,0,0.55);
}
.maintenance-box h2{
  margin:0 0 12px;
  font-size:1.2rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#ffd27a;
}
.maintenance-box p{
  margin:6px 0;
  font-size:0.95rem;
  line-height:1.5;
}
.maintenance-countdown{
  margin-top:14px;
  font-size:1.8rem;
  font-weight:700;
  letter-spacing:0.12em;
  color:#ffcc66;
}
.maintenance-overlay .btn{
  margin-top:18px;
  min-width:180px;
}
.maintenance-banner{
  position:fixed;
  top:0;
  left:50%;
  transform:translate(-50%, -120%);
  opacity:0;
  transition:transform 240ms ease, opacity 240ms ease;
  background:linear-gradient(135deg, rgba(32,24,10,0.9), rgba(18,14,10,0.88));
  border:1px solid rgba(255,220,131,0.45);
  border-radius:0 0 18px 18px;
  padding:16px 24px;
  color:#ffeacc;
  z-index:4500;
  pointer-events:none;
  width:calc(100% - 32px);
  max-width:560px;
  text-align:center;
  box-shadow:0 18px 28px rgba(0,0,0,0.5);
}
.maintenance-banner--visible{
  transform:translate(-50%, 0);
  opacity:1;
  pointer-events:auto;
}
.maintenance-banner h3{
  margin:0 0 8px;
  font-size:1rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#ffd27a;
}
.maintenance-banner p{
  margin:0;
  font-size:0.9rem;
  line-height:1.45;
}
.maintenance-banner button{
  margin-top:12px;
  padding:6px 12px;
}

.main-panel{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.title-area{
  margin-top:18px;
  margin-bottom:18px;
  padding:18px 28px;
  background:transparent;
  border:none;
  border-radius:16px;
  box-shadow:none;
}
.logo{ width:300px; height:auto; image-rendering: pixelated; filter:drop-shadow(0 10px 28px rgba(0,0,0,0.45)); }

.menu{
  width:340px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
  padding:26px 28px;
  background: var(--nt-panel-bg);
  border:1px solid var(--nt-panel-border);
  border-radius:20px;
  box-shadow:var(--nt-shadow);
}
.divider{
  width:100%; border:0; border-top:1px solid rgba(131,247,255,0.28); margin:6px 0 2px;
}
.subtitle{
  margin:0;
  color:var(--nt-gold);
  font-size:0.78rem;
  letter-spacing:0.22em;
  text-transform:uppercase;
}

.mission-badge--completed{
  gap:8px;
  padding-right:6px;
}

.mission-remove-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:24px;
  height:24px;
  margin-left:2px;
  border:none;
  border-radius:6px;
  background:rgba(0,0,0,0.25);
  cursor:pointer;
  color:inherit;
  padding:2px;
  transition:background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.mission-remove-btn svg{
  width:16px;
  height:16px;
  fill:currentColor;
}

.mission-remove-btn:focus-visible{
  outline:2px solid rgba(255,255,255,0.65);
  outline-offset:2px;
}

.mission-concluida .mission-remove-btn{
  background:rgba(0,0,0,0.25);
}

.mission-remove-btn:hover{
  background:rgba(255,92,92,0.28);
  box-shadow:0 0 10px rgba(255,92,92,0.4);
  transform:translateY(-1px);
}

.mission-remove-btn:active{
  transform:translateY(0);
  background:rgba(255,92,92,0.38);
}

.account-area{ text-align:center; width: 100%; }
.account-actions .btn {
    width: 100%;
}

.btn{
  width:100%;
  padding:12px 16px;
  font-weight:600;
  border:1px solid transparent;
  cursor:pointer;
  color:var(--nt-text-soft);
  font-size:0.85rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  border-radius:999px;
  background:linear-gradient(135deg, rgba(32,60,50,0.82), rgba(26,44,38,0.9));
  box-shadow:0 12px 24px rgba(0,0,0,0.45);
  transition:transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, border-color 140ms ease;
}
.btn.loading{ position: relative; overflow: hidden; }
.btn.loading[disabled]{ opacity: 0.85; }
.btn.loading .btn-progress{
  position:absolute; left:0; top:0; bottom:0; width:34%;
  background: linear-gradient(90deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0.08) 100%);
  filter: brightness(1.15);
  pointer-events: none;
  animation: ntBtnSweep 1200ms ease-in-out infinite;
  transform: translateX(-100%);
  border-radius: inherit;
}
/* Efeito especial para botões primários */
.btn-primary.loading .btn-progress{
  background: linear-gradient(90deg, rgba(69,255,175,0.15) 0%, rgba(69,255,175,0.35) 50%, rgba(69,255,175,0.15) 100%);
}
/* Efeito especial para botões de perigo */
.btn-danger.loading .btn-progress{
  background: linear-gradient(90deg, rgba(255,120,120,0.18) 0%, rgba(255,120,120,0.38) 50%, rgba(255,120,120,0.18) 100%);
}
@keyframes ntBtnSweep{
  0%{ transform: translateX(-100%); }
  50%{ transform: translateX(10%); }
  100%{ transform: translateX(200%); }
}
.btn-primary{
  background:linear-gradient(135deg, #2f8f6b, #44c79b);
  border-color:rgba(105,255,205,0.45);
  color:#0b1a14;
}
.btn-success{
  background:linear-gradient(135deg, #328fbd, #6be6ff);
  border-color:rgba(131,247,255,0.55);
  color:#03161a;
}
.btn-info{
  background:linear-gradient(135deg, #284260, #417db3);
  border-color:rgba(131,193,255,0.4);
}
.btn-danger{
  background:linear-gradient(135deg, #8f2f2f, #c74444);
  border-color:rgba(255,153,153,0.45);
  color:#ffeaea;
}
.btn-warning{
  background:linear-gradient(135deg, #8f612f, #ffa83d);
  border-color:rgba(255,217,153,0.45);
  color:#271405;
}
.btn-secondary{
  background:linear-gradient(135deg, #1f2e26, #324d3e);
  border-color:rgba(131,247,255,0.22);
}
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 32px rgba(0,0,0,0.5);
  filter:brightness(1.05);
}
.btn:active{
  transform:translateY(1px);
  filter:brightness(0.95);
}
.btn:focus-visible{
  outline:2px solid rgba(131,247,255,0.65);
  outline-offset:3px;
}
/* Cores específicas da UI do planeta (imagem de referência) */
.btn-missions{ background: var(--amarelo); color: var(--preto); }
.btn-map{ background: var(--azul); color: var(--preto); }

.footer{
  height:40px;
  display:flex; align-items:center; justify-content:center;
  color:var(--amarelo);
  background:rgba(0,0,0,0.6);
  border-top:1px solid var(--separador);
}

/* Fixar o footer apenas na tela de menu */
.menu-view .footer{
  position:fixed;
  left:0; right:0; bottom:0;
  z-index: 1000;
}
/* Evitar que o conteúdo do menu fique escondido atrás do footer fixo */
.menu-view #app{
  padding-bottom: 64px; /* espaço para o footer (40px + margem) */
}

.modal{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(4,8,7,0.78); backdrop-filter: blur(4px); z-index: 1050; }
.modal.hidden{ display:none; }
.modal-content{
  background: linear-gradient(135deg, rgba(10,18,16,0.92), rgba(14,26,22,0.86));
  border:1px solid rgba(131,247,255,0.28);
  padding:26px 30px;
  width:min(620px, 92vw);
  line-height:1.5;
  border-radius:20px;
  box-shadow:0 20px 38px rgba(0,0,0,0.55);
  color:var(--nt-text-soft);
}
.modal-content h3{
  margin-top:0;
  margin-bottom:14px;
  font-size:1.05rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:var(--nt-gold);
}
.modal-content button:not(:last-child){ margin-right: 8px; }

/* Espaçamento entre parágrafos dentro das modais */
.modal-content p{
  margin: 0 0 12px;
  line-height: 1.6;
}
.modal-content p:last-child{ margin-bottom: 0; }

/* Garante que o modal de confirmação fique sobre os outros */
#confirmModal {
  z-index: 1060;
}

/* Modal Footer (mensagens inline nos modais) */
.modal-footer{
  margin-top: 10px;
  padding: 10px 12px;
  border-top: 1px solid rgba(131,247,255,0.25);
  background: linear-gradient(180deg, rgba(6,12,10,0.35), rgba(10,20,18,0.25));
  box-shadow: inset 0 1px 0 rgba(131,247,255,0.08);
  border-radius: 0 0 14px 14px;
}
.modal-footer__msg{
  min-height: 22px;
  font-family: "Courier New", monospace;
  color: #dfffee;
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0.95;
}
.modal-footer__msg::after{
  content: '▌';
  display: inline-block;
  margin-left: 4px;
  color: #7bffbe;
  animation: ntBlink 1s steps(1, end) infinite;
}

/* Estilos para grupos de formulários nos modais */
.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  margin-bottom: 4px;
  color: #ccc;
  font-size: 14px;
}
.form-group label[for="reportFile"] {
  display: inline-block;
  margin-bottom: 0;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  box-sizing: border-box; /* Garante que padding não afete a largura total */
}

.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input[type="number"],
.modal-content input[type="tel"],
.modal-content input[type="url"],
.modal-content select,
.modal-content textarea {
  width: 100%;
  box-sizing: border-box;
  padding:12px 16px;
  border-radius:12px;
  border:1px solid rgba(131,247,255,0.24);
  background:linear-gradient(135deg, rgba(10,18,16,0.85), rgba(6,12,10,0.7));
  color:#dfffee;
  font-family:"Courier New", monospace;
  font-size:0.92rem;
  letter-spacing:0.05em;
  transition:border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, filter 140ms ease;
}

.modal-content input::placeholder,
.modal-content textarea::placeholder {
  color:rgba(131,247,255,0.55);
  letter-spacing:0.05em;
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
  outline:none;
  border-color:rgba(131,247,255,0.58);
  box-shadow:0 0 22px rgba(131,247,255,0.25);
  filter:brightness(1.04);
}

.modal-content input:disabled,
.modal-content textarea:disabled,
.modal-content select:disabled {
  opacity:0.6;
  cursor:not-allowed;
  filter:saturate(0.8);
}

.account-tabs{
  display:flex;
  margin:20px 0 12px;
  padding:4px;
  border-radius:12px;
  background:rgba(10,18,16,0.55);
  border:1px solid rgba(131,247,255,0.18);
  gap:6px;
}
.account-tab{
  flex:1;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid transparent;
  background:rgba(12,24,20,0.35);
  color:#8fffd6;
  font-family:"Courier New", monospace;
  font-size:0.8rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  cursor:pointer;
  transition:filter 140ms ease, border-color 140ms ease, background 140ms ease;
}
.account-tab:hover{ filter:brightness(1.08); }
.account-tab:focus-visible{ outline:2px solid rgba(131,247,255,0.6); outline-offset:2px; }
.account-tab--active{
  background:linear-gradient(135deg, rgba(32,60,50,0.85), rgba(18,36,30,0.85));
  border-color:rgba(131,247,255,0.42);
  color:#dfffee;
  box-shadow:0 8px 20px rgba(0,0,0,0.45);
}
.account-tab .tab-badge{ margin-left:6px; padding:2px 8px; min-width:18px; height:18px; border-radius:999px; display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:0.68rem; letter-spacing:0.04em; color:#0b1a14; background:linear-gradient(135deg, #ffcf7a, #ffd98e); border:1px solid rgba(255,222,150,0.9); box-shadow:0 2px 8px rgba(0,0,0,0.35), inset 0 0 6px rgba(255,255,255,0.35); }
.tab-badge.hidden{ display:none; }
.account-tabs__panels{ display:flex; flex-direction:column; gap:22px; }
.account-tabpanel{ animation: fadeInNT 220ms ease-out; }
.account-modal-footer{ justify-content:flex-end; margin-top:12px; }

.ship-location{ display:flex; flex-direction:column; gap:18px; }
.ship-tabs{
  display:flex;
  gap:6px;
  padding:4px;
  border-radius:12px;
  background:rgba(8,18,16,0.55);
  border:1px solid rgba(131,247,255,0.16);
}
.ship-tab{
  flex:1;
  padding:9px 12px;
  border-radius:8px;
  border:1px solid transparent;
  background:rgba(10,20,18,0.35);
  color:#a6ffee;
  font-family:"Courier New", monospace;
  font-size:0.78rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  cursor:pointer;
  transition:filter 140ms ease, border-color 140ms ease, background 140ms ease;
}
.ship-tab:hover{ filter:brightness(1.08); }
.ship-tab:focus-visible{ outline:2px solid rgba(131,247,255,0.6); outline-offset:2px; }
.ship-tab--active{
  background:linear-gradient(135deg, rgba(28,52,46,0.88), rgba(16,30,28,0.88));
  border-color:rgba(131,247,255,0.42);
  color:#e8fffb;
  box-shadow:0 8px 20px rgba(0,0,0,0.45);
}
.ship-tabpanels{ display:flex; flex-direction:column; gap:16px; }
.ship-tabpanel{ animation: fadeInNT 200ms ease; }
.ship-tabpanel .kv{ margin:0; }
.ship-tabpanel .kv dd{ white-space:pre-line; }

.modal-actions{ display:flex; justify-content:flex-end; gap:12px; margin-top:16px; }

.account-name-emoji select{
  color:#ffffff;
}

.account-name-emoji{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.account-name-emoji > div{
  width:100%;
}

.account-name-emoji select option{
  color:#000000;
  background-color:#ffffff;
}

.account-name-emoji #accEmojiCustom{
  color:#ffffff;
}
.account-name-emoji #accEmojiCustom{
  text-align:center;
}

/* Wizard Novo Jogo */
.ng-step{ display:block; }
.ng-step + .ng-step{ margin-top:14px; }
.ng-step label{ display:block; margin:6px 0 6px; }
.ng-step input[type="text"],
.ng-step select{
  width:100%;
  padding:8px 10px;
  background:#111;
  color:var(--branco);
  border:1px solid var(--separador);
}
.ng-step p{ margin:8px 0 0; }
.hidden{ display:none !important; }

.floating-btn{
  position:fixed; right:16px; bottom:64px; padding:10px 12px; border:1px solid var(--separador);
  background:#111; color:var(--branco); cursor:pointer;
}
.floating-btn.hidden{ display:none; }

/* Intro View */
.intro-view{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.intro-container{ max-width:820px; width:100%; background:#0b0b0b; border:1px solid #333; padding:24px; }
.intro-title{ color:#66ff66; margin:0 0 12px; font-weight:bold; }
.intro-body{ white-space:pre-line; color:#eaeaea; line-height:1.6; }
.intro-actions{ display:flex; justify-content:flex-end; margin-top:16px; }

/* Cursor piscante para o efeito digitado na Introdução */
.cursor-blink{ display:inline-block; width:1ch; margin-left:2px; color:#66ff66; animation: ntBlink 1s steps(1, end) infinite; }
@keyframes ntBlink{ 0%, 49% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* Ship Navigation View */
.ship-view{
  padding:26px;
  backdrop-filter: blur(3px);
  min-height:100vh;
  box-sizing:border-box;
  display:block;
  background:linear-gradient(135deg, rgba(6,12,10,0.7), rgba(10,22,18,0.45));
}
.ship-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  margin-bottom:22px;
  padding:18px 24px;
  background:linear-gradient(135deg, rgba(10,18,16,0.85), rgba(12,24,20,0.6));
  border:1px solid rgba(131,247,255,0.2);
  border-radius:18px;
  box-shadow:0 16px 32px rgba(0,0,0,0.45);
  position:relative;
  overflow:hidden;
}
.ship-header::after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:3px;
  background:linear-gradient(90deg, rgba(131,247,255,0), rgba(131,247,255,0.8), rgba(131,247,255,0));
  opacity:0.7;
}
.ship-title{
  color:var(--nt-gold);
  font-weight:700;
  font-size:1.12rem;
  letter-spacing:0.26em;
  text-transform:uppercase;
  margin:0;
}
/* Chip de ação no título da nave (ex.: Renomear) */
.ship-title .ship-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  margin-right:12px;
  border-radius:999px;
  border:1px solid rgba(131,247,255,0.35);
  background:rgba(6,20,18,0.66);
  color:#9ceeff;
  font-size:0.78rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,0.25);
  transition:filter 140ms ease, transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}
.ship-title .ship-chip:hover{ filter:brightness(1.08); transform:translateY(-1px); box-shadow:0 14px 28px rgba(0,0,0,0.35); }
.ship-title .ship-chip:active{ transform:translateY(0); filter:brightness(0.98); }
.ship-title .ship-chip:focus-visible{ outline:2px solid rgba(131,247,255,0.6); outline-offset:2px; }
.ship-title .ship-chip--action{ border-color:rgba(131,247,255,0.5); background:linear-gradient(135deg, rgba(10,22,20,0.8), rgba(14,28,24,0.72)); }
.ship-subtitle{
  color:var(--nt-cyan);
  font-size:0.85rem;
  letter-spacing:0.18em;
  text-transform:uppercase;
  padding:6px 14px;
  border:1px solid rgba(131,247,255,0.35);
  border-radius:999px;
  background:rgba(6,20,18,0.66);
  box-shadow:0 10px 24px rgba(0,0,0,0.35);
}
.ship-grid{ display:grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap:20px; }
.ship-view--bridge .ship-grid{ grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
.ship-view--engineering .ship-grid{ grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); }
.ship-view .card{
  background:var(--nt-panel-bg);
  border:1px solid var(--nt-panel-border);
  padding:20px 22px;
  border-radius:18px;
  box-shadow:var(--nt-shadow);
}
.ship-view .card.console{ margin-top:22px; }
.ship-view .card-title{
  color:var(--nt-cyan);
  margin:0 0 12px;
  font-weight:700;
  letter-spacing:0.16em;
  text-transform:uppercase;
}
.dorm-ambient{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px 16px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(12,24,20,0.68), rgba(8,16,14,0.52));
  border:1px solid rgba(131,247,255,0.18);
  box-shadow:inset 0 0 16px rgba(0,0,0,0.35);
}
.dorm-ambient__line{
  color:#bce8ff;
  font-size:0.88rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
}
.dorm-ambient__chips{ display:flex; gap:12px; flex-wrap:wrap; }
.dorm-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 14px;
  border-radius:999px;
  font-size:0.75rem;
  letter-spacing:0.14em;
  text-transform:uppercase;
  border:1px solid transparent;
  color:var(--nt-text-soft);
  background:rgba(12,24,20,0.4);
}
.dorm-chip--season{ border-color:rgba(255,200,120,0.35); color:#ffd88c; background:rgba(255,200,120,0.12); }
.dorm-chip--climate{ border-color:rgba(131,247,255,0.35); color:#9ceeff; background:rgba(131,247,255,0.12); }
.dorm-chip--period{ border-color:rgba(123,255,190,0.35); color:#7dffbf; background:rgba(123,255,190,0.15); }
.dorm-desc{
  margin-top:14px;
  color:#d9ffee;
  font-family:"Courier New", monospace;
  line-height:1.6;
}
.ship-map canvas{
  width:100%;
  height:auto;
  display:block;
  background:rgba(6,10,9,0.85);
  border:1px solid rgba(131,247,255,0.25);
  border-radius:14px;
  box-shadow:inset 0 0 18px rgba(0,0,0,0.45);
}
.legend{
  margin-top:14px;
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
  color:var(--nt-text-soft);
  font-size:0.78rem;
  letter-spacing:0.08em;
}
.legend .dot{
  width:12px;
  height:12px;
  display:inline-block;
  border-radius:50%;
  margin-right:6px;
  border:1px solid rgba(131,247,255,0.32);
  box-shadow:0 0 8px rgba(131,247,255,0.25);
}
.legend .visited{ background:#31d490; }
.legend .unvisited{ background:#2c4440; }
.legend .ship{ background:#83f7ff; }
.kv{
  display:grid;
  grid-template-columns:minmax(160px,0.65fr) minmax(0,1fr);
  gap:10px 18px;
  padding:14px 16px;
  margin:0;
  background:linear-gradient(135deg, rgba(8,14,12,0.72), rgba(12,22,20,0.52));
  border:1px solid rgba(131,247,255,0.16);
  border-radius:16px;
  box-shadow:inset 0 0 18px rgba(0,0,0,0.3);
}
.kv dt,
.kv dd{
  padding:8px 0;
  border-bottom:1px solid rgba(131,247,255,0.1);
}
.kv dt{
  color:var(--nt-cyan);
  font-weight:600;
  font-size:0.72rem;
  letter-spacing:0.2em;
  text-transform:uppercase;
  margin:0;
  align-self:flex-start;
}
.kv dd{
  margin:0;
  color:var(--nt-text-soft);
  font-size:0.88rem;
  line-height:1.45;
}
.kv dt:nth-last-of-type(1),
.kv dd:last-of-type{
  border-bottom:none;
  padding-bottom:0;
}
@media(max-width:720px){
  .kv{ grid-template-columns:1fr; }
  .kv dt,
  .kv dd{ border-bottom:none; padding:8px 0; }
  .kv dt{ color:var(--nt-gold); }
}
.actions .actions-row{ display:flex; flex-wrap:wrap; gap:10px; }
.ship-footer{ display:flex; justify-content:flex-end; margin-top:14px; }

/* Combat idle (Ponte) */
.combat-idle{ display:flex; flex-direction:column; align-items:center; justify-content:center; padding:12px 0; min-height:140px; }
.combat-idle .spin-logo{ width:84px; height:auto; image-rendering: pixelated; animation: ntSpinY 6s linear infinite; opacity:0.9; }
.combat-idle .brand-caption{ margin-top:8px; color:#ccc; letter-spacing:1.2px; font-weight:bold; }
/* Texto de dica no painel vazio do chat */
.combat-idle .brand-hint{
  margin-top:6px;
  font-size:0.82rem; /* levemente menor */
  text-align:center;
  color:rgba(131,247,255,0.76);
  letter-spacing:0.06em;
}

/* Estilização do input de arquivo */
.modal-content input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.modal-content label[for="reportFile"] {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 4px;
  background: linear-gradient(135deg, rgba(32,60,50,0.82), rgba(26,44,38,0.9));
  border: 1px solid rgba(131,247,255,0.28);
  border-radius: 999px;
  color: var(--nt-text-soft);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, border-color 140ms ease;
  box-shadow: 0 12px 24px rgba(0,0,0,0.45);
  font-weight: 600;
  text-align: center;
}

.modal-content label[for="reportFile"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0,0,0,0.5);
  filter: brightness(1.05);
  border-color: rgba(131,247,255,0.42);
}

.modal-content label[for="reportFile"]:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

.modal-content label[for="reportFile"]:focus-within {
  outline: 2px solid rgba(131,247,255,0.65);
  outline-offset: 3px;
}

.file-name-display {
  display: inline-block;
  margin-left: 12px;
  color: var(--nt-cyan);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.04em;
}

/* Console textual estilo Python */
.modal-error {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid #ff4444;
  color: #ff6666;
  padding: 8px 12px;
  margin: 8px 0;
  border-radius: 4px;
  font-size: 14px;
}

/* reCAPTCHA styling */
#recaptchaLogin, #recaptchaRegister {
  display: flex;
  justify-content: center;
  margin: 10px 0;
}

/* Override reCAPTCHA iframe styles for better integration */
.g-recaptcha {
  transform: scale(0.9);
  transform-origin: center;
}

.console .card-title{ margin-bottom:6px; }
.console-log{
  /* Altura responsiva: reduz em telas menores, limita em maiores */
  height: clamp(180px, 32vh, 260px);
  overflow: auto;
  background: #000;
  border: 1px solid #222;
  padding: 10px;
  color: #66ff66;
  font-family: "Courier New", monospace;
  font-size: 14px;
  line-height: 1.5;
}
/* Scrollbar global – Consoles e Comércio (Firefox) */
.console-log, .commerce-list, .log-content, .people-chat__log{
  scrollbar-width: thin; /* auto | thin | none */
  scrollbar-color: #33cc66 #0b0b0b; /* polegar | trilho */
}

/* Scrollbar global – Consoles e Comércio (Chrome/Edge/Safari) */
.console-log::-webkit-scrollbar, .commerce-list::-webkit-scrollbar, .log-content::-webkit-scrollbar, .people-chat__log::-webkit-scrollbar, .people-emoji-grid::-webkit-scrollbar{ width:12px; height:12px; }
.console-log::-webkit-scrollbar:horizontal, .commerce-list::-webkit-scrollbar:horizontal, .log-content::-webkit-scrollbar:horizontal, .people-chat__log::-webkit-scrollbar:horizontal, .people-emoji-grid::-webkit-scrollbar:horizontal{ height:12px; }
.console-log::-webkit-scrollbar-track, .commerce-list::-webkit-scrollbar-track, .log-content::-webkit-scrollbar-track, .people-chat__log::-webkit-scrollbar-track, .people-emoji-grid::-webkit-scrollbar-track{
  background:#0b0b0b;
  border-left:1px solid #222;
}
.console-log::-webkit-scrollbar-thumb, .commerce-list::-webkit-scrollbar-thumb, .log-content::-webkit-scrollbar-thumb, .people-chat__log::-webkit-scrollbar-thumb, .people-emoji-grid::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, #33cc66, #0da84a);
  border:1px solid #66ff66;
  border-radius:10px;
  box-shadow: inset 0 0 6px rgba(0,0,0,0.5);
}
.console-log::-webkit-scrollbar-thumb:hover, .commerce-list::-webkit-scrollbar-thumb:hover, .log-content::-webkit-scrollbar-thumb:hover, .people-chat__log::-webkit-scrollbar-thumb:hover, .people-emoji-grid::-webkit-scrollbar-thumb:hover{ filter: brightness(1.08); }
.console-log::-webkit-scrollbar-button, .commerce-list::-webkit-scrollbar-button, .log-content::-webkit-scrollbar-button, .people-chat__log::-webkit-scrollbar-button, .people-emoji-grid::-webkit-scrollbar-button{
  background:#111;
  border-left:1px solid #222;
  height:14px;
}
.console-log::-webkit-scrollbar-corner, .commerce-list::-webkit-scrollbar-corner, .log-content::-webkit-scrollbar-corner, .people-chat__log::-webkit-scrollbar-corner, .people-emoji-grid::-webkit-scrollbar-corner{ background: transparent; }

.console-input{
  display:flex;
  gap:10px;
  margin-top:12px;
  align-items:center;
}
.console-input input{
  flex:1;
  padding:12px 16px;
  background:rgba(6,12,10,0.82);
  color:var(--nt-text-soft);
  border:1px solid rgba(131,247,255,0.28);
  border-radius:999px;
  font-family:"Courier New", monospace;
  font-size:0.92rem;
  letter-spacing:0.05em;
  transition:border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.console-input input::placeholder{ color:rgba(131,247,255,0.45); letter-spacing:0.05em; }
.console-input input:focus{ outline:none; border-color:rgba(131,247,255,0.55); box-shadow:0 0 18px rgba(131,247,255,0.25); background:rgba(10,20,18,0.9); }
.console-input .btn{
  padding:12px 28px;
  font-size:0.85rem;
  width:auto;
}

/* Planet View */
.planet-view{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap:16px;
  padding:16px 18px;
  width:100%;
  box-sizing:border-box;
}
.people-card{ display:block; }
.people-card__header{ display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:10px; }
.people-card__title{ margin:0; font-size:0.88rem; letter-spacing:0.1em; text-transform:uppercase; color:#83f7ff; }
.people-card__summary{ color:rgba(131,247,255,0.8); font-size:0.75rem; letter-spacing:0.08em; }
.people-card__list{ display:flex; flex-direction:column; gap:8px; }
.people-card__empty{ color:rgba(131,247,255,0.7); font-size:0.8rem; }

/* Entradas de Pessoas (NPCs e Jogadores) */
.people-entry{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border-radius:12px; background:rgba(12,24,20,0.78); border:1px solid rgba(131,247,255,0.16); box-shadow:0 6px 18px rgba(0,0,0,0.28); }
.people-entry__info{ display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.people-entry__name{ display:inline-flex; align-items:center; gap:6px; font-size:0.9rem; letter-spacing:0.04em; color:#dfffee; }
.people-entry__role{ font-size:0.78rem; color:#9ceeff; letter-spacing:0.08em; text-transform:uppercase; }
.people-entry__self{ color:#7bffbe; margin-left:4px; font-size:0.78rem; }
.people-entry__meta{ font-size:0.78rem; color:#7bffbe; letter-spacing:0.08em; }
.people-entry__emoji{ margin-right:6px; display:inline-block; }
.people-entry__badge-group{ display:flex; align-items:center; gap:6px; }
.people-entry__badge{ padding:2px 8px; border-radius:999px; font-size:0.68rem; border:1px solid rgba(131,247,255,0.24); color:#9ceeff; background:rgba(12,24,20,0.35); letter-spacing:0.08em; text-transform:uppercase; }
.people-entry__badge--quest{ border-color:rgba(255,220,131,0.45); color:#ffdb6e; }
.people-entry__badge--vendor{ border-color:rgba(131,247,255,0.45); color:#83f7ff; }
.people-entry__badge--companion{ border-color:rgba(123,255,190,0.55); color:#7bffbf; }
.people-entry__badge--pending{ border-color:rgba(255,200,120,0.45); color:#ffd27a; background:rgba(255,200,120,0.16); }
.people-entry__badge--new{ border-color:rgba(123,255,190,0.65); color:#7bffbe; background:rgba(32,120,90,0.18); }

/* Chips inline na role */
.people-entry__chip{
  display:inline-block;
  padding:2px 8px;
  border-radius:999px;
  font-size:0.68rem;
  font-weight:700;
  letter-spacing:0.12em;
  text-transform:uppercase;
  border:1px solid;
  margin-left:4px;
  vertical-align:middle;
}

.people-entry__chip--friend{
  background:linear-gradient(135deg, rgba(123,255,190,0.18), rgba(47,143,107,0.22));
  border-color:rgba(123,255,190,0.55);
  color:#7bffbe;
  box-shadow:0 0 8px rgba(123,255,190,0.25);
}

.people-entry__chip--you{
  background:linear-gradient(135deg, rgba(131,247,255,0.18), rgba(46,195,255,0.22));
  border-color:rgba(131,247,255,0.55);
  color:#83f7ff;
  box-shadow:0 0 8px rgba(131,247,255,0.25);
}

/* Destaque especial para Jogadores */
.people-entry--player{ border-color:rgba(123,255,190,0.65); box-shadow:0 0 12px rgba(123,255,190,0.25), 0 6px 18px rgba(0,0,0,0.28); background:linear-gradient(135deg, rgba(12,24,20,0.86), rgba(10,20,18,0.72)); cursor:pointer; }

/* Inline chat abaixo de uma entrada de jogador */
.people-chat{
  margin-top:6px;
  margin-left:8px;
  margin-right:8px;
  padding:8px 10px;
  border:1px solid rgba(131,247,255,0.2);
  border-radius:10px;
  background:rgba(8,16,14,0.7);
  box-shadow:inset 0 0 12px rgba(0,0,0,0.35);
  display:none;
}
.people-chat.is-open{ display:block; }
.people-chat__header{ display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:6px; }
.people-chat__controls{ display:flex; align-items:center; gap:6px; }
.people-chat__title{ font-size:0.8rem; color:#9ceeff; letter-spacing:0.06em; }
.people-chat__close{ background:transparent; color:#9ceeff; border:1px solid rgba(131,247,255,0.3); border-radius:999px; width:24px; height:24px; line-height:20px; font-weight:700; cursor:pointer; }
.people-chat__block{ background:transparent; color:#ffd27a; border:1px solid rgba(255,200,120,0.45); border-radius:999px; padding:4px 10px; font-weight:700; cursor:pointer; }
.people-chat__block.is-active{ color:#ff9a9a; border-color:rgba(255,120,120,0.6); }
.people-chat__block.hidden{ display:none; }
.people-chat__log{ max-height:140px; overflow:auto; padding:6px; background:rgba(0,0,0,0.4); border:1px solid rgba(131,247,255,0.18); border-radius:8px; color:#e6fff5; font-family:"Courier New", monospace; font-size:0.82rem; }
.people-chat__handoff{ margin-top:6px; padding:6px 8px; border:1px dashed rgba(255,220,131,0.35); border-radius:8px; background:rgba(32,24,10,0.35); color:#ffd27a; }
.people-chat__handoff.hidden{ display:none; }
.people-chat__request{ margin-bottom:6px; }
.people-chat__actions{ display:flex; gap:8px; justify-content:flex-end; }
.people-chat__input{ display:flex; gap:8px; align-items:center; margin-top:8px; }
.people-chat__input input{ flex:1; padding:8px 10px; border-radius:999px; border:1px solid rgba(131,247,255,0.28); background:rgba(6,12,10,0.8); color:#dfffee; font-family:"Courier New", monospace; font-size:0.86rem; }
.people-chat__input button{ padding:8px 12px; border-radius:999px; border:1px solid rgba(131,247,255,0.28); background:linear-gradient(135deg, #2f8f6b, #44c79b); color:#0b1a14; font-weight:700; cursor:pointer; }
.people-chat__input.disabled{ opacity:0.6; pointer-events:none; }
@media(max-width: 540px){
  .people-chat__input{ flex-wrap:wrap; align-items:stretch; }
  .people-chat__input input{ flex:1 1 100%; min-width:0; }
  /* 2ª linha: chip à esquerda, ENVIAR ocupa o restante */
  .people-chat__input .people-emoji-chip{ margin-left:0; order:2; }
  .people-chat__input .people-chat__send{ order:3; flex:1 1 auto; min-width:0; }
}
/* Emoji chip e popover no chat dos planetas */
.people-emoji-chip{ width:32px; height:32px; min-width:32px; min-height:32px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; border:1px solid rgba(131,247,255,0.28); background:linear-gradient(135deg, rgba(8,16,12,0.85), rgba(8,20,16,0.7)); color:#dfffee; font-size:18px; cursor:pointer; box-shadow:0 4px 12px rgba(0,0,0,0.25); }
.people-emoji-chip:hover{ filter:brightness(1.05); }
.people-emoji-popover{ margin-top:6px; padding:8px; border-radius:10px; border:1px solid rgba(123,255,190,0.3); background:linear-gradient(135deg, rgba(8,16,12,0.85), rgba(6,12,10,0.72)); box-shadow:0 10px 22px rgba(0,0,0,0.45); }
.people-emoji-popover.hidden{ display:none; }
.people-emoji-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(32px, 1fr)); gap:6px; max-height: 5.5rem; overflow:auto; padding-right:4px; scrollbar-width:thin; scrollbar-color:#33cc66 #0b0b0b; }
.people-emoji-grid button{ padding:4px; font-size:22px; border-radius:8px; border:1px solid rgba(123,255,190,0.25); background:linear-gradient(180deg, rgba(12,24,20,0.6), rgba(8,16,12,0.55)); cursor:pointer; box-shadow:0 4px 10px rgba(0,0,0,0.25); }
.people-emoji-grid button:hover{ filter:brightness(1.08); border-color:rgba(123,255,190,0.4); }
/* Linha da mensagem (container) */
.people-chat__msg{ display:flex; gap:8px; padding:4px 6px; }
.people-chat__msg.is-me{ justify-content:flex-end; }
.people-chat__msg.is-other{ justify-content:flex-start; }
/* Mensagens do moderador: centralizadas e com rótulo */
.people-chat__msg.people-chat__msg--mod{ justify-content:center; }
/* Bolha da mensagem com borda suave */
.people-chat__msg-bubble{ max-width:86%; padding:8px 10px; border:1px solid rgba(131,247,255,0.22); border-radius:12px; background:linear-gradient(135deg, rgba(12,24,20,0.55), rgba(8,16,14,0.45)); box-shadow:0 8px 18px rgba(0,0,0,0.25); }
.people-chat__msg.is-me .people-chat__msg-bubble{ border-color:rgba(123,255,190,0.32); background:linear-gradient(135deg, rgba(24,46,40,0.6), rgba(12,24,20,0.5)); }
.people-chat__msg.is-other .people-chat__msg-bubble{ border-color:rgba(131,247,255,0.28); background:linear-gradient(135deg, rgba(16,28,30,0.55), rgba(8,16,18,0.45)); }
/* Bolha do moderador */
.people-chat__msg.people-chat__msg--mod .people-chat__msg-bubble{
  border-color:rgba(255,220,131,0.5);
  background:linear-gradient(135deg, rgba(32,24,10,0.6), rgba(18,12,6,0.5));
}
/** Texto da mensagem: quebrar mesmo em sequências longas */
.people-chat__msg-text{ color:#e6fff5; white-space:pre-wrap; overflow-wrap:anywhere; word-break:break-word; }
.people-chat__msg.is-me .people-chat__msg-text{ color:#7bffbe; }
/* Rótulo do moderador */
.people-chat__msg-label{ display:inline-block; margin-bottom:4px; font-size:0.7rem; color:#ffcc66; text-transform:uppercase; letter-spacing:.08em; font-weight:700; opacity:.9; }
/* Horário abaixo do texto */
.people-chat__msg-time{ display:block; margin-top:4px; color:#9bd5ff; opacity:0.75; font-size:0.7rem; text-align:right; }
.people-chat__msg.people-chat__msg--mod .people-chat__msg-time{ text-align:center; }
.people-chat__msg.is-other .people-chat__msg-time{ text-align:left; }
.pv-left,
.pv-right{
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
  min-width:0;
}
.pv-left .card,
.pv-right .card{
  margin-bottom:0;
  width:100%;
  box-sizing:border-box;
  min-width:0;
}
.pv-desc{ color:#e6ffe6; font-family:"Courier New", monospace; line-height:1.6; min-height:120px; }
.pv-section{ color:#ffdb6e; margin:10px 0 6px; font-weight:bold; }
.pv-right .card{ min-height:200px; margin-bottom:12px; }
.pv-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-bottom:12px;
}

@media(max-width:1200px){
  .planet-view{ grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); }
}

@media(max-width:980px){
  .planet-view{
    grid-template-columns:1fr;
    padding:16px 16px 80px;
    gap:18px;
  }
  .pv-left,
  .pv-right{
    gap:16px;
  }
  .pv-right{ order:2; }
  .pv-actions{
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:8px;
  }
  .pv-actions .btn{
    flex:1 1 calc(50% - 8px);
    text-align:center;
  }
  .location-card__header{ flex-wrap:wrap; gap:6px 10px; }
  .location-card__status{ gap:6px; }
  .console-card__log{ min-height:200px; }
  .console-card__header{
    flex-direction:column;
    gap:12px;
  }
  .console-card__status{ align-self:flex-start; }
  .map-card__header{
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .map-card__controls{
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:8px;
  }
  .map-card__controls-group{
    flex-wrap:wrap;
    gap:8px;
  }
  .map-card__badge{ align-self:auto; }
  .map-card__viewport{ min-height:0; }
  .map-card__legend{ justify-content:flex-start; }
  .radio-card__media{
    flex-direction:column;
    align-items:flex-start;
    gap:14px;
  }
  .radio-card__controls{ justify-content:flex-start; }
  .radio-card__volume{ width:100%; }
  .explorer-status__header{ flex-direction:column; gap:12px; }
  .explorer-status__tags{ width:100%; }
}

@media(max-width:640px){
  .planet-view{
    padding:12px 12px 76px;
    gap:14px;
    max-width:100vw;
    overflow-x:hidden;
  }
  .pv-left,
  .pv-right{ min-width:0; }
  .pv-actions{
    gap:6px;
  }
  .pv-actions .btn{
    flex:1 1 100%;
  }
  .location-card__content{ padding:14px; gap:12px; }
  .location-card__header{ flex-direction:column; align-items:flex-start; gap:4px; }
  .location-card__status{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    gap:6px;
  }
  .location-card__desc{ font-size:0.86rem; min-height:auto; }
  .location-card__exits-list{ grid-template-columns:1fr; }
  .console-card__log{ min-height:170px; max-height:240px; }
  .console-card__footer{ gap:10px; }
  .console-card__shortcuts{ justify-content:flex-start; }
  .console-card__input{ flex-direction:column; align-items:stretch; }
  .console-card__input input{ width:100%; }
  .console-card__send{ width:100%; text-align:center; }
  .map-card__controls{ gap:6px; }
  .map-card__controls-group{ width:100%; justify-content:flex-start; }
  .map-card__viewport{ padding:8px; }
  .map-card__legend{ gap:6px; }
  .people-card__header{ flex-direction:column; align-items:flex-start; gap:6px; }
  .radio-card__header{ flex-direction:column; align-items:flex-start; gap:10px; }
  .radio-card__body{ gap:12px; }
  .radio-card__controls{ width:100%; }
  .radio-card__volume{ gap:10px; }
  .planet-view .card,
  .planet-view .card *{
    max-width:100%;
  }
  .planet-view canvas,
  .planet-view img,
  .planet-view video,
  .planet-view iframe{ max-width:100%; height:auto; }
  .menu-view .footer{
    justify-content:center;
    text-align:center;
    padding:12px 16px;
  }
  .menu-view .footer span{
    width:100%;
    display:block;
  }
  .explorer-status__tabs{ flex-wrap:wrap; }
  .explorer-status__tab{ flex:1 1 100%; text-align:center; }
}

@media(max-width:480px){
  .planet-view{ padding:10px 10px 70px; }
  .map-card__controls-group{ gap:6px; }
  .map-card__badge{ width:100%; text-align:center; }
  .radio-card__media{ gap:10px; }
  .radio-cover{ width:100%; max-width:240px; }
}
.pv-actions .btn{
  border-radius:999px;
  padding:10px 22px;
  font-size:0.78rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  font-weight:600;
  border:1px solid rgba(146, 232, 206, 0.32);
  background:linear-gradient(135deg, rgba(20, 42, 32, 0.92), rgba(12, 26, 22, 0.92));
  color:#cbffe9;
  box-shadow:0 8px 24px rgba(0,0,0,0.45);
  transition:transform 140ms ease, box-shadow 140ms ease, filter 140ms ease, background 160ms ease;
}
.pv-actions .btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 28px rgba(0,0,0,0.5);
  filter:brightness(1.05);
}
.pv-actions .btn:active{
  transform:translateY(1px);
  filter:brightness(0.95);
}
.pv-actions .btn:focus-visible{
  outline:2px solid rgba(255,255,255,0.65);
  outline-offset:3px;
}

.pv-actions .btn-missions{
  border-color:rgba(255,200,125,0.45);
  background:linear-gradient(135deg, rgba(64, 40, 12, 0.92), rgba(96, 56, 18, 0.9));
  color:#ffe9c2;
}

.pv-actions .btn-map{
  border-color:rgba(126,220,255,0.45);
  background:linear-gradient(135deg, rgba(16, 42, 64, 0.92), rgba(10, 32, 48, 0.92));
  color:#d4f3ff;
}

.btn-missions--active{
  box-shadow:0 0 22px rgba(255,200,120,0.55), 0 12px 28px rgba(0,0,0,0.45);
  filter:brightness(1.08);
}

.btn-map--active{
  box-shadow:0 0 22px rgba(126,220,255,0.55), 0 12px 28px rgba(0,0,0,0.45);
  filter:brightness(1.08);
}
.stat{ margin:8px 0; }
.stat .lbl{ display:flex; justify-content:space-between; color:#e0e0e0; font-size:13px; }
.bar{
  height:14px;
  background:rgba(8,14,12,0.85);
  border:1px solid rgba(131,247,255,0.22);
  position:relative;
  overflow:hidden;
  border-radius:999px;
  box-shadow:inset 0 0 14px rgba(0,0,0,0.45);
}
.bar .fill{
  position:absolute; left:0; top:0; bottom:0; width:0%;
  background:linear-gradient(135deg, #2f8f6b, #44c79b);
  transition: width 220ms ease, box-shadow 220ms ease, filter 220ms ease;
  border-radius:inherit;
  box-shadow:0 0 16px rgba(68,199,155,0.45);
}
.bar .fill.glow{ box-shadow: 0 0 10px rgba(255,255,255,0.4); filter: brightness(1.25); }
.bar.energy .fill{ background:linear-gradient(135deg, #a749ff, #ff6ef0); box-shadow:0 0 16px rgba(255,110,240,0.45); }
.bar.energy .fill.glow{ box-shadow: 0 0 18px rgba(255,110,240,0.75); }
.bar.xp .fill{ background:linear-gradient(135deg, #3c8ddb, #7be0ff); box-shadow:0 0 16px rgba(123,224,255,0.45); }
.bar.xp .fill.glow{ box-shadow: 0 0 18px rgba(123,224,255,0.75); }
.systems-status{
  margin-top:20px;
  padding:20px 22px;
  border:1px solid rgba(131,247,255,0.18);
  border-radius:16px;
  background:linear-gradient(140deg, rgba(10,18,16,0.82), rgba(14,24,20,0.65));
  box-shadow:inset 0 0 18px rgba(0,0,0,0.42);
}
.systems-status .card-subtitle{
  color:var(--nt-gold);
  letter-spacing:0.18em;
  text-transform:uppercase;
  font-size:0.8rem;
  margin-bottom:12px;
  display:block;
}
.systems-status__list{
  display:flex;
  flex-wrap:wrap;
  gap:16px;
  justify-content:flex-start;
  align-items:stretch;
}
.systems-status__item{
  display:flex;
  gap:12px;
  align-items:center;
  padding:10px 14px;
  border-radius:14px;
  background:linear-gradient(135deg, rgba(12,24,20,0.72), rgba(10,18,16,0.6));
  border:1px solid rgba(131,247,255,0.18);
  box-shadow:0 10px 22px rgba(0,0,0,0.32);
  flex:1 1 calc(25% - 12px);
  min-width:220px;
}
.systems-status__icon{ font-size:1.2rem; filter:drop-shadow(0 0 8px rgba(131,247,255,0.2)); }
.systems-status__meta{ display:flex; flex-direction:column; gap:4px; }
.systems-status__label{ font-size:0.82rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--nt-cyan); }
.systems-status__item .status-text{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(68,199,155,0.16);
  border:1px solid rgba(68,199,155,0.42);
  color:#78ffb9;
  font-size:0.82rem;
  letter-spacing:0.04em;
}
.systems-status__item[data-status="degradado"] .status-text{
  background:rgba(255,213,120,0.16);
  border-color:rgba(255,213,120,0.38);
  color:#ffd774;
}
.systems-status__item[data-status="falha"] .status-text{
  background:rgba(255,120,120,0.18);
  border-color:rgba(255,120,120,0.42);
  color:#ff9898;
}
@media(max-width:1200px){
  .systems-status__item{ flex:1 1 calc(50% - 12px); }
}
@media(max-width:820px){
  .systems-status__item{ flex:1 1 100%; }
}
.engineering-note{
  margin-top:12px;
  font-size:0.78rem;
  color:rgba(131,247,255,0.75);
  letter-spacing:0.06em;
  text-transform:uppercase;
  background:rgba(12,24,20,0.42);
  border:1px solid rgba(131,247,255,0.2);
  border-radius:12px;
  padding:12px 16px 16px;
  box-shadow:inset 0 0 14px rgba(0,0,0,0.35);
  position:relative;
  display:flex;
  flex-direction:column;
  gap:10px;
  overflow:hidden;
}
.engineering-log{ min-height:200px; }
.engineering-actions{
  margin-top:8px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.engineering-actions .btn{ width:auto; }

.engineering-banner__text-wrapper{
  position:relative;
  min-height:calc(1.35em * 2);
  line-height:1.35;
  overflow:hidden;
  padding-right:2px;
}

.engineering-banner__text-item{
  position:absolute;
  left:0;
  right:0;
  display:block;
  opacity:0;
  transform:translateY(12px);
  transition:transform 320ms ease, opacity 320ms ease;
  white-space:normal;
  word-break:break-word;
}

.engineering-banner__text-item.is-entering{
  opacity:1;
  transform:translateY(0);
}

.engineering-banner__text-item.is-leaving{
  opacity:0;
  transform:translateY(-12px);
}

.engineering-banner__progress{
  position:relative;
  align-self:center;
  width:64%;
  max-width:240px;
  height:3px;
  border-radius:999px;
  background:rgba(131,247,255,0.18);
  overflow:hidden;
}

.engineering-banner__progress::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:linear-gradient(90deg, rgba(131,247,255,0.1) 0%, rgba(131,247,255,0.85) 50%, rgba(131,247,255,0.1) 100%);
  transform:scaleX(0);
  transform-origin:center center;
}

.engineering-banner__progress.is-animating::before{
  animation: engineeringBannerProgress 7000ms linear forwards;
}

@keyframes engineeringBannerProgress{
  from{ transform:scaleX(0); }
  to{ transform:scaleX(1); }
}
@media(max-width:980px){ .planet-view{ grid-template-columns:1fr; } }

/* SPA fade-in utility */
.fade-in{ animation: fadeInNT 240ms ease-out; }
@keyframes fadeInNT{ from{ opacity:0; transform: translateY(4px);} to{ opacity:1; transform: translateY(0);} }
/* Fade-out rápido para esconder cards com suavidade */
.fade-out-quick{ animation: ntFadeOut 180ms ease-in forwards; }
@keyframes ntFadeOut{ from{ opacity:1; transform: translateY(0);} to{ opacity:0; transform: translateY(4px);} }
/* Glow de atenção ao exibir um card */
.attention-glow{ animation: ntGlow 1200ms ease-out 0s 1; }
@keyframes ntGlow{
  0%{ box-shadow: 0 0 0 0 rgba(255,215,0,0); transform: scale(0.995); }
  20%{ box-shadow: 0 0 22px 4px rgba(255,215,0,0.95); transform: scale(1.012); }
  45%{ box-shadow: 0 0 16px 3px rgba(255,215,0,0.7); transform: scale(1.006); }
  70%{ box-shadow: 0 0 12px 2px rgba(255,215,0,0.45); transform: scale(1.002); }
  100%{ box-shadow: 0 0 0 0 rgba(255,215,0,0); transform: scale(1.0); }
}

/* Radio card */
.radio-card{
  background: linear-gradient(140deg, rgba(18, 18, 30, 0.95), rgba(14, 26, 38, 0.9));
  border:1px solid rgba(128, 200, 255, 0.28);
  border-radius:14px;
  padding:20px 22px;
  box-shadow:0 12px 32px rgba(0,0,0,0.45);
}

.radio-card__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:18px;
  margin-bottom:18px;
}

.radio-card__titles{ display:flex; flex-direction:column; gap:4px; }

.radio-card__title{
  font-size:1.05rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.14em;
  color:#cbefff;
}

.radio-card__subtitle{
  font-size:0.82rem;
  color:#7ec7ff;
  letter-spacing:0.08em;
}

.radio-status-badge{
  padding:6px 14px;
  border-radius:999px;
  font-size:0.75rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  font-weight:700;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(255,255,255,0.05);
  color:#9dddff;
  transition:filter 140ms ease, box-shadow 140ms ease;
}

.radio-status-badge--on{
  border-color:rgba(123,255,190,0.45);
  background:rgba(123,255,190,0.16);
  color:#7bffbe;
  box-shadow:0 0 16px rgba(123,255,190,0.18);
}

.radio-status-badge--off{
  border-color:rgba(255,106,131,0.36);
  background:rgba(255,106,131,0.12);
  color:#ff6a83;
}

.radio-card__body{ display:flex; flex-direction:column; gap:18px; }

.radio-card__media{
  display:flex;
  gap:16px;
  align-items:center;
}

.radio-cover{
  width:84px;
  height:84px;
  border-radius:12px;
  background:#0f1621;
  border:1px solid rgba(128,200,255,0.24);
  object-fit:cover;
  box-shadow:0 8px 20px rgba(0,0,0,0.35);
}

.radio-card__info{ display:flex; flex-direction:column; gap:6px; }

.radio-card__now-label{
  font-size:0.78rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#7ec7ff;
}

.radio-card__now-title{
  min-height:22px;
  font-size:1rem;
  font-weight:600;
  color:#e9f7ff;
  letter-spacing:0.04em;
}

.radio-card__track-meta{
  font-size:0.72rem;
  color:#8fa9bc;
  letter-spacing:0.06em;
}

.radio-card__progress{
  display:flex;
  align-items:center;
  gap:10px;
}

.radio-card__progress-bar{
  flex:1;
  position:relative;
  height:12px;
  border-radius:999px;
  background:rgba(10,18,26,0.92);
  border:1px solid rgba(255,255,255,0.1);
  overflow:hidden;
}

.radio-card__progress-fill{
  position:absolute;
  inset:0;
  width:0;
  border-radius:inherit;
  background:linear-gradient(90deg, #42a4ff, #9f6dff);
  box-shadow:0 0 14px rgba(66,164,255,0.35);
  transition:width 200ms ease;
}

.radio-card__progress-text{
  font-size:0.78rem;
  color:#9ac4dd;
  letter-spacing:0.06em;
}

.radio-card__controls{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:14px;
}

.radio-btn{
  min-width:44px;
  padding:10px 16px;
  border-radius:10px;
  font-size:0.85rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.radio-btn:hover{ transform:translateY(-1px); filter:brightness(1.05); }
.radio-btn:active{ transform:translateY(1px); filter:brightness(0.95); }

.radio-btn--primary{
  background:linear-gradient(135deg, #2bc4ff, #7fffd4);
  color:#02121c;
  border-color:rgba(123,255,212,0.45);
  font-weight:700;
  box-shadow:0 8px 20px rgba(46,195,255,0.35);
}

.radio-btn--ghost{
  background:rgba(255,255,255,0.06);
  color:#a9d7ff;
  border-color:rgba(169,215,255,0.25);
}

.radio-card__volume{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:0.8rem;
  letter-spacing:0.06em;
  color:#9dd3ff;
}

.radio-card__volume input[type="range"]{
  flex:1;
  -webkit-appearance: none;
  appearance: none;
  height: 12px;
  background: none; /* track desenha o preenchido */
  border-radius: 999px;
  outline: none;
  /* Gradiente igual ao .radio-btn--primary */
  --grad-a: #2bc4ff;
  --grad-b: #7fffd4;
  /* Cor da parte não preenchida */
  --track: rgba(255,255,255,0.12);
  /* Percentual preenchido (sincronizado via JS) */
  --p: 50%;
}

/* Chrome/Safari/Edge */
.radio-card__volume input[type="range"]::-webkit-slider-runnable-track{
  height: 12px;
  border-radius: 999px;
  /* Duas camadas: preenchida (gradiente) e base (track).
     Evita o bug onde 0% aparecia como 100% em alguns navegadores. */
  background:
    linear-gradient(135deg, var(--grad-a), var(--grad-b)) 0 / var(--p) 100% no-repeat,
    var(--track);
}
.radio-card__volume input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  border: 1px solid rgba(123,255,212,0.45);
  box-shadow: 0 0 12px rgba(46,195,255,0.35);
  margin-top: -3px; /* alinhar no track de 12px */
}

/* Firefox */
.radio-card__volume input[type="range"]::-moz-range-track{
  height: 12px;
  border-radius: 999px;
  background: var(--track);
}
.radio-card__volume input[type="range"]::-moz-range-progress{
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--grad-a), var(--grad-b));
}
.radio-card__volume input[type="range"]::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
  border: 1px solid rgba(123,255,212,0.45);
  box-shadow: 0 0 12px rgba(46,195,255,0.35);
}

.radio-card__volume span{
  font-family:"Courier New", monospace;
  color:#e3f4ff;
}

/* Letras sincronizadas */
.radio-card__lyrics{
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
             opacity 0.4s ease,
             padding 0.5s ease;
  padding:0 1rem;
  margin-top:0;
  position:relative;
}

.radio-card__lyrics.expanded{
  max-height:140px;
  opacity:1;
  padding:1rem;
  margin-top:0.5rem;
  border-top:1px solid rgba(169,215,255,0.15);
}

.radio-card__lyrics-line{
  text-align:center;
  font-size:0.85rem;
  color:#7a9cb8;
  padding:0.25rem 0;
  line-height:1.4;
  min-height:1.4em;
  transition:transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
             opacity 0.4s ease,
             font-size 0.3s ease,
             color 0.3s ease;
  will-change:transform, opacity;
}

.radio-card__lyrics-line--prev,
.radio-card__lyrics-line--next{
  opacity:0.5;
}

.radio-card__lyrics-line--current{
  font-size:1rem;
  font-weight:600;
  color:#00ff88;
  text-shadow:0 0 10px rgba(0,255,136,0.4);
  opacity:1;
}

.radio-card__lyrics-line--current:not(.slide-up){
  transform:scale(1.05);
}

/* Animações de slide up */
@keyframes lyricsSlideUp{
  0%{
    transform:translateY(0.8em);
    opacity:0;
  }
  100%{
    transform:translateY(0);
    opacity:1;
  }
}

@keyframes lyricsSlideUpCurrent{
  0%{
    transform:translateY(0.8em) scale(1);
    opacity:0;
  }
  100%{
    transform:translateY(0) scale(1.05);
    opacity:1;
  }
}

.radio-card__lyrics-line.slide-up{
  animation:lyricsSlideUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.radio-card__lyrics-line--current.slide-up{
  animation:lyricsSlideUpCurrent 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
  animation-delay:0.05s;
}

.radio-card__lyrics-line--prev.slide-up{
  animation-delay:0s;
}

.radio-card__lyrics-line--next.slide-up{
  animation-delay:0.1s;
}

.radio-btn.disabled,
.radio-btn[disabled]{
  opacity:0.6;
  cursor:not-allowed;
  filter:grayscale(0.3);
  box-shadow:none;
  transform:none;
}

.radio-card__now-title .cursor-blink{ color:#7fffd4; }

.radio-card__info .cursor-blink,
.radio-card__info .cursor-blink::after{
  font-weight:700;
}

.radio-cover.spin-once{ animation: ntSpinY 1s ease-in-out 1; transform-style: preserve-3d; }
.radio-cover.flip{ animation: ntFlipY 600ms ease-in-out 1; }
@keyframes ntSpinY{ from{ transform: rotateY(0deg);} to{ transform: rotateY(360deg);} }
@keyframes ntFlipY{ 0%{ transform: rotateY(0deg);} 50%{ transform: rotateY(180deg);} 100%{ transform: rotateY(360deg);} }

/* Mission Notification Banner */
.mission-banner{ position:fixed; left:50%; top:14%; transform:translateX(-50%); z-index:9999; pointer-events:none; }
.mission-banner.hidden{ display:none; }
.mission-banner-content{
  min-width:360px;
  max-width:78vw;
  padding:18px 26px;
  border-radius:14px;
  border:1px solid rgba(131,247,255,0.28);
  background:linear-gradient(135deg, rgba(16,22,30,0.92), rgba(12,18,26,0.88));
  box-shadow:0 18px 44px rgba(0,0,0,0.55);
  text-align:center;
  color:#dfffee;
  letter-spacing:0.12em;
  text-transform:uppercase;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.mission-banner-title{
  font-size:0.95rem;
  font-weight:700;
  color:#9ceeff;
}
.mission-banner-name{
  font-size:0.86rem;
  font-weight:600;
  color:#ffe8b5;
  text-transform:none;
  letter-spacing:0.08em;
}
.mission-banner.accepted .mission-banner-content{
  border-color:rgba(255,215,128,0.42);
  box-shadow:0 18px 40px rgba(255,200,120,0.35);
}
.mission-banner.done .mission-banner-content{
  border-color:rgba(123,255,190,0.45);
  box-shadow:0 18px 40px rgba(120,255,190,0.32);
}
.mission-banner.fade-out{ animation: ntMissionFade 900ms ease-in forwards; }
@keyframes ntMissionFade{ from{ opacity:1 } to{ opacity:0 } }

/* Planet Missions Card */
#missionCard{
  padding:16px;
  background:rgba(8,8,8,0.78);
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
}

.missions-group-title{
  margin:0 0 10px;
  font-size:0.95rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#ffd166;
}


.mission-card{
  position:relative;
  border-radius:10px;
  padding:14px 18px;
  margin-bottom:12px;
  background:rgba(18,18,18,0.92);
  border:1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.mission-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.45);
}

.mission-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:10px;
  cursor:pointer;
}

.mission-header-text{ flex:1; }
.mission-title{
  margin:0;
  font-size:1.05rem;
  color:#fefefe;
}

.mission-summary{
  margin:4px 0 0;
  color:#cccccc;
  font-size:0.9rem;
  line-height:1.4;
}

.mission-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:0.78rem;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.mission-objectives,
.mission-locations,
.mission-footer{
  margin:8px 0 0;
  color:#dddddd;
  font-size:0.88rem;
  line-height:1.4;
}

.mission-label{
  color:#66ffb2;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.05em;
  margin-right:6px;
}


.mission-footer{ color:#ffd166; font-weight:600; }

.missions-divider{
  border:none;
  border-top:1px dashed rgba(255,255,255,0.12);
  margin:20px 0;
}

.mission-empty{
  margin:0;
  text-align:center;
  color:#828282;
  font-style:italic;
}

.mission-ativa{
  border-color:rgba(0,255,120,0.35);
  box-shadow: 0 0 12px rgba(0,255,120,0.18);
}

.mission-ativa .mission-badge{
  background:rgba(0,255,120,0.18);
  border:1px solid rgba(0,255,120,0.55);
  color:#20ff95;
  box-shadow:0 0 10px rgba(0,255,120,0.35);
}

.mission-concluida{
  border-color:rgba(0,160,255,0.2);
  opacity:0.88;
}

.mission-concluida .mission-badge{
  background:rgba(0,160,255,0.16);
  border:1px solid rgba(0,160,255,0.45);
  color:#52c7ff;
}

.mission-concluida .mission-summary,
.mission-concluida .mission-objectives,
.mission-concluida .mission-locations{
  color:#bbbbbb;
}

.mission-card .mission-details{
  max-height:2000px;
  overflow:hidden;
  transition:max-height 200ms ease, opacity 200ms ease;
}

.mission-card.is-collapsed .mission-details{
  max-height:0;
  opacity:0;
  pointer-events:none;
}

.mission-card.is-expanded .mission-details{
  opacity:1;
}

.mission-card.is-collapsed .mission-badge{
  filter:opacity(0.7);
}

/* Explorer Status Card */
.explorer-status{
  background: linear-gradient(135deg, rgba(10, 14, 20, 0.92), rgba(18, 28, 40, 0.88));
  border: 1px solid rgba(122, 255, 214, 0.2);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.explorer-status--warning{
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.28);
}

.explorer-status--critical{
  border-color: rgba(255, 107, 107, 0.55);
  box-shadow: 0 0 20px rgba(255, 107, 107, 0.32);
}

.explorer-status--energized{
  border-color: rgba(128, 255, 214, 0.45);
  box-shadow: 0 0 20px rgba(128, 255, 214, 0.3);
}

.explorer-status__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.explorer-status__title-group{ display:flex; flex-direction:column; gap:4px; }
.explorer-status__title{
  font-size:1.05rem;
  font-weight:700;
  color:#f5fde6;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.explorer-status__headline{
  font-size:0.9rem;
  color:#8cfcd9;
  letter-spacing:0.05em;
}

.explorer-status__tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}

.status-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:4px 10px;
  border-radius:999px;
  font-size:0.75rem;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(255,255,255,0.05);
}

.status-tag--buff{
  color:#80ffd6;
  border-color:rgba(128,255,214,0.6);
  background:rgba(64,255,200,0.12);
  box-shadow:0 0 10px rgba(64,255,200,0.18);
}

.status-tag--warn{
  color:#ffd166;
  border-color:rgba(255,209,102,0.5);
  background:rgba(255,209,102,0.08);
}

.status-tag--critical{
  color:#ff6b6b;
  border-color:rgba(255,107,107,0.5);
  background:rgba(255,107,107,0.08);
}

.status-tag--info{
  color:#80e8ff;
  border-color:rgba(128,232,255,0.42);
  background:rgba(128,232,255,0.1);
}

.status-tag--neutral{
  color:#d0d0d0;
  border-color:rgba(208,208,208,0.35);
  background:rgba(208,208,208,0.05);
}

.explorer-status__body{ display:flex; flex-direction:column; gap:18px; }
.explorer-status__tabs{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px;
  border-radius:12px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  width:max-content;
}
.explorer-status__tab{
  border:none;
  background:transparent;
  color:#8cfcd9;
  font-family:"Courier New", monospace;
  font-size:0.75rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  padding:8px 14px;
  border-radius:8px;
  cursor:pointer;
  transition:background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.explorer-status__tab:hover{ background:rgba(140,252,217,0.08); color:#dfffe0; }
.explorer-status__tab.is-active{
  background:rgba(140,252,217,0.18);
  color:#ffffff;
  box-shadow:0 0 14px rgba(140,252,217,0.25);
  font-weight:700;
}
.explorer-status__tab:focus-visible{ outline:2px solid rgba(140,252,217,0.65); outline-offset:2px; }
.explorer-status__panels{ display:flex; flex-direction:column; gap:18px; }
.explorer-status__panel{ display:flex; flex-direction:column; gap:18px; }
.explorer-status__panel[hidden]{ display:none !important; }

.status-section{ margin:0; display:flex; flex-direction:column; gap:12px; }
.status-section-title{
  margin:0;
  font-size:0.85rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#ffe7a8;
  font-weight:700;
}

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

.status-grid--compact{ grid-template-columns:repeat(auto-fit, minmax(120px,1fr)); }

.status-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 10px;
  border-radius:8px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.06);
}

.status-label{
  font-size:0.78rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:#9bd5ff;
  font-weight:600;
}

.status-value{
  font-family:"Courier New", monospace;
  font-size:0.9rem;
  color:#f5f5f5;
}

.status-progress-group{ display:flex; flex-direction:column; gap:14px; }

.status-progress{ display:flex; flex-direction:column; gap:6px; }

.status-progress-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:0.82rem;
}

.status-progress-label{
  color:#9bd5ff;
  letter-spacing:0.1em;
  text-transform:uppercase;
  font-weight:600;
}

.status-progress-value{
  font-family:"Courier New", monospace;
  color:#f1f1f1;
  font-size:0.9rem;
}

.status-progress-bar{
  position:relative;
  height:12px;
  border-radius:8px;
  background:rgba(12, 12, 18, 0.9);
  border:1px solid rgba(255,255,255,0.08);
  overflow:hidden;
  transition:border-color 200ms ease;
}

.status-progress-bar .fill{
  position:absolute;
  inset:0;
  width:0;
  border-radius:inherit;
  transition:width 220ms ease;
}

.status-progress-bar.hp .fill{
  background:linear-gradient(90deg, #24ff7a, #9cffd4);
  box-shadow:0 0 14px rgba(36,255,122,0.28);
}

.status-progress-bar.en .fill{
  background:linear-gradient(90deg, #ff6df9, #ffc6ff);
  box-shadow:0 0 14px rgba(255,109,249,0.25);
}

.status-progress-bar.xp .fill{
  background:linear-gradient(90deg, #40c4ff, #b388ff);
  box-shadow:0 0 14px rgba(64,196,255,0.25);
}

.status-progress--warning .status-progress-value{ color:#ffd166; }
.status-progress--warning .status-progress-bar{ border-color:rgba(255,209,102,0.35); }

.status-progress--critical .status-progress-value{ color:#ff6b6b; }
.status-progress--critical .status-progress-bar{ border-color:rgba(255,107,107,0.42); box-shadow:0 0 16px rgba(255,107,107,0.2); }

.status-progress--ready .status-progress-value{ color:#80e8ff; }

.status-progress-bar.pulse .fill{ animation: statusBarPulse 520ms ease-out; }

@keyframes statusBarPulse{
  0%{ filter:brightness(1); box-shadow:0 0 0 rgba(255,255,255,0); }
  40%{ filter:brightness(1.35); box-shadow:0 0 14px rgba(255,255,255,0.3); }
  100%{ filter:brightness(1); box-shadow:0 0 0 rgba(255,255,255,0); }
}

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

.enemy-card{
  background: linear-gradient(135deg, rgba(30, 10, 20, 0.94), rgba(45, 16, 28, 0.9));
  border: 1px solid rgba(255, 86, 141, 0.25);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.enemy-card__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:18px;
}

.enemy-card__title{
  font-size:1.02rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:#ffd6f9;
}

.enemy-card__subtitle{
  display:block;
  margin-top:4px;
  font-size:0.85rem;
  color:#ff9ed1;
  letter-spacing:0.05em;
}

.enemy-card__wave{
  font-size:0.78rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#ff86a5;
}

.enemy-card__list{ display:flex; flex-direction:column; gap:12px; }

.enemy-unit{
  padding:12px 14px;
  border-radius:10px;
  background:rgba(255, 255, 255, 0.04);
  border:1px solid rgba(255, 107, 158, 0.25);
  position:relative;
  overflow:hidden;
}

.enemy-unit__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:8px;
}

.enemy-unit__name{
  font-size:0.95rem;
  font-weight:600;
  color:#ffe9f7;
  letter-spacing:0.06em;
}

.enemy-unit__meta{
  display:flex;
  gap:12px;
  font-size:0.78rem;
  color:#ffc7f2;
  letter-spacing:0.05em;
}

.enemy-meta__danger{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:2px 8px;
  border-radius:999px;
  font-size:0.7rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  background:rgba(255, 64, 64, 0.18);
  border:1px solid rgba(255, 64, 64, 0.35);
  color:#ffb4b4;
  box-shadow:0 0 10px rgba(255, 64, 64, 0.2);
}

.enemy-meta__danger--extreme{
  background:rgba(255, 0, 0, 0.25);
  border-color:rgba(255, 0, 0, 0.5);
  color:#ffdada;
  box-shadow:0 0 12px rgba(255, 0, 0, 0.35);
}

.enemy-unit__hp{
  font-family:"Courier New", monospace;
  font-size:0.88rem;
  color:#ffe9f7;
}

.enemy-unit__tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}

.enemy-tag{
  padding:3px 8px;
  border-radius:999px;
  font-size:0.7rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.12);
  color:#ffd6f9;
}

.enemy-tag--elite{ color:#ffb347; border-color:rgba(255,179,71,0.5); background:rgba(255,179,71,0.12); }
.enemy-tag--boss{ color:#ff6b6b; border-color:rgba(255,107,107,0.6); background:rgba(255,107,107,0.12); }
.enemy-tag--shield{ color:#86f7ff; border-color:rgba(134,247,255,0.5); background:rgba(134,247,255,0.12); }

.enemy-unit__bar{
  position:relative;
  height:12px;
  border-radius:8px;
  background:rgba(24, 6, 12, 0.9);
  border:1px solid rgba(255,255,255,0.09);
  overflow:hidden;
}

.enemy-unit__bar .fill{
  position:absolute;
  inset:0;
  width:0;
  background:linear-gradient(90deg, #ff5f8f, #ff99c5);
  box-shadow:0 0 12px rgba(255,95,143,0.35);
  transition:width 200ms ease;
}

.enemy-unit--critical .enemy-unit__bar .fill{
  background:linear-gradient(90deg, #ff4040, #ff8b5f);
  box-shadow:0 0 14px rgba(255,64,64,0.45);
}

.enemy-unit--shielded{
  border-color:rgba(134,247,255,0.35);
  box-shadow:0 0 16px rgba(134,247,255,0.2);
}

.enemy-unit--dangerous{
  border-color:rgba(255, 64, 64, 0.45);
  box-shadow:0 0 16px rgba(255, 64, 64, 0.25);
}

.enemy-unit--dead{
  opacity:0.4;
}

.enemy-unit--dead .enemy-unit__name{
  text-decoration:line-through;
}

.enemy-unit--dead .enemy-unit__bar .fill{
  width:0 !important;
  background:rgba(255,255,255,0.08);
  box-shadow:none;
}

.map-card{
  background: linear-gradient(135deg, rgba(16, 12, 24, 0.94), rgba(12, 20, 32, 0.9));
  border:1px solid rgba(180, 152, 255, 0.3);
  border-radius:14px;
  padding:20px 22px;
  box-shadow:0 12px 32px rgba(0,0,0,0.45);
  display:flex;
  flex-direction:column;
  gap:18px;
}

.map-card__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
}

.map-card__title-group{ display:flex; flex-direction:column; gap:4px; }
.map-card__title{ font-size:1rem; font-weight:700; letter-spacing:0.16em; text-transform:uppercase; color:#d9cfff; }
.map-card__subtitle{
  font-size:0.82rem;
  letter-spacing:0.08em;
  color:#b7a8ff;
  text-transform:uppercase;
  display:flex;
  flex-direction:column;
  gap:2px;
}

.map-card__summary-line{ display:block; }

.map-card__controls{
  display:flex;
  align-items:center;
  gap:10px;
}

.map-card__controls-group{
  display:flex;
  align-items:center;
  gap:6px;
  background:rgba(180,152,255,0.12);
  border:1px solid rgba(180,152,255,0.2);
  border-radius:999px;
  padding:4px 6px;
}

.map-btn{
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(180,152,255,0.45);
  background:rgba(180,152,255,0.16);
  color:#efe6ff;
  font-size:0.75rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  cursor:pointer;
  transition:transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.map-btn:hover{ transform:translateY(-1px); box-shadow:0 8px 16px rgba(120,90,200,0.35); }
.map-btn:active{ transform:translateY(1px); filter:brightness(0.92); }
.map-btn:focus-visible{ outline:2px solid rgba(255,255,255,0.6); outline-offset:2px; }

.map-btn[disabled]{ opacity:0.6; cursor:not-allowed; box-shadow:none; transform:none; }

.map-btn--icon{
  min-width:30px;
  padding:6px 0;
  text-align:center;
  font-size:0.88rem;
  font-weight:700;
}

.map-card__badge{
  align-self:flex-start;
  padding:6px 14px;
  border-radius:999px;
  border:1px solid rgba(207,184,255,0.4);
  background:rgba(207,184,255,0.14);
  color:#f0e5ff;
  font-size:0.75rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.map-card__viewport{
  position:relative;
  border-radius:12px;
  background:radial-gradient(circle at top, rgba(40,24,66,0.9), rgba(10,8,20,0.95));
  padding:10px;
  border:1px solid rgba(185,160,255,0.2);
}

.map-card__viewport canvas{
  width:100%;
  height:auto;
  display:block;
  background:rgba(5,8,16,0.92);
  border-radius:10px;
}

.map-card__legend{
  display:flex;
  flex-wrap:wrap;
  gap:10px 16px;
  justify-content:flex-start;
}

.legend-chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(196,173,255,0.25);
  background:rgba(196,173,255,0.08);
  font-size:0.75rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#dfd4ff;
}

.legend-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  display:inline-block;
  box-shadow:0 0 10px rgba(255,255,255,0.4);
}

.legend-chip--ship .legend-dot{ background:#2796ff; box-shadow:0 0 12px rgba(100,180,255,0.55); }
.legend-chip--current .legend-dot{ background:#ffe066; box-shadow:0 0 12px rgba(255,224,102,0.7); }
.legend-chip--visited .legend-dot{ background:#6bffc7; box-shadow:0 0 12px rgba(107,255,199,0.5); }
.legend-chip--fog .legend-dot{ background:#555865; box-shadow:0 0 8px rgba(85,88,101,0.4); }

.map-card--pulse{
  animation: mapPulse 420ms ease-out;
}

@keyframes mapPulse{
  0%{ box-shadow:0 0 0 rgba(207,184,255,0); }
  45%{ box-shadow:0 0 26px rgba(207,184,255,0.45); }
  100%{ box-shadow:0 0 0 rgba(207,184,255,0); }
}

.map-card__badge--clear{ border-color:rgba(120,255,190,0.45); background:rgba(120,255,190,0.18); color:#8effcb; }
.map-card__badge--fog{ border-color:rgba(207,184,255,0.4); background:rgba(207,184,255,0.14); color:#f0e5ff; }
.map-card__badge--locked{ border-color:rgba(255,132,132,0.45); background:rgba(255,132,132,0.18); color:#ffc2c2; }

.map-card__subtitle--warning{ color:#ffc8a8; }

.location-card{
  background: linear-gradient(135deg, rgba(10, 18, 12, 0.92), rgba(12, 26, 22, 0.88));
  border:1px solid rgba(102, 255, 166, 0.28);
  border-radius:14px;
  padding:0;
  box-shadow:0 10px 26px rgba(0,0,0,0.4);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.location-card__sky{
  position:relative;
  background:radial-gradient(circle at 50% 15%, rgba(255,210,140,0.28), rgba(10,24,18,0.32));
  border-bottom:1px solid rgba(102,255,166,0.18);
}

.location-card__sky::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg, rgba(6,12,10,0.05) 0%, rgba(6,12,10,0.45) 100%);
}

.location-card__sky canvas{
  display:block;
  width:100%;
  height:auto;
  background:transparent;
}

.location-card__content{
  padding:18px 20px 20px;
  display:flex;
  flex-direction:column;
  gap:14px;
}

.location-card--pulse{
  animation: locationPulse 420ms ease-out;
}

@keyframes locationPulse{
  0%{ box-shadow:0 0 0 rgba(102,255,166,0); }
  35%{ box-shadow:0 0 24px rgba(102,255,166,0.45); }
  100%{ box-shadow:0 0 0 rgba(102,255,166,0); }
}

.location-card__header{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#8cf1c9;
  font-size:0.95rem;
}

.location-card__planet{ color:#a0ffd8; }
.location-card__local{ color:#e0fff5; }

.location-card__status{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.location-chip{
  padding:4px 10px;
  border-radius:999px;
  font-size:0.75rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(255,255,255,0.05);
  color:#c8ffed;
}

.location-chip--time{ border-color:rgba(123,216,255,0.4); background:rgba(123,216,255,0.12); color:#bce8ff; }
.location-chip--season{ border-color:rgba(255,197,120,0.4); background:rgba(255,197,120,0.12); color:#ffe5bb; }
.location-chip--climate{ border-color:rgba(162,255,162,0.4); background:rgba(162,255,162,0.12); color:#cfffce; }

.location-card__desc{
  margin:0;
  color:#e8ffee;
  font-family:"Courier New", monospace;
  line-height:1.6;
  min-height:90px;
}

.location-card__exits{ display:flex; flex-direction:column; gap:12px; }
.location-card__exits-header{ display:flex; align-items:center; justify-content:flex-start; gap:8px; }
.location-card__exits-title{ margin:0; font-size:0.78rem; letter-spacing:0.14em; text-transform:uppercase; color:#96ffd1; }
.location-card__exits-toggle{
  background:transparent;
  border:1px solid rgba(150,255,209,0.32);
  color:#caffee;
  font-family:"Courier New", monospace;
  font-size:0.7rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  padding:4px 10px;
  border-radius:999px;
  cursor:pointer;
  transition:filter 140ms ease, box-shadow 140ms ease;
}
.location-card__exits-toggle:hover{ filter:brightness(1.08); box-shadow:0 0 12px rgba(150,255,209,0.25); }
.location-card__exits-toggle:focus-visible{ outline:2px solid rgba(202,255,238,0.6); outline-offset:2px; }
.location-card__exits.is-collapsed .location-card__exits-list{ display:none; }
.location-card__exits-list{ display:grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap:10px; }

.location-exit{
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(128,255,200,0.22);
  background:rgba(15,30,24,0.6);
  display:flex;
  flex-direction:column;
  gap:4px;
  min-height:60px;
}

.location-exit__dir{
  font-size:0.72rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#87ffbd;
}

.location-exit__name{
  font-size:0.9rem;
  font-weight:600;
  color:#f2fff7;
}

.location-exit__distance{
  font-size:0.75rem;
  color:#9adcc0;
  letter-spacing:0.05em;
}

.people-card{
  background: linear-gradient(135deg, rgba(12, 20, 24, 0.92), rgba(16, 28, 32, 0.88));
  border:1px solid rgba(128, 232, 255, 0.24);
  border-radius:14px;
  padding:18px 20px;
  box-shadow:0 10px 28px rgba(0,0,0,0.38);
}

.people-card__header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:16px;
  margin-bottom:16px;
}

.people-card__title{
  font-size:1rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.12em;
  color:#b0f5ff;
}

.people-card__summary{
  font-size:0.82rem;
  letter-spacing:0.06em;
  color:#7fdfff;
  text-transform:uppercase;
}

.people-card__list{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.people-card__empty{
  font-size:0.85rem;
  color:#7a9fab;
  font-style:italic;
  text-align:center;
  padding:20px 0 6px;
  display:none;
}

.people-entry{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  padding:12px 14px;
  border-radius:10px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(128,232,255,0.18);
  transition:transform 140ms ease, box-shadow 140ms ease;
}

.people-entry:hover{
  transform:translateY(-2px);
  box-shadow:0 12px 24px rgba(0,0,0,0.35);
}

.people-entry__info{ display:flex; flex-direction:column; align-items:flex-start; gap:4px; }

.people-entry__name{
  font-size:0.95rem;
  font-weight:600;
  color:#e8f9ff;
  letter-spacing:0.05em;
}

.people-entry__role{
  font-size:0.78rem;
  text-transform:uppercase;
  letter-spacing:0.1em;
  color:#9bd5ff;
}

.people-entry__meta{
  font-size:0.75rem;
  color:#8db8c9;
  letter-spacing:0.05em;
}

.people-entry__badge{
  padding:4px 8px;
  border-radius:999px;
  font-size:0.72rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  background:rgba(80,205,255,0.12);
  border:1px solid rgba(80,205,255,0.3);
  color:#80deff;
  align-self:flex-start;
}

.people-entry__badge--quest{
  background:rgba(255,209,102,0.15);
  border-color:rgba(255,209,102,0.4);
  color:#ffd166;
}

.people-entry__badge--vendor{
  background:rgba(124,252,200,0.15);
  border-color:rgba(124,252,200,0.35);
  color:#7cfcc8;
}

.people-entry__badge--companion{
  background:rgba(180,134,255,0.18);
  border-color:rgba(180,134,255,0.4);
  color:#c8a4ff;
}
.people-entry__badge--pending{
  background:rgba(255,200,120,0.16);
  border-color:rgba(255,200,120,0.45);
  color:#ffd27a;
}
@media (max-width: 980px){
  .ship-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 640px){
  .ship-view{
    padding:18px 14px 88px;
    min-height:auto;
  }
  .ship-header{
    flex-direction:column;
    align-items:flex-start;
    text-align:left;
    gap:10px;
    padding:16px 18px;
  }
  .ship-title{
    font-size:1rem;
    letter-spacing:0.2em;
  }
  .ship-subtitle{
    font-size:0.76rem;
    letter-spacing:0.12em;
    padding:6px 12px;
  }
  .ship-grid{
    gap:16px;
  }
  .ship-view .card{
    padding:16px;
  }
  .ship-location{
    gap:14px;
  }
  .legend{
    flex-direction:column;
    gap:10px;
    align-items:flex-start;
  }
  .ship-tabs{
    flex-wrap:wrap;
    justify-content:flex-start;
    gap:8px;
  }
  .ship-tab{
    flex:1 1 calc(50% - 8px);
    padding:10px 12px;
    font-size:0.82rem;
    letter-spacing:0.08em;
  }
  .ship-tab:nth-last-child(-n+2){
    flex-basis:100%;
  }
  .ship-tabpanels{
    gap:12px;
  }
  .console-input{
    flex-direction:column;
    align-items:stretch;
    gap:8px;
  }
  .console-input .btn{
    width:100%;
    justify-content:center;
  }
  .ship-view--bridge .ship-grid{
    gap:16px;
  }
  .ship-view--bridge #combatPanel{
    order:-1;
  }
  .ship-view--engineering .ship-grid{
    gap:16px;
    grid-template-columns:1fr;
  }
  .ship-view--engineering .engineering-actions{
    justify-content:stretch;
  }
  .ship-view--engineering .engineering-note{
    font-size:0.72rem;
    letter-spacing:0.02em;
    text-transform:none;
    line-height:1.45;
    padding:12px 12px 16px;
  }
  .ship-view--engineering .engineering-banner__text-wrapper{
    min-height:calc(1.45em * 3);
    padding-right:0;
  }
  .ship-view--engineering .engineering-banner__progress{
    width:100%;
    max-width:none;
  }
}

@media (max-width: 420px){
  .ship-tab{
    flex-basis:100%;
  }
  .ship-header{
    padding:14px 16px;
  }
  .ship-view .card{
    padding:14px;
  }
  .ship-view--bridge .ship-grid{
    gap:12px;
  }
  .ship-view--engineering .ship-grid{
    gap:12px;
  }
}

/* Commerce Modal Responsive Design */
.commerce-modal-content {
  max-width: 860px;
  width: 100%;
}

.commerce-meta {
  margin-bottom: 8px;
  color: #ccc;
  font-family: 'Courier New', monospace;
}

.commerce-grid {
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 16px;
}

.commerce-list {
  max-height: 300px;
  overflow: auto;
  font-family: 'Courier New', monospace;
  color: #ddd;
}

.commerce-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  gap: 8px;
}

.commerce-total {
  font-family: 'Courier New', monospace;
}

.commerce-buy-total {
  color: #0ff;
}

.commerce-sell-total {
  color: #0f0;
}

.commerce-btn {
  width: auto;
}

.commerce-item {
  padding: 10px 12px;
  border: 1px solid rgba(131,247,255,0.18);
  margin-bottom: 6px;
  background: linear-gradient(135deg, rgba(8,14,12,0.52), rgba(10,20,18,0.32));
  border-radius: 10px;
  transition: border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
  overflow: hidden;
}

.commerce-item:hover {
  border-color: rgba(131,247,255,0.38);
  background: linear-gradient(135deg, rgba(12,24,20,0.62), rgba(10,20,18,0.42));
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}

.commerce-item[data-selected="true"] {
  border-color: rgba(68,199,155,0.68);
  box-shadow: 0 0 18px rgba(68,199,155,0.38);
  background: linear-gradient(135deg, rgba(16,36,30,0.72), rgba(10,20,18,0.44));
}

.commerce-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.commerce-item__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.commerce-item__name {
  font-weight: 600;
  color: #f3fff8;
  letter-spacing: 0.05em;
}

.commerce-item__price {
  font-size: 0.85rem;
  color: #83f7ff;
  letter-spacing: 0.06em;
}

.commerce-item__meta {
  font-size: 0.78rem;
  color: rgba(123,255,190,0.75);
  letter-spacing: 0.06em;
}

.commerce-item__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.commerce-item__check {
  font-size: 1.1rem;
  color: rgba(131,247,255,0.7);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
  user-select: none;
}

.commerce-item[data-selected="true"] .commerce-item__check {
  color: #44c79b;
  transform: scale(1.1);
}

.commerce-item__toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(131,247,255,0.32);
  background: rgba(10,18,16,0.68);
  color: #83f7ff;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.commerce-item__toggle:hover {
  border-color: rgba(131,247,255,0.55);
  background: rgba(12,26,22,0.85);
  transform: translateY(-1px);
}

.commerce-item__toggle:focus-visible {
  outline: 2px solid rgba(131,247,255,0.6);
  outline-offset: 2px;
}

.commerce-item__details {
  overflow: hidden;
  transition: max-height 0.24s ease;
  margin-top: 10px;
  border-top: 1px solid rgba(131,247,255,0.16);
  padding-top: 10px;
}

.commerce-item__description {
  margin: 0;
  font-size: 0.82rem;
  color: #d9ffee;
  line-height: 1.45;
}

.commerce-item__effects {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 0.78rem;
  color: rgba(131,247,255,0.9);
  line-height: 1.4;
}

.commerce-item__effects li {
  margin-bottom: 4px;
}

.commerce-item__effects li:last-child {
  margin-bottom: 0;
}

.commerce-item.is-expanded {
  border-color: rgba(131,247,255,0.45);
  background: linear-gradient(135deg, rgba(14,28,24,0.76), rgba(10,18,16,0.52));
  box-shadow: 0 12px 28px rgba(0,0,0,0.42);
}

/* Mobile Layout Class - Applied dynamically by JS */
.modal-content.mobile-layout .commerce-grid {
  grid-template-columns: 1fr !important; 
  gap: 12px;
}

.modal-content.mobile-layout {
  padding: 16px 20px !important;
  width: min(95vw, 500px) !important;
  max-width: 95vw !important;
}

.modal-content.mobile-layout .commerce-item {
  padding: 8px 10px;
}

.modal-content.mobile-layout .commerce-item__header {
  gap: 8px;
}

.modal-content.mobile-layout .commerce-item__toggle {
  width: 26px;
  height: 26px;
}

.modal-content.mobile-layout .commerce-item__description {
  font-size: 0.75rem;
}

.modal-content.mobile-layout .commerce-item__effects {
  font-size: 0.72rem;
}

.modal-content.mobile-layout .card-title {
  font-size: 14px;
}

.modal-content.mobile-layout .commerce-btn {
  padding: 8px 12px !important;
  font-size: 13px;
}

.modal-content.mobile-layout .commerce-total {
  font-size: 12px;
}

.modal-content.mobile-layout .commerce-actions {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.modal-content.mobile-layout .commerce-actions .commerce-total {
  text-align: center;
  margin-bottom: 4px;
}

/* Mobile Commerce Layout - Media Query Fallback */
@media (max-width: 768px) {
  .commerce-grid {
    grid-template-columns: 1fr !important; 
    gap: 12px;
  }
  
  .modal-content {
    padding: 16px 20px;
    width: min(95vw, 500px) !important;
    max-width: 95vw !important;
  }
  
  .commerce-item {
    font-size: 13px;
  }
  
  .card-title {
    font-size: 14px;
  }
  
  /* Ajustar botões para mobile */
  #commerceBuyDo, #commerceSellDo {
    padding: 8px 12px !important;
    font-size: 13px;
  }
  
  /* Total displays mais compactos */
  #commerceBuyTotal, #commerceSellTotal {
    font-size: 12px;
  }

  .commerce-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .commerce-actions .commerce-total {
    text-align: center;
    margin-bottom: 4px;
  }
}

/* Tablet and small desktop */
@media (max-width: 980px) and (min-width: 769px) {
  .modal-content {
    width: min(90vw, 700px) !important;
  }
}

@media (max-width: 980px){
  #app{ flex-direction:column; }
  .left-panel{ width:100%; order:2; }
  .main-panel{ order:1; }
  .menu{ width:100%; max-width:420px; }
}

/* Console Card */
.console-card{
  background:linear-gradient(140deg, rgba(12, 18, 12, 0.94), rgba(10, 26, 18, 0.88));
  border:1px solid rgba(104, 255, 166, 0.28);
  border-radius:14px;
  box-shadow:0 18px 40px rgba(0,0,0,0.45);
  display:flex;
  flex-direction:column;
  gap:0;
  color:#9cf5c8;
  font-family:'JetBrains Mono', 'Courier New', monospace;
  overflow:hidden;
}

.console-card__header{
  display:flex;
  align-items:flex-start;
  gap:18px;
  padding:18px 20px 14px;
}

.console-card__title{
  font-size:0.95rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color:#a2ffd9;
  font-weight:700;
}

.console-card__subtitle{
  display:block;
  margin-top:4px;
  font-size:0.72rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:#70f7c5;
}

.console-card__status{
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(111,255,191,0.4);
  background:rgba(111,255,191,0.14);
  color:#a8ffde;
  font-size:0.72rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
}

.console-card__status--busy{
  border-color:rgba(255,198,120,0.4);
  background:rgba(255,198,120,0.16);
  color:#ffe7c0;
}

.console-card__status--offline{
  border-color:rgba(255,110,138,0.38);
  background:rgba(255,110,138,0.14);
  color:#ffc5d0;
}

.console-card__divider{
  height:1px;
  margin:0 20px;
  background:linear-gradient(90deg, rgba(120,255,190,0), rgba(120,255,190,0.4), rgba(120,255,190,0));
  opacity:0.8;
}

.console-card__log{
  min-height:220px;
  max-height:320px;
  overflow-y:auto;
  padding:18px 20px;
  background:radial-gradient(circle at top, rgba(12,30,24,0.55), rgba(6,12,10,0.88));
  color:#baffd8;
  font-size:0.8rem;
  letter-spacing:0.05em;
  line-height:1.6;
}

.console-card__log::-webkit-scrollbar{ width:10px; }
.console-card__log::-webkit-scrollbar-track{ background:rgba(8,16,12,0.6); border-radius:10px; }
.console-card__log::-webkit-scrollbar-thumb{ background:linear-gradient(180deg, rgba(120,255,190,0.65), rgba(64,200,160,0.55)); border-radius:10px; }

.console-card__footer{
  padding:16px 20px 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  background:linear-gradient(180deg, rgba(6,14,10,0.85), rgba(6,14,10,0.95));
  border-top:1px solid rgba(104,255,166,0.18);
}

.console-card__shortcuts{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:#6affc7;
  font-size:0.68rem;
  letter-spacing:0.1em;
  text-transform:uppercase;
  opacity:0.7;
}

.console-card__shortcut{
  padding:4px 8px;
  border-radius:8px;
  background:rgba(64,160,130,0.12);
  border:1px solid rgba(64,160,130,0.22);
}

.console-card__input{
  display:flex;
  gap:10px;
  align-items:center;
}

.console-card__input input{
  flex:1;
  background:rgba(6,14,10,0.92);
  border:1px solid rgba(120,255,190,0.32);
  border-radius:12px;
  color:#caffea;
  padding:10px 14px;
  font-size:0.82rem;
  letter-spacing:0.08em;
  transition:border-color 160ms ease, box-shadow 160ms ease;
}

.console-card__input input:focus{
  outline:none;
  border-color:rgba(150,255,210,0.55);
  box-shadow:0 0 0 3px rgba(120,255,190,0.18);
}

.console-card__send{
  padding:10px 26px;
  border-radius:999px;
  border:1px solid rgba(132,255,200,0.45);
  background:linear-gradient(135deg, rgba(64, 224, 150, 0.95), rgba(26, 160, 120, 0.92));
  color:#0a1d14;
  font-size:0.82rem;
  letter-spacing:0.12em;
  text-transform:uppercase;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(0,0,0,0.45);
  transition:transform 140ms ease, box-shadow 140ms ease, filter 140ms ease;
}

.console-card__send:hover{ transform:translateY(-1px); filter:brightness(1.05); box-shadow:0 12px 30px rgba(0,0,0,0.52); }
.console-card__send:active{ transform:translateY(1px); filter:brightness(0.95); }
.console-card__send:focus-visible{ outline:2px solid rgba(255,255,255,0.6); outline-offset:3px; }

.console-card--disabled{ opacity:0.72; }
.console-card--disabled .console-card__log{ filter:saturate(0.6); }

.btn-secondary{
  background:rgba(255,255,255,0.12);
  color:#caffea;
  border-color:rgba(255,255,255,0.25);
}

.btn-secondary:hover{
  background:rgba(255,255,255,0.18);
  border-color:rgba(255,255,255,0.4);
}

.btn-danger{
  background:rgba(255,0,0,0.15);
  color:#ff6b6b;
  border-color:rgba(255,0,0,0.35);
}

.btn-danger:hover{
  background:rgba(255,0,0,0.25);
  border-color:rgba(255,0,0,0.55);
}

.btn-sm:disabled{
  opacity:0.5;
  cursor:not-allowed;
  transform:none !important;
}

/* ========== FRIENDS SYSTEM ========== */
.friends-panel{
  position:relative;
  padding:16px;
  overflow-y:auto;
  max-height:580px;
}

.friends-container{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.friends-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-bottom:12px;
  border-bottom:1px solid rgba(131,247,255,0.18);
}

.friends-title{
  margin:0;
  font-size:1.1rem;
  color:var(--nt-cyan);
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.friends-section{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.friends-section-title{
  margin:0 0 8px 0;
  font-size:0.85rem;
  color:var(--nt-gold);
  letter-spacing:0.06em;
  text-transform:uppercase;
  font-weight:600;
}

.friend-request{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  background:rgba(47,143,107,0.08);
  border:1px solid rgba(131,247,255,0.18);
  border-radius:12px;
  gap:12px;
}

.friend-request--sent{
  background:rgba(255,219,110,0.06);
  border-color:rgba(255,219,110,0.22);
}

.friend-request__info{
  display:flex;
  flex-direction:column;
  gap:4px;
  flex:1;
}

.friend-request__name{
  font-weight:700;
  color:var(--nt-cyan);
  font-size:0.92rem;
}

.friend-request__username{
  font-size:0.78rem;
  color:rgba(255,255,255,0.6);
  font-style:italic;
}

.friend-request__status{
  font-size:0.76rem;
  color:rgba(255,219,110,0.85);
  margin-top:2px;
}

.friend-request__actions{
  display:flex;
  gap:8px;
}

.friends-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.friend-entry{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 14px;
  background:rgba(12,24,20,0.65);
  border:1px solid rgba(131,247,255,0.16);
  border-radius:12px;
  transition:all 180ms ease;
  gap:12px;
}

.friend-entry:hover{
  background:rgba(12,24,20,0.85);
  border-color:rgba(131,247,255,0.32);
  transform:translateX(2px);
}

.friend-entry--online{
  border-left:3px solid #44c79b;
}

.friend-entry--offline{
  border-left:3px solid rgba(255,255,255,0.2);
  opacity:0.75;
}

.friend-entry__main{
  display:flex;
  align-items:center;
  gap:12px;
  flex:1;
}

.friend-entry__emoji{
  font-size:1.8rem;
  line-height:1;
}

.friend-entry__info{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.friend-entry__name{
  font-weight:700;
  color:var(--nt-cyan);
  font-size:0.92rem;
}

.friend-entry__meta{
  font-size:0.76rem;
  color:rgba(255,219,110,0.85);
}

.friend-entry__location{
  font-size:0.74rem;
  color:rgba(255,255,255,0.5);
  letter-spacing:0.04em;
  line-height:1.3;
}

.friend-entry__location.online{
  color:#7bffbe;
  font-weight:600;
}

.friend-entry__location.offline{
  color:rgba(255,255,255,0.38);
  font-size:0.72rem;
}

.friend-entry__actions{
  display:flex;
  gap:6px;
}

.friends-empty{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
  text-align:center;
  gap:12px;
}

.friends-empty__icon{
  font-size:3.5rem;
  opacity:0.4;
  line-height:1;
}

.friends-empty__text{
  margin:0;
  font-size:0.95rem;
  color:rgba(255,255,255,0.75);
}

.friends-empty__hint{
  margin:0;
  font-size:0.82rem;
  color:rgba(255,255,255,0.5);
  font-style:italic;
}

.friends-error{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:40px 20px;
  text-align:center;
  gap:16px;
}

.friends-error__icon{
  font-size:3rem;
  line-height:1;
}

.friends-error__text{
  margin:0;
  font-size:0.92rem;
  color:var(--vermelho);
}

.btn-sm{
  font-size:0.76rem;
  padding:6px 12px;
  border-radius:8px;
  font-weight:600;
  letter-spacing:0.06em;
  text-transform:uppercase;
  cursor:pointer;
  border:1px solid transparent;
  transition:all 140ms ease;
}

.btn-success{
  background:#44c79b;
  color:#0a1d14;
  border-color:#44c79b;
}

.btn-success:hover{
  background:#5ae0b5;
  transform:translateY(-1px);
}

/* Modal de amigos */
.friends-modal{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
}

.friends-modal__overlay{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.75);
  backdrop-filter:blur(3px);
}

.friends-modal__content{
  position:relative;
  background:linear-gradient(140deg, rgba(12,24,20,0.98), rgba(18,32,28,0.95));
  border:1px solid rgba(131,247,255,0.35);
  border-radius:16px;
  padding:18px;
  max-width:360px;
  width:86%;
  box-shadow:0 20px 50px rgba(0,0,0,0.7);
  animation:modalFadeIn 0.2s ease;
}

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

.friends-modal__title{
  margin:0 0 10px 0;
  font-size:1rem;
  color:var(--nt-cyan);
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.friends-modal__text{
  margin:0 0 12px 0;
  font-size:0.85rem;
  color:rgba(255,255,255,0.85);
  line-height:1.4;
}

.friends-modal__content--confirm .friends-modal__text{
  margin-bottom:20px;
  text-align:center;
}

.friends-modal__input{
  width:100%;
  background:rgba(6,14,10,0.92);
  border:1px solid rgba(131,247,255,0.28);
  border-radius:10px;
  color:#caffea;
  padding:10px 12px;
  font-size:0.88rem;
  font-family:"Courier New",monospace;
  margin-bottom:16px;
  transition:border-color 160ms ease;
}

.friends-modal__input:focus{
  outline:none;
  border-color:rgba(131,247,255,0.55);
  box-shadow:0 0 0 3px rgba(131,247,255,0.15);
}

.friends-modal__buttons{
  display:flex;
  gap:10px;
  justify-content:flex-end;
}

.friends-modal__buttons .btn{
  min-width:80px;
}

/* Notificações (toast) */
.friends-notification{
  position:absolute;
  bottom:20px;
  left:50%;
  transform:translateX(-50%) translateY(100px);
  background:linear-gradient(135deg, rgba(47,143,107,0.95), rgba(27,84,64,0.92));
  border:1px solid rgba(131,247,255,0.35);
  border-radius:12px;
  padding:14px 20px;
  font-size:0.85rem;
  color:#fff;
  box-shadow:0 10px 30px rgba(0,0,0,0.5);
  z-index:1001;
  max-width:90%;
  text-align:center;
  transition:transform 0.3s ease, opacity 0.3s ease;
  opacity:0;
}

.friends-notification--show{
  transform:translateX(-50%) translateY(0);
  opacity:1;
}

.friends-notification--error{
  background:linear-gradient(135deg, rgba(200,50,50,0.95), rgba(140,30,30,0.92));
  border-color:rgba(255,100,100,0.45);
}

.friends-notification--success{
  background:linear-gradient(135deg, rgba(68,199,155,0.95), rgba(47,143,107,0.92));
  border-color:rgba(131,247,255,0.45);
}

/* Popup de amigo online (estilo admin) */
.friend-online-popup{
  position:fixed;
  top:20px;
  right:20px;
  background:linear-gradient(135deg, rgba(47,143,107,0.98), rgba(27,84,64,0.95));
  border:2px solid rgba(123,255,190,0.5);
  border-radius:14px;
  padding:18px 20px;
  display:flex;
  align-items:center;
  gap:14px;
  box-shadow:0 15px 40px rgba(0,0,0,0.6);
  z-index:10000;
  max-width:360px;
  transform:translateX(400px);
  opacity:0;
  transition:all 0.3s ease;
}

.friend-online-popup--show{
  transform:translateX(0);
  opacity:1;
}

.friend-online-popup--closing{
  transform:translateX(400px);
  opacity:0;
}

.friend-online-popup__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:48px;
  height:48px;
}

.friend-online-popup__icon .spin-logo{
  width:100%;
  height:auto;
  image-rendering: pixelated;
  animation: ntSpinY 6s linear infinite;
  opacity:0.9;
}

.friend-online-popup__content{
  flex:1;
  display:flex;
  flex-direction:column;
  gap:4px;
}

.friend-online-popup__title{
  font-size:0.92rem;
  font-weight:700;
  color:#7bffbe;
  text-transform:uppercase;
  letter-spacing:0.08em;
}

.friend-online-popup__message{
  font-size:0.88rem;
  color:rgba(255,255,255,0.95);
  line-height:1.3;
}

.friend-online-popup__close{
  background:rgba(255,255,255,0.12);
  border:1px solid rgba(255,255,255,0.22);
  border-radius:50%;
  width:28px;
  height:28px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,0.75);
  font-size:1rem;
  cursor:pointer;
  transition:all 150ms ease;
  padding:0;
}

.friend-online-popup__close:hover{
  background:rgba(255,255,255,0.2);
  color:#fff;
  transform:scale(1.1);
}
