.painel-bg {
  background-image: url("../img/flapbird/birds/background.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.painel-overlay {
  background: rgba(5, 13, 5, 0.55);
}

.card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 1.25rem;
}

.input-field {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.input-field::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.input-field:focus {
  border-color: rgba(74, 222, 128, 0.6);
}

.btn-primary {
  width: 100%;
  border-radius: 9999px;
  background: linear-gradient(to right, #16a34a, #4ade80);
  padding: 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 10px 25px rgba(20, 83, 45, 0.4);
  transition: filter 0.2s;
}

.btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
}

.btn-primary:disabled {
  opacity: 0.6;
}

.nav-center-btn {
  position: relative;
  z-index: 2;
  margin-top: -2rem;
  height: 4rem;
  width: 4rem;
  border-radius: 9999px;
  border: 4px solid #040a04;
  background: linear-gradient(to bottom right, #22c55e, #15803d);
  box-shadow: 0 10px 25px rgba(20, 83, 45, 0.5);
}

.nav-center-btn.active {
  box-shadow: 0 0 0 2px #4ade80, 0 10px 25px rgba(20, 83, 45, 0.5);
}

.recompensa-valor {
  color: #ffea00;
  text-shadow: 0 1px 0 rgba(100, 80, 0, 0.38), 0 0 9px rgba(255, 235, 80, 0.28);
  animation: recompensaPulse 0.9s ease-in-out infinite;
}

@keyframes recompensaPulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes bonusPresetPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(251, 191, 36, 0); }
  50% { transform: scale(1.05); box-shadow: 0 0 14px rgba(251, 191, 36, 0.35); }
}

@keyframes depPremiumGlow {
  0%, 100% {
    border-color: rgba(234, 179, 8, 0.38) !important;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.1);
  }
  50% {
    border-color: rgba(250, 204, 21, 0.9) !important;
    box-shadow: 0 0 22px rgba(251, 191, 36, 0.5), 0 0 8px rgba(255, 214, 0, 0.28);
  }
}

@keyframes depPremiumShine {
  0% { background-position: 220% center; }
  100% { background-position: -120% center; }
}

@keyframes depPremiumSweep {
  0%, 12% { transform: translateX(-130%) skewX(-18deg); opacity: 0; }
  28% { opacity: 1; }
  72% { transform: translateX(230%) skewX(-18deg); opacity: 1; }
  88%, 100% { transform: translateX(230%) skewX(-18deg); opacity: 0; }
}

.bonus-preset {
  animation: bonusPresetPulse 0.95s ease-in-out infinite;
}

.dep-valores-grid {
  padding-top: 0.2rem;
}

.dep-valor-btn {
  overflow: visible;
}

.dep-valor-badge {
  position: absolute;
  top: -0.48rem;
  left: 50%;
  z-index: 10;
  transform: translateX(-50%);
  white-space: nowrap;
  border-radius: 9999px;
  padding: 2px 6px;
  font-size: 7.5px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.dep-preset-premium {
  border-color: rgba(234, 179, 8, 0.45) !important;
  background-color: rgba(255, 255, 255, 0.04) !important;
  background-image: linear-gradient(
    105deg,
    rgba(30, 25, 10, 0.55) 0%,
    rgba(30, 25, 10, 0.55) 40%,
    rgba(255, 220, 110, 0.42) 50%,
    rgba(30, 25, 10, 0.55) 60%,
    rgba(30, 25, 10, 0.55) 100%
  ) !important;
  background-size: 260% 100% !important;
  animation: depPremiumGlow 2.2s ease-in-out infinite, depPremiumShine 3s ease-in-out infinite;
  position: relative;
  isolation: isolate;
}

.dep-preset-premium::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 45%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 240, 170, 0.08),
    rgba(255, 245, 190, 0.55),
    rgba(255, 240, 170, 0.08),
    transparent
  );
  pointer-events: none;
  animation: depPremiumSweep 3s ease-in-out infinite;
}

.map-preview {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.map-preview.active {
  ring: 2px solid #6ee7b7;
  box-shadow: 0 0 22px rgba(52, 211, 153, 0.65);
  outline: 2px solid #6ee7b7;
}

.map-mini {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.status-pill {
  border-radius: 9999px;
  padding: 0.125rem 0.625rem;
  font-size: 10px;
  font-weight: 700;
}

.status-pendente { background: rgba(234, 179, 8, 0.15); color: #fde047; }
.status-aprovado { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.status-rejeitado { background: rgba(239, 68, 68, 0.15); color: #f87171; }

:root {
  --painel-nav-h: 5.5rem;
}

.modal-backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFadeIn 0.2s ease;
}

.modal-sheet {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: none;
  border-radius: 1.25rem 1.25rem 0 0;
  background: linear-gradient(180deg, #141a14 0%, #0d120d 100%);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.5);
  animation: modalSheetIn 0.25s ease;
}

.painel-nav {
  z-index: 70 !important;
}

body.painel-modal-open .painel-nav {
  border-top-color: transparent !important;
}

body.painel-modal-open {
  overflow: hidden;
}

.modal-handle {
  width: 2.5rem;
  height: 0.25rem;
  margin: 0.65rem auto 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.22);
  flex-shrink: 0;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem 0.5rem;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
}

.modal-close {
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.modal-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.25rem 0.85rem 1.25rem 1rem;
  min-height: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(74, 222, 128, 0.45) rgba(255, 255, 255, 0.04);
}

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

.modal-body::-webkit-scrollbar-track {
  margin: 6px 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
}

.modal-body::-webkit-scrollbar-thumb {
  border-radius: 9999px;
  background: linear-gradient(180deg, rgba(134, 239, 172, 0.55), rgba(34, 197, 94, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.15);
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(134, 239, 172, 0.75), rgba(34, 197, 94, 0.55));
}

.modal-body::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, rgba(187, 247, 208, 0.85), rgba(34, 197, 94, 0.65));
}

.modal-body::-webkit-scrollbar-button,
.modal-body::-webkit-scrollbar-corner {
  display: none;
  width: 0;
  height: 0;
}

.modal-body .card:first-child {
  margin-top: 0;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSheetIn {
  from { transform: translateY(100%); opacity: 0.6; }
  to { transform: translateY(0); opacity: 1; }
}
