/* css/hud.css - HUD, Pins Interativos, Modais e Gavetas */

/* HUD Superior Global */
.game-hud {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: calc(10px + env(safe-area-inset-top, 0px));
  padding-right: calc(12px + env(safe-area-inset-right, 0px));
  padding-bottom: 10px;
  padding-left: calc(12px + env(safe-area-inset-left, 0px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  pointer-events: none;
}

.hud-left,
.hud-right {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
}

.hud-badge {
  background: rgba(14, 20, 30, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.hud-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.hud-icon.gold {
  background: radial-gradient(circle, rgba(245, 176, 65, 0.35) 0%, rgba(211, 84, 0, 0.12) 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(245, 176, 65, 0.45);
  padding: 1px;
}

.hud-icon.gold .hud-coin-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  animation: pulse-coin 4s ease-in-out infinite;
}

@keyframes pulse-coin {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.coin-icon-inline {
  width: 14px;
  height: 14px;
  object-fit: contain;
  vertical-align: -2px;
  display: inline-block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.hud-icon.rep {
  background: radial-gradient(circle, rgba(231, 76, 60, 0.4) 0%, rgba(192, 57, 43, 0.15) 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.45);
  padding: 1px;
}

.hud-icon.rep .hud-rep-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  animation: pulse-rep 4s ease-in-out infinite;
}

@keyframes pulse-rep {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.hud-icon.ranking {
  background: radial-gradient(circle, rgba(155, 89, 182, 0.4) 0%, rgba(108, 92, 231, 0.15) 70%, transparent 100%);
  box-shadow: 0 0 10px rgba(155, 89, 182, 0.45);
  padding: 1px;
}

.hud-icon.ranking .hud-ranking-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
  animation: pulse-ranking 4s ease-in-out infinite;
}

@keyframes pulse-ranking {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.hud-badge-interactive {
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.hud-badge-interactive:hover {
  transform: translateY(-1px) scale(1.03);
  background: rgba(255, 255, 255, 0.12);
}

.hud-badge-interactive:active {
  transform: translateY(1px) scale(0.98);
}

.rep-icon-inline {
  width: 15px;
  height: 15px;
  object-fit: contain;
  vertical-align: -2.5px;
  display: inline-block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.ranking-icon-inline {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: -3px;
  display: inline-block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.hud-text-box {
  display: flex;
  flex-direction: column;
}

.hud-value {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.hud-label {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: lowercase;
}

.hud-pill-location {
  position: absolute;
  top: calc(54px + env(safe-area-inset-top, 0px));
  left: calc(12px + env(safe-area-inset-left, 0px));
  background: rgba(14, 20, 30, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 15;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

.btn-hud-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(14, 20, 30, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  font-size: 15px;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.btn-hud-circle:active {
  transform: scale(0.92);
}

.btn-workshop-status-toggle {
  background: rgba(14, 20, 30, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 5px 9px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-workshop-status-toggle:active {
  transform: scale(0.95);
}

.btn-workshop-status-toggle.is-paused {
  background: rgba(230, 126, 34, 0.28);
  border-color: rgba(230, 126, 34, 0.7);
  color: #f39c12;
}

/* ==================== TELA INICIAL: AUTH GATE ==================== */
.auth-gate-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 25%, rgba(30, 41, 59, 0.98) 0%, rgba(10, 14, 23, 0.99) 80%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 20px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.auth-gate-card {
  width: 100%;
  max-width: 360px;
  background: rgba(18, 24, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 206, 201, 0.12);
  display: flex;
  flex-direction: column;
}

.auth-gate-logo {
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-gate-logo-img {
  max-width: 250px;
  width: 90%;
  height: auto;
  object-fit: contain;
  margin-bottom: 6px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.7));
  animation: float-logo 3.5s ease-in-out infinite;
}

.auth-gate-icon {
  font-size: 46px;
  margin-bottom: 6px;
  display: inline-block;
  animation: float-logo 3s ease-in-out infinite;
}

@keyframes float-logo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.auth-gate-title {
  font-size: 22px;
  font-weight: 800;
  background: linear-gradient(135deg, #ff7675, #f5b041, #00cec9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.auth-gate-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.auth-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
}

.auth-tab-btn {
  flex: 1;
  padding: 9px 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: var(--accent-teal);
  color: #000;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(0, 206, 201, 0.35);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
  text-align: left;
}

.auth-field label {
  font-size: 11px;
  font-weight: 700;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.auth-field input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-field input:focus {
  outline: none;
  border-color: var(--accent-teal);
  box-shadow: 0 0 12px rgba(0, 206, 201, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.auth-feedback-msg {
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.auth-feedback-msg.error {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.6);
  color: #ff7675;
}

.auth-feedback-msg.success {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.6);
  color: #2ecc71;
}

.auth-submit-btn {
  background: linear-gradient(135deg, #00cec9, #0984e3) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 800 !important;
  border-radius: 14px !important;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 206, 201, 0.35) !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.auth-submit-btn:active {
  transform: scale(0.97);
}

.status-dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px #2ecc71;
}

.btn-workshop-status-toggle.is-paused .status-dot-indicator {
  background: #e67e22;
  box-shadow: 0 0 8px #e67e22;
}

.pause-banner-overlay {
  position: absolute;
  top: calc(98px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  background: rgba(230, 126, 34, 0.95);
  color: #fff;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  z-index: 25;
  display: none;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  animation: pulse-pause 1.8s infinite;
}

@keyframes pulse-pause {

  0%,
  100% {
    opacity: 0.92;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.04);
  }
}

/* Pins Interativos do Mapa */
.map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 8;
  transform: translate(-50%, -50%);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.map-pin:hover,
.map-pin:active {
  transform: translate(-50%, -55%) scale(1.08);
}

.pin-bubble {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.pin-inner-icon {
  transform: rotate(45deg);
  font-size: 20px;
  color: #fff;
}

.pin-label {
  margin-top: 6px;
  background: rgba(8, 12, 18, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

/* Cores dos Pins */
.pin-coral .pin-bubble {
  background: linear-gradient(135deg, #ff6b6b, #ee5253);
}

.pin-purple .pin-bubble {
  background: linear-gradient(135deg, #a29bfe, #6c5ce7);
}

.pin-blue .pin-bubble {
  background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.pin-teal .pin-bubble {
  background: linear-gradient(135deg, #55efc4, #00cec9);
}

.pin-gold .pin-bubble {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

/* Badge de Notificação no Pin */
.pin-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  transform: rotate(45deg);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ff3838;
  border: 2px solid #fff;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  animation: bounce-badge 2s infinite;
}

@keyframes bounce-badge {

  0%,
  100% {
    transform: rotate(45deg) scale(1);
  }

  50% {
    transform: rotate(45deg) scale(1.18);
  }
}

/* Posicionamentos dos Pins */
/* Cena 1: Rua */
.street-company-building {
  display: none !important;
  position: absolute;
  top: 40%;
  left: 21%;
  width: 175px;
  height: 175px;
  transform: translate(-50%, -60%);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  z-index: 3;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.65));
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  animation: companyFadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.street-company-building:hover {
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.8)) brightness(1.06);
}

.street-company-building:active {
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.65)) brightness(0.95);
}

@keyframes companyFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -45%) scale(0.8);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -60%) scale(1);
  }
}

#pin-printfarm {
  top: 33%;
  left: 19%;
  transition: top 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#pin-printfarm.company-active {
  top: 21%;
}

#pin-workshop {
  top: 41%;
  left: 59%;
}

#pin-tech-market {
  top: 45%;
  left: 79%;
}

#pin-ranking,
#pin-social-plaza {
  top: 73%;
  left: 25%;
}

#pin-to-city {
  top: 88%;
  left: 67%;
}

/* Cena 2: Cidade */
#pin-printers-shop {
  top: 26%;
  left: 48%;
}

#pin-filaments-shop {
  top: 49%;
  left: 47%;
}

#pin-open-shop {
  top: 40%;
  left: 70%;
}

#pin-to-home {
  top: 85%;
  left: 14%;
}

/* Modais de Overlay */
.game-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 9, 14, 0.85);
  backdrop-filter: blur(8px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0s ease 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: env(safe-area-inset-top, 0px);
}

.game-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.25s ease, visibility 0s ease 0s;
}

.modal-sheet {
  background: #121824;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 28px 28px 0 0;
  padding: 20px 18px calc(28px + env(safe-area-inset-bottom, 0px));
  width: 100%;
  max-height: calc(88% - env(safe-area-inset-top, 0px));
  overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.game-modal.active .modal-sheet {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Modal Detalhe da Impressora 3D */
.printer-detail-card {
  background: rgba(24, 32, 46, 0.9);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 16px;
}

.printer-visual-frame {
  width: 100%;
  height: 200px;
  background-color: rgba(12, 17, 26, 0.95);
  background-image: url('../assets/images/impressoras/Koa-Spark-Mini.png');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-image 0.25s ease;
}

.printer-active-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal);
}

.printer-specs-row {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

.printer-specs-row strong {
  color: #fff;
}

/* Lista de Produtos para Selecionar na Impressora */
/* Barra de Filtro de Cores no Modal de Impressão */
.color-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 8px 2px;
  margin-bottom: 8px;
  scrollbar-width: none;
}

.color-filter-bar::-webkit-scrollbar {
  display: none;
}

.color-filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.color-filter-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.color-filter-chip:active {
  transform: scale(0.95);
}

.color-filter-chip.active {
  background: rgba(0, 206, 201, 0.25);
  border-color: var(--accent-teal);
  color: #00cec9;
  box-shadow: 0 0 12px rgba(0, 206, 201, 0.4);
  transform: scale(1.04);
}

.color-dot-filter {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
  position: relative;
}

.color-dot-filter.has-order::after {
  content: '★';
  position: absolute;
  top: -7px;
  right: -7px;
  font-size: 10px;
  color: #ffd700;
  text-shadow: 0 0 4px #000;
}

.prod-badge-active-order {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(245, 176, 65, 0.35), rgba(211, 84, 0, 0.35));
  border: 1px solid #f5b041;
  color: #f5b041;
  border-radius: 8px;
  padding: 2px 6px;
  margin-top: 4px;
}

.product-select-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 6px;
}

.product-option-card {
  background: rgba(24, 32, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

.product-option-card:hover,
.product-option-card:active {
  border-color: var(--accent-teal);
  transform: translateY(-2px);
}

.prod-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prod-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  position: relative;
}

.prod-color-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #18202e;
}

.prod-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.prod-meta {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.prod-action {
  text-align: right;
}

.btn-start-print {
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-teal-dark));
  border: none;
  color: #000;
  font-weight: 800;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 20px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 206, 201, 0.3);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-start-print:active {
  transform: scale(0.95);
  filter: brightness(1.1);
}

.btn-start-print:disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Loja de Filamentos (1 kg = 1000g) */
.filaments-shop-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filament-item {
  background: rgba(24, 32, 46, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fil-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fil-color-sample {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.fil-details {
  display: flex;
  flex-direction: column;
}

.fil-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.fil-stock {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.fil-stock strong {
  color: var(--gold);
}

.btn-buy-filament {
  background: linear-gradient(135deg, #f5b041, #d35400);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(211, 84, 0, 0.4);
}

.btn-buy-filament:disabled {
  background: #334155;
  color: #64748b;
  cursor: not-allowed;
  box-shadow: none;
}

/* Ranking Table */
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.ranking-table th {
  text-align: left;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ranking-table td {
  padding: 10px;
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rank-pos {
  font-weight: 800;
  color: var(--gold);
  min-width: 48px;
  white-space: nowrap;
}

.rank-name {
  color: #fff;
  font-weight: 700;
}

.rank-tag {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.2);
  color: #a29bfe;
  margin-left: 6px;
}

.rank-rep {
  font-weight: 700;
  color: var(--primary-coral);
  text-align: right;
}

.rank-score {
  font-weight: 800;
  text-align: right;
}

.my-ranking-row {
  background: rgba(108, 92, 231, 0.15) !important;
  border-left: 3px solid #6c5ce7;
}

.ranking-player-banner {
  margin-bottom: 10px;
}

.ranking-my-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(241, 196, 15, 0.4);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.ranking-my-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ranking-my-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}

.ranking-my-score {
  font-size: 13px;
  font-weight: 700;
  color: #f1c40f;
}

.ranking-my-score strong {
  font-size: 15px;
  font-weight: 900;
}

.ranking-my-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.ranking-my-badges .badge-item {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.ranking-my-badges .badge-item.badge-rep-zero {
  background: rgba(231, 76, 60, 0.2);
  border-color: rgba(231, 76, 60, 0.5);
  color: #ff7675;
}

.ranking-score-explainer {
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.35;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

/* ==================== ESTOQUE VISUAL DE CARRETÉIS DE FILAMENTO ==================== */
.btn-workshop-shelf {
  background: rgba(24, 32, 46, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  margin: 6px auto 0;
}

.btn-workshop-shelf:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.2);
}

.spools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.spool-card {
  background: rgba(20, 26, 38, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.spool-composite-box {
  width: 96px;
  height: 101px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
}

.spool-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.spool-layer-back {
  z-index: 1;
}

.spool-layer-filament {
  z-index: 2;
  transition: filter 0.25s ease;
}

.spool-layer-front {
  z-index: 3;
}

.spool-pct-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  padding: 2px 6px;
}

.spool-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.spool-weight {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin-top: 2px;
}

.spool-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}

.spool-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s ease;
}

/* ==================== TIERS E UPGRADES DE IMPRESSORAS ==================== */
.printer-tier-card {
  background: rgba(22, 28, 40, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 12px;
}

.printer-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.printer-tier-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.printer-tier-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(0, 206, 201, 0.2);
  color: var(--accent-teal);
  border: 1px solid var(--accent-teal);
}

.printer-tier-desc {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.printer-tier-body {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}

.printer-tier-thumb {
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: var(--radius-sm);
  background-color: rgba(10, 14, 22, 0.85);
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px;
}

.printer-tier-info {
  flex: 1;
}

.printer-tier-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==================== BAÚ MAKER & DROPS DA OFICINA ==================== */
.workshop-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.btn-workshop-shelf.btn-maker-shelf {
  background: rgba(142, 68, 173, 0.28);
  border-color: rgba(155, 89, 182, 0.6);
  color: #e0b0ff;
}

.btn-workshop-shelf.btn-maker-shelf:active {
  background: rgba(142, 68, 173, 0.45);
}

.badge-maker-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 10px;
  background: #9b59b6;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  margin-left: 4px;
}

.maker-summary-pill {
  background: rgba(155, 89, 182, 0.15);
  border: 1px solid rgba(155, 89, 182, 0.4);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 13px;
  margin-bottom: 12px;
}

.maker-drops-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.maker-drop-card {
  background: rgba(20, 26, 38, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.maker-drop-card.is-locked {
  opacity: 0.48;
  filter: grayscale(0.6);
}

.maker-drop-card.is-owned {
  background: rgba(24, 32, 48, 0.96);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.maker-drop-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.maker-drop-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  overflow: hidden;
  box-sizing: border-box;
}

.maker-drop-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.maker-drop-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.maker-drop-rarity {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.maker-drop-count {
  font-size: 12px;
  font-weight: 800;
  color: #a0aec0;
}

.maker-drop-count.has-qty {
  color: #2ecc71;
  font-size: 13px;
}

.maker-drop-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.3;
}

.maker-drop-desc {
  font-size: 10px;
  color: #a0aec0;
  line-height: 1.35;
  margin-bottom: 8px;
}

.btn-use-maker-drop {
  margin-top: auto;
  background: linear-gradient(135deg, #0984e3, #6c5ce7);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.btn-use-maker-drop:active {
  transform: scale(0.96);
  filter: brightness(1.15);
}

.active-buffs-panel {
  background: rgba(108, 92, 231, 0.15);
  border: 1px solid rgba(108, 92, 231, 0.45);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.active-buffs-title {
  font-size: 11px;
  font-weight: 800;
  color: #a29bfe;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.active-buffs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-buff-chip {
  background: rgba(20, 26, 38, 0.9);
  border: 1px solid rgba(155, 89, 182, 0.5);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 11px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Barra Flutuante de Buffs e Itens Ativos na Oficina */
.active-buffs-floating-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 0 4px;
  width: 100%;
  animation: fadeIn 0.3s ease;
}

.active-buffs-floating-bar .active-buff-chip {
  padding: 3px 8px;
  border-radius: 20px;
  gap: 5px;
  height: 26px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.active-buffs-floating-bar .active-buff-chip:active {
  transform: scale(0.92);
}

.active-buffs-floating-bar .buff-chip-icon {
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active-buffs-floating-bar .buff-chip-icon img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.active-buffs-floating-bar .buff-chip-uses {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  color: #2ecc71;
  line-height: 1.2;
  letter-spacing: 0.3px;
}

.active-buff-chip.glow-buff {
  background: linear-gradient(135deg, rgba(142, 68, 173, 0.5), rgba(41, 128, 185, 0.45));
  border: 1px solid rgba(162, 155, 254, 0.7);
  box-shadow: 0 2px 10px rgba(155, 89, 182, 0.35);
}

.active-buff-chip.glow-buff:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 14px rgba(155, 89, 182, 0.55);
  filter: brightness(1.2);
}

.active-buff-chip.glow-staff-brenda {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.5), rgba(230, 126, 34, 0.45));
  border: 1px solid rgba(243, 156, 18, 0.85);
  box-shadow: 0 2px 10px rgba(243, 156, 18, 0.35);
}

.active-buff-chip.glow-staff-brenda:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 14px rgba(243, 156, 18, 0.55);
  filter: brightness(1.2);
}

.active-buff-chip.glow-staff-andy {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.5), rgba(39, 174, 96, 0.45));
  border: 1px solid rgba(46, 204, 113, 0.85);
  box-shadow: 0 2px 10px rgba(46, 204, 113, 0.35);
}

.active-buff-chip.glow-staff-andy:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 14px rgba(46, 204, 113, 0.55);
  filter: brightness(1.2);
}

.buff-chip-icon {
  font-size: 13px;
}

.buff-chip-text {
  font-weight: 700;
  font-size: 11px;
  color: #fff;
}

.buff-chip-uses {
  background: rgba(0, 0, 0, 0.45);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
  color: #2ecc71;
}

/* ==================== SISTEMA DE LOGIN / CADASTRO ==================== */
.btn-hud-auth {
  background: rgba(14, 20, 30, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.btn-hud-auth:active {
  transform: scale(0.95);
}

.btn-hud-auth.is-logged {
  border-color: rgba(46, 204, 113, 0.6);
  color: #2ecc71;
}

.auth-tabs {
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 16px;
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #a0aec0;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  background: linear-gradient(135deg, #0984e3, #6c5ce7);
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
  text-align: left;
}

.auth-field label {
  font-size: 12px;
  font-weight: 700;
  color: #e2e8f0;
}

.auth-field input {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.auth-field input:focus {
  border-color: #0984e3;
  box-shadow: 0 0 0 2px rgba(9, 132, 227, 0.25);
}

.auth-feedback-msg {
  display: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.auth-feedback-msg.error {
  display: block;
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.5);
  color: #ff7675;
}

.auth-feedback-msg.success {
  display: block;
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.5);
  color: #2ecc71;
}

.auth-submit-btn {
  width: 100%;
  justify-content: center;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 800;
  background: linear-gradient(135deg, #0984e3, #6c5ce7);
}

.auth-help-text {
  font-size: 11px;
  color: #a0aec0;
  line-height: 1.45;
  margin-top: 14px;
  text-align: center;
}

/* ==================== ESTILOS DA EQUIPE MAKER ==================== */
.btn-staff-shelf {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(230, 126, 34, 0.3));
  border: 1px solid rgba(243, 156, 18, 0.5);
  color: #f39c12;
}

.btn-company-shelf {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.35));
  border: 1px solid rgba(52, 152, 219, 0.5);
  color: #3498db;
}

.btn-company-shelf:hover {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.35), rgba(41, 128, 185, 0.5));
}

.btn-staff-shelf:hover {
  background: linear-gradient(135deg, rgba(243, 156, 18, 0.35), rgba(230, 126, 34, 0.45));
}

.badge-staff-count {
  background: #e67e22;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
}

/* Grid de Membros da Equipe */
.staff-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 10px;
}

.staff-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left-width: 4px;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.staff-card.is-active-member {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}

.staff-card-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.staff-avatar {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  position: relative;
}

.staff-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.staff-info {
  flex: 1;
  min-width: 0;
}

.staff-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.staff-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.staff-role-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.staff-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold, #f1c40f);
  margin-bottom: 4px;
}

.staff-desc {
  font-size: 11px;
  color: #a0aec0;
  line-height: 1.4;
  margin: 0;
}

/* Status Badges */
.staff-status-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.staff-status-badge.active {
  background: rgba(46, 204, 113, 0.15);
  border-color: rgba(46, 204, 113, 0.4);
  color: #2ecc71;
  font-weight: 700;
}

.badge-prints-tag {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
}

/* Select de Impressora */
.staff-printer-select-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.staff-select-label {
  font-size: 11px;
  font-weight: 700;
  color: #e2e8f0;
}

.staff-select-input {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  outline: none;
}

.staff-select-input:focus {
  border-color: #0984e3;
}

.staff-select-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Pacotes de Contratação */
.staff-action-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.staff-packages-title {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.staff-packages-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-staff-package {
  flex: 1;
  min-width: 90px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-staff-package:hover:not(.disabled) {
  background: linear-gradient(135deg, rgba(9, 132, 227, 0.3), rgba(108, 92, 231, 0.3));
  border-color: #0984e3;
  transform: translateY(-2px);
}

.btn-staff-package.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.package-prints {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.package-cost {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold, #ffd700);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

/* Barra de Resumo de Operadores Dinâmicos */
.staff-operator-summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 11px;
  margin-bottom: 8px;
}

.staff-summary-count {
  color: #e2e8f0;
}

.staff-summary-pricing {
  color: #94a3b8;
  font-weight: 600;
}

.staff-summary-pricing.is-dynamic {
  color: #f39c12;
  font-weight: 800;
}

/* Container dos 3 Slots de Operadores */
.staff-automation-slots-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.staff-operator-slot-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.staff-operator-slot-card.slot-active {
  background: rgba(46, 204, 113, 0.06);
  border-color: rgba(46, 204, 113, 0.3);
}

.staff-operator-slot-card.slot-available {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.slot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slot-name-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
}

.slot-name-badge img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.slot-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.slot-status-pill.status-active {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.slot-status-pill.status-available {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Informações do Slot Ativo */
.slot-active-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

.slot-info-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.slot-info-label {
  color: #94a3b8;
}

.slot-printer-highlight {
  color: #00cec9;
}

.slot-prints-highlight {
  color: #f1c40f;
}

.slot-completed-tag {
  color: #64748b;
  font-size: 10px;
}

.slot-lock-indicator {
  font-size: 10.5px;
  color: #e67e22;
  background: rgba(230, 126, 34, 0.1);
  border: 1px dashed rgba(230, 126, 34, 0.35);
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.3;
}

/* Formulário do Slot Disponível */
.slot-available-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.staff-slot-packages-wrap {
  display: flex;
  gap: 6px;
}

.package-dyn-pill {
  font-size: 9px;
  font-weight: 800;
  background: rgba(243, 156, 18, 0.3);
  color: #f39c12;
  border: 1px solid rgba(243, 156, 18, 0.5);
  border-radius: 4px;
  padding: 1px 4px;
}

.slot-no-printers-warning {
  font-size: 10.5px;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.25);
  border-radius: 6px;
  padding: 4px 8px;
  font-weight: 600;
}


/* Badge no Card de Impressora na Bancada */
.printer-helper-slot {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 3px 0 2px 0;
  min-height: 0;
}

.printer-helper-slot:empty {
  display: none;
}

.printer-helper-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.2px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  animation: helper-pulse 2.2s infinite ease-in-out;
}

.printer-helper-badge img,
.printer-helper-badge .badge-helper-img {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

@keyframes helper-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.03);
  }
}

.printer-helper-badge.helper-noah {
  background: linear-gradient(135deg, rgba(41, 128, 185, 0.45), rgba(52, 152, 219, 0.6));
  border: 1.5px solid #3498db;
  color: #dff9fb;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.printer-helper-badge.helper-zoe {
  background: linear-gradient(135deg, rgba(232, 67, 147, 0.45), rgba(253, 121, 168, 0.6));
  border: 1.5px solid #fd79a8;
  color: #fff0f5;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Chip flutuante desativado a pedido do jogador (nome e contagem mantidos no badge abaixo da foto) */
.printer-thumb-helper-chip {
  display: none !important;
}

/* Banner de Operador no Modal de Detalhe da Impressora */
.printer-modal-helper-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.printer-modal-helper-banner img,
.printer-modal-helper-banner .banner-helper-img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.printer-modal-helper-banner.helper-noah {
  background: rgba(52, 152, 219, 0.2);
  border: 1px solid rgba(52, 152, 219, 0.6);
  color: #74b9ff;
}

.printer-modal-helper-banner.helper-zoe {
  background: rgba(253, 121, 168, 0.2);
  border: 1px solid rgba(253, 121, 168, 0.6);
  color: #fd79a8;
}

/* ==========================================================================
   7. MODAL DE CELEBRAÇÃO & CONQUISTAS (Subiu de Nível, Loja, Empresa)
   ========================================================================== */
.celebration-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.celebration-overlay.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.celebration-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.88) 0%, rgba(5, 8, 16, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.celebration-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 370px;
  background: linear-gradient(180deg, rgba(22, 32, 50, 0.96) 0%, rgba(12, 17, 28, 0.98) 100%);
  border: 2px solid rgba(255, 215, 0, 0.45);
  border-radius: 28px;
  padding: 22px 18px 24px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 45px rgba(255, 215, 0, 0.25);
  transform: scale(0.7) translateY(40px);
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.celebration-overlay.active .celebration-card {
  transform: scale(1) translateY(0);
}

.celebration-rays {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.18) 0%, rgba(255, 215, 0, 0) 70%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 1;
  animation: rotate-rays 14s linear infinite;
}

@keyframes rotate-rays {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.celebration-banner-wrap {
  position: relative;
  z-index: 2;
  margin-top: -6px;
  margin-bottom: 10px;
}

.celebration-banner-img {
  max-width: 250px;
  width: 85%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.75));
  animation: celebration-bounce 3s ease-in-out infinite;
}

@keyframes celebration-bounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-6px) scale(1.03);
  }
}

.celebration-content {
  position: relative;
  z-index: 2;
}

.celebration-badge {
  display: inline-block;
  background: linear-gradient(90deg, #f39c12, #f1c40f);
  color: #111;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 15px rgba(241, 196, 15, 0.4);
  margin-bottom: 8px;
}

.celebration-title {
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.25;
}

.celebration-desc {
  font-size: 12px;
  color: #a0aec0;
  line-height: 1.4;
  margin-bottom: 14px;
}

.celebration-perks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
  text-align: left;
}

.celebration-perk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 8px 12px;
}

.celebration-perk-icon {
  font-size: 22px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celebration-perk-icon img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.celebration-perk-info strong {
  display: block;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.celebration-perk-info span {
  display: block;
  color: #a0aec0;
  font-size: 11px;
}

.celebration-btn {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #f1c40f, #e67e22);
  color: #111;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.5);
  transition: all 0.2s ease;
}

.celebration-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(230, 126, 34, 0.7);
}

/* ==================== PILAR 1 & 2: SELETOR DE DESTINO & ESTOQUE ==================== */
.print-destination-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.btn-print-destination {
  flex: 1;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #a0aec0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-print-destination.active {
  background: linear-gradient(135deg, #0984e3, #00cec9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px rgba(9, 132, 227, 0.4);
}

.stock-shelves-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.stock-shelf-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.stock-shelf-qty {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #2ecc71;
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

.stock-shelf-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 6px;
}

.stock-shelf-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stock-shelf-price {
  font-size: 11px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 8px;
}

.btn-stock-sell {
  width: 100%;
  padding: 6px;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* ==================== PILAR 4: JORNAL TECNOLÓGICO & MARKETPLACE P2P ==================== */
.market-tabs-row {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 12px;
}

.market-tab-btn {
  flex: 1;
  padding: 8px 6px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #a0aec0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.market-tab-btn.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.market-feed-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 58vh;
  overflow-y: auto;
  padding-right: 4px;
}

.market-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  transition: transform 0.15s ease;
}

.market-card:active {
  transform: scale(0.99);
}

.market-card-thumb {
  width: 52px;
  height: 52px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.market-card-info {
  flex: 1;
  min-width: 0;
}

.market-card-title {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.market-card-seller {
  color: #a0aec0;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.market-card-price {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  margin-top: 4px;
}

.market-buy-btn {
  padding: 8px 14px;
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
  transition: all 0.2s ease;
}

.market-buy-btn:active {
  transform: scale(0.95);
}

/* ==================== PILAR 5: PRAÇA SOCIAL & REAÇÕES SEGURAS ==================== */
.plaza-banner-wrap {
  width: 100%;
  height: 120px;
  border-radius: 14px;
  background: url('../assets/images/bg-game/fonte.webp') center/cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.plaza-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.plaza-banner-text {
  font-size: 12px;
  color: #e0e6ed;
}

.plaza-makers-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 4px;
}

.plaza-maker-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plaza-maker-info strong {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.plaza-maker-info span {
  display: block;
  color: #a0aec0;
  font-size: 11px;
}

.plaza-actions-col {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-plaza-fav {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 14px;
  cursor: pointer;
  color: #a0aec0;
}

.btn-plaza-fav.active {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-plaza-interact {
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  border: none;
  border-radius: 8px;
  padding: 6px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.plaza-reactions-drawer {
  background: rgba(18, 24, 38, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
}

.reactions-palette-row {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.reaction-bubble-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 8px;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.reaction-bubble-btn:active,
.reaction-bubble-btn.selected {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--gold);
}

.phrases-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.phrase-select-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 7px 10px;
  color: #e2e8f0;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.phrase-select-btn:active {
  background: rgba(108, 92, 231, 0.3);
}

/* ==================== PILAR 6: P&D (ÁREA DE ESTUDOS NA CASA) ==================== */
.research-trails-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 4px;
}

.research-trail-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
}

.research-trail-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.research-project-item {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.research-project-title {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.research-project-desc {
  font-size: 11px;
  color: #a0aec0;
  margin: 4px 0 6px 0;
  line-height: 1.3;
}

.research-project-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.research-badge-done {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 700;
}

.research-start-btn {
  background: linear-gradient(135deg, #0984e3, #6c5ce7);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.research-start-btn:active {
  transform: scale(0.96);
}

/* ==================== ABAS & GESTÃO DA LOJA COMERCIAL NA CIDADE ==================== */
.shop-tabs-row {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.4);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow-x: auto;
}

.shop-tab-btn {
  flex: 1;
  min-width: 75px;
  padding: 8px 4px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #a0aec0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
}

.shop-tab-btn.active {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.shop-tab-badge {
  background: #e67e22;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 8px;
}

.shop-orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 52vh;
  overflow-y: auto;
  padding-right: 2px;
}

.shop-order-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.2s ease;
}

.shop-order-card.in-stock {
  border-color: rgba(46, 204, 113, 0.4);
  background: rgba(46, 204, 113, 0.05);
}

.shop-order-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shop-order-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shop-order-main {
  flex: 1;
  min-width: 0;
}

.shop-order-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.shop-order-sub {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
}

.shop-order-reward {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  text-align: right;
  flex-shrink: 0;
}

.btn-shop-order-deliver {
  width: 100%;
  padding: 8px;
  background: linear-gradient(135deg, #00b894, #0984e3);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0, 184, 148, 0.35);
  transition: all 0.2s ease;
}

.btn-shop-order-deliver:active {
  transform: scale(0.98);
}

.shop-order-stock-tag {
  font-size: 9px;
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 5px;
  border-radius: 6px;
  color: #dff9fb;
}

.shop-order-no-stock {
  width: 100%;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #e74c3c;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

/* ==================== EXPEDIÇÃO DA FÁBRICA / EMPRESA ==================== */
.orders-list.layout-factory-expedition,
.layout-factory-expedition {
  display: block !important;
  max-height: none !important;
  padding: 2px 0 4px !important;
  overflow: visible !important;
}

.factory-expedition-card {
  width: 100%;
  box-sizing: border-box;
  background: rgba(18, 24, 34, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 8px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.factory-expedition-info {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.factory-expedition-icon {
  font-size: 22px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(0, 206, 201, 0.12);
  border: 1px solid rgba(0, 206, 201, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.factory-expedition-details {
  flex: 1;
  min-width: 0;
}

.factory-expedition-title {
  font-size: 12px;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.2;
}

.factory-stock-badge {
  font-size: 10.5px;
  font-weight: 800;
  color: #00cec9;
  background: rgba(0, 206, 201, 0.12);
  border: 1px solid rgba(0, 206, 201, 0.3);
  padding: 1px 7px;
  border-radius: 8px;
  white-space: nowrap;
}

.factory-expedition-desc {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 3px;
  line-height: 1.35;
  white-space: normal;
  word-break: break-word;
}

.factory-expedition-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.btn-factory-action {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 8px 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-sizing: border-box;
}

.btn-factory-action:active {
  transform: scale(0.96);
}

.btn-factory-queue {
  background: linear-gradient(135deg, #6c5ce7, #5f27cd);
}

.btn-factory-queue:hover {
  box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.btn-factory-go-shop {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.btn-factory-go-shop:hover {
  box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
}

/* ==========================================================================
   Fila de Produção Planejada (Ordem de Produção / Planejamento Fabril)
   ========================================================================== */
#modal-production-queue .modal-sheet {
  max-width: 520px;
}

.prod-queue-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  transition: all 0.2s ease;
}

.prod-queue-card.completed {
  border-color: rgba(46, 204, 113, 0.35);
  background: rgba(46, 204, 113, 0.05);
}

.prod-queue-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 4px;
}

.prod-queue-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6c5ce7, #a29bfe);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.prod-queue-progress-fill.completed {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
}