@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
  background: radial-gradient(circle at top left, #1a1f3a 0%, #0d1117 50%, #050713 100%);
  color: #ffffff;
}

#control-panel {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Permite rolagem no conteúdo principal */
.control-main {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 8px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

/* ==================== LAYOUT DE SORTEIOS ==================== */
.raffle-layout-container {
  display: grid;
  grid-template-columns: 420px 1fr 420px;
  gap: 16px;
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  align-items: start;
}

.raffle-layout-container > * {
  align-self: start;
  padding-top: 0;
  margin-top: 0;
}

.raffle-left-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  align-items: stretch;
  padding-top: 0;
  margin-top: 0;
}

.raffle-center-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
  padding-top: 0;
  margin-top: 0;
}

.raffle-right-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 12px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  align-items: stretch;
  padding-top: 0;
  margin-top: 0;
}

.raffle-left-column::-webkit-scrollbar,
.raffle-right-column::-webkit-scrollbar {
  width: 8px;
}

.raffle-left-column::-webkit-scrollbar-track,
.raffle-right-column::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.raffle-left-column::-webkit-scrollbar-thumb,
.raffle-right-column::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, 
    rgba(139, 92, 246, 0.6) 0%,
    rgba(124, 58, 237, 0.6) 100%);
  border-radius: 4px;
}

.raffle-left-column::-webkit-scrollbar-thumb:hover,
.raffle-right-column::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, 
    rgba(139, 92, 246, 0.8) 0%,
    rgba(124, 58, 237, 0.8) 100%);
}

.raffle-left-column .control-card,
.raffle-center-column .control-card,
.raffle-right-column .control-card {
  flex-shrink: 0;
}

#raffle-participants-card {
  flex: 1;
  min-height: 820px;
  display: flex;
  flex-direction: column;
}

#raffle-participants-card .control-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Status Info Grid */
.status-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.status-info-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  width: 100%;
}

.status-info-value {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  width: 100%;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Badge */
.badge {
  background: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

/* Wrapper para cards de sorteio */
.raffle-cards-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.raffle-main-card {
  width: 100%;
}

/* Card de Prêmios do Sorteio - Fixo no canto esquerdo */
.raffle-prizes-card-fixed {
  position: fixed;
  left: 12px;
  top: 70px; /* Abaixo do header */
  width: 320px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  background: rgba(10, 14, 32, 0.95);
  backdrop-filter: blur(10px);
}

/* Container de Abas da Fila - Fixo no canto esquerdo */
.queue-tabs-container-fixed {
  position: fixed;
  left: 12px;
  top: 70px; /* Começa logo abaixo do header */
  width: 320px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 20px;
}

.queue-tab {
  background: rgba(10, 14, 32, 0.95);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.queue-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(4, 7, 24, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.queue-tab-title {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.queue-tab-remove {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 4px;
  color: #ff5050;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 12px;
  transition: all 0.2s;
}

.queue-tab-remove:hover {
  background: rgba(255, 80, 80, 0.2);
  border-color: rgba(255, 80, 80, 0.5);
}

.queue-tab-content {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.queue-tab-prize-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.queue-prize-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.queue-prize-name {
  flex: 1;
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-prize-type {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .queue-tabs-container-fixed {
    width: 280px;
    left: 8px;
    top: 65px;
    max-height: calc(100vh - 85px);
  }
}

/* Card de Participantes - Agora na coluna direita */
#raffle-participants-card .participants-list {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  min-height: 730px;
}

/* Item de participante */
.participant-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
  gap: 10px;
}

.participant-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(4px);
}


.participant-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.participant-badges {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.participant-badge {
  font-size: 9px;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1.5px solid;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.participant-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 10px;
  z-index: 1;
}

.participant-badge:hover::before {
  opacity: 1;
}

.participant-badge-sub {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
  color: #ffffff;
  border-color: #a78bfa;
  box-shadow: 
    0 0 4px rgba(139, 92, 246, 0.4),
    0 0 8px rgba(139, 92, 246, 0.3),
    0 1px 4px rgba(139, 92, 246, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  text-shadow: 
    0 0 4px rgba(167, 139, 250, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: neonPulseSub 2s ease-in-out infinite;
}

.participant-badge-sub::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, #a78bfa, #8b5cf6, #7c3aed);
  border-radius: 11px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(3px);
  animation: neonGlowSub 2s ease-in-out infinite;
}

@keyframes neonPulseSub {
  0%, 100% {
    box-shadow: 
      0 0 4px rgba(139, 92, 246, 0.4),
      0 0 8px rgba(139, 92, 246, 0.3),
      0 1px 4px rgba(139, 92, 246, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border-color: #a78bfa;
  }
  50% {
    box-shadow: 
      0 0 6px rgba(139, 92, 246, 0.5),
      0 0 12px rgba(139, 92, 246, 0.4),
      0 1px 6px rgba(139, 92, 246, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    border-color: #c4b5fd;
  }
}

@keyframes neonGlowSub {
  0%, 100% {
    opacity: 0.4;
    filter: blur(4px);
  }
  50% {
    opacity: 0.6;
    filter: blur(6px);
  }
}

.participant-badge-vip {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #ffffff;
  border-color: #fbbf24;
  box-shadow: 
    0 0 4px rgba(245, 158, 11, 0.4),
    0 0 8px rgba(245, 158, 11, 0.3),
    0 1px 4px rgba(245, 158, 11, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  text-shadow: 
    0 0 4px rgba(251, 191, 36, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: neonPulseVip 2s ease-in-out infinite;
}

.participant-badge-vip::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  border-radius: 11px;
  z-index: -1;
  opacity: 0.3;
  filter: blur(3px);
  animation: neonGlowVip 2s ease-in-out infinite;
}

@keyframes neonPulseVip {
  0%, 100% {
    box-shadow: 
      0 0 4px rgba(245, 158, 11, 0.4),
      0 0 8px rgba(245, 158, 11, 0.3),
      0 1px 4px rgba(245, 158, 11, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    border-color: #fbbf24;
  }
  50% {
    box-shadow: 
      0 0 6px rgba(245, 158, 11, 0.5),
      0 0 12px rgba(245, 158, 11, 0.4),
      0 1px 6px rgba(245, 158, 11, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    border-color: #fcd34d;
  }
}

@keyframes neonGlowVip {
  0%, 100% {
    opacity: 0.4;
    filter: blur(4px);
  }
  50% {
    opacity: 0.6;
    filter: blur(6px);
  }
}

.participant-badge-vip-sub {
  background: linear-gradient(90deg, 
    #8b5cf6 0%, 
    #7c3aed 25%,
    #f59e0b 75%,
    #d97706 100%);
  color: #ffffff;
  border-color: #fbbf24;
  box-shadow: 
    0 0 5px rgba(139, 92, 246, 0.5),
    0 0 10px rgba(139, 92, 246, 0.4),
    0 0 5px rgba(245, 158, 11, 0.5),
    0 0 10px rgba(245, 158, 11, 0.4),
    0 1px 4px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  text-shadow: 
    0 0 6px rgba(255, 255, 255, 0.7),
    0 0 8px rgba(167, 139, 250, 0.6),
    0 0 8px rgba(251, 191, 36, 0.6),
    0 1px 2px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: neonPulseVipSub 2.5s ease-in-out infinite;
}

.participant-badge-vip-sub::after {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(90deg, 
    #a78bfa 0%, 
    #8b5cf6 25%,
    #fbbf24 75%,
    #f59e0b 100%);
  border-radius: 11px;
  z-index: -1;
  opacity: 0.4;
  filter: blur(4px);
  animation: neonGlowVipSub 2.5s ease-in-out infinite;
}

.participant-badge-vip-sub::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  animation: badgeShineMove 3s ease-in-out infinite;
  border-radius: 50%;
}

@keyframes neonPulseVipSub {
  0%, 100% {
    box-shadow: 
      0 0 5px rgba(139, 92, 246, 0.5),
      0 0 10px rgba(139, 92, 246, 0.4),
      0 0 5px rgba(245, 158, 11, 0.5),
      0 0 10px rgba(245, 158, 11, 0.4),
      0 1px 4px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(255, 255, 255, 0.15) inset;
    border-color: #fbbf24;
  }
  50% {
    box-shadow: 
      0 0 8px rgba(139, 92, 246, 0.6),
      0 0 15px rgba(139, 92, 246, 0.5),
      0 0 8px rgba(245, 158, 11, 0.6),
      0 0 15px rgba(245, 158, 11, 0.5),
      0 1px 6px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border-color: #fcd34d;
  }
}

@keyframes neonGlowVipSub {
  0%, 100% {
    opacity: 0.5;
    filter: blur(5px);
  }
  50% {
    opacity: 0.7;
    filter: blur(7px);
  }
}

@keyframes badgeShineMove {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.participant-role {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.role-viewer {
  background: rgba(148, 163, 184, 0.2);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.role-follower {
  background: rgba(255, 215, 0, 0.2);
  color: #fbbf24;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.role-sub {
  background: rgba(139, 92, 246, 0.3);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.role-vip {
  background: rgba(251, 191, 36, 0.3);
  color: #fcd34d;
  border: 1px solid rgba(251, 191, 36, 0.4);
}

.role-mod {
  background: rgba(34, 197, 94, 0.3);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Responsivo: em telas menores, ajusta layout */
@media (max-width: 1400px) {
  .raffle-layout-container {
    grid-template-columns: 380px 1fr 380px;
  }
}

@media (max-width: 1200px) {
  .raffle-layout-container {
    grid-template-columns: 1fr;
  }
  
  .raffle-left-column,
  .raffle-right-column {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .raffle-layout-container {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .status-info-grid {
    grid-template-columns: 1fr;
  }
}

/* Card de Prêmios do Sorteio */
.raffle-prizes-display {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prize-winner-item {
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.prize-winner-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(120, 180, 255, 0.3);
}

.prize-winner-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.prize-winner-number {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(86, 150, 255, 0.3), rgba(56, 120, 235, 0.3));
  border: 1px solid rgba(86, 150, 255, 0.5);
  border-radius: 6px;
  font-weight: 800;
  font-size: 12px;
  color: #5696ff;
  flex-shrink: 0;
}

.prize-winner-label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.prize-winner-prizes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 36px;
}

.prize-winner-prize {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.prize-winner-prize-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.prize-winner-prize-name {
  font-weight: 600;
}

.prize-winner-prize-type {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: auto;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

/* HEADER */
.control-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: rgba(10, 14, 32, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  min-height: 50px;
}

/* Header do card de participantes - permite múltiplos elementos */
#raffle-participants-card .card-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(139, 92, 246, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.control-title {
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: linear-gradient(120deg, #f9fbff, #9fb8ff, #f9fbff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Garante que emojis no título mantenham suas cores naturais */
.control-title .title-emoji {
  color: initial;
  font-variant-emoji: emoji;
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
  filter: none;
  -webkit-text-fill-color: initial;
  display: inline-block;
}

.control-nav {
  display: flex;
  gap: 10px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e5e8ff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(120, 180, 255, 0.5);
}

.nav-link-toggle {
  cursor: pointer;
  position: relative;
}

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px currentColor;
}

.status-indicator-on {
  background: #22c55e;
  color: #22c55e;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);
}

.status-indicator-off {
  background: #ef4444;
  color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.8);
}

/* MAIN CONTENT */
.control-main {
  flex: 1;
  display: flex;
  gap: 12px;
  padding: 12px;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
}

.control-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.control-card {
  background: rgba(10, 14, 32, 0.95);
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  flex-shrink: 0;
  margin: 0;
}

.drops-main-column {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  overflow-y: auto;
}

.drops-side-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 0;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.raffle-left-column > .control-card:first-child,
.raffle-center-column > .control-card:first-child,
.raffle-right-column > .control-card:first-child {
  margin-top: 0 !important;
  padding-top: 16px !important;
}

.raffle-center-column > .control-card:first-child {
  margin-top: 12px !important;
}

.raffle-left-column > .control-card:first-child > .card-header,
.raffle-center-column > .control-card:first-child > .card-header,
.raffle-right-column > .control-card:first-child > .card-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0 !important;
  margin-bottom: 12px;
  flex-shrink: 0;
  padding: 0 !important;
  min-height: 32px;
}

.card-title {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
}

/* Card header maior para drops */
.drops-main-column .card-header {
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(120, 180, 255, 0.5);
}

.icon-btn-small {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.icon-btn-small:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* STATUS BAR */
.status-bar {
  padding: 8px 12px;
  background: rgba(4, 7, 24, 0.8);
  border-radius: 8px;
  font-size: 12px;
  margin-top: 0;
  margin-bottom: 12px;
  text-align: center;
  flex-shrink: 0;
}

/* ==================== NOVO LAYOUT DE DROPS ==================== */
body.drops-page .control-main {
  height: calc(100vh - 70px);
  overflow: hidden;
  padding: 0;
}

.drops-new-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 12px; /* Reduzido de 16px */
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  padding: 10px; /* Reduzido de 12px */
  align-items: start;
  box-sizing: border-box;
  overflow: hidden;
}

.drops-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  height: 100%;
  overflow: visible; /* Mudado de hidden para visible */
  padding: 0;
  align-content: start;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.drops-main-grid::-webkit-scrollbar {
  display: none;
}

/* Cards de Seção Principal */
.drops-section-card {
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.95), rgba(20, 25, 35, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 14px;
  margin: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.drops-section-card:hover {
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 6px 30px rgba(139, 92, 246, 0.2);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
  flex-shrink: 0;
}

.section-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  flex-shrink: 0;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.section-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  padding: 0;
  margin: 0;
}

.section-content > *:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.section-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Currency Toggles */
.currency-selector-box {
  margin-bottom: 0;
}

.currency-toggles {
  display: flex;
  gap: 10px;
}

.currency-toggle {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
}

.currency-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.currency-toggle.active {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(139, 92, 246, 0.15));
  border-color: rgba(139, 92, 246, 0.6);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.toggle-icon {
  font-size: 18px;
}

.toggle-text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Values Box */
.values-box {
  margin-top: 0;
}

.values-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: start;
}

.value-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.value-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  height: 18px;
  line-height: 1;
}

.value-icon {
  font-size: 14px;
}

.value-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(4, 7, 24, 0.8);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
  height: 42px;
}

.value-input:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.value-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
  background: rgba(4, 7, 24, 0.95);
}

/* Quantities */
.quantities-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 0;
  align-items: start;
}

.quantity-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quantity-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  height: 18px;
  line-height: 1;
}

.quantity-icon {
  font-size: 14px;
}

.quantity-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(4, 7, 24, 0.8);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
  height: 42px;
}

.quantity-input:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.quantity-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
  background: rgba(4, 7, 24, 0.95);
}

.sequence-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: linear-gradient(135deg, rgba(76, 230, 180, 0.1), rgba(36, 90, 70, 0.1));
  border: 1px solid rgba(76, 230, 180, 0.3);
  border-radius: 8px;
  gap: 12px;
  margin: 0;
}

.sequence-total {
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.info-value {
  font-size: 14px;
  font-weight: 700;
  color: #4ade80;
}

/* Settings Grid */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 0;
  align-items: start;
}

.setting-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.setting-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  height: 18px;
  line-height: 1;
}

.setting-icon {
  font-size: 14px;
  flex-shrink: 0;
}

.setting-input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(4, 7, 24, 0.8);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  transition: all 0.3s ease;
  box-sizing: border-box;
  height: 42px;
}

.setting-input:hover {
  border-color: rgba(139, 92, 246, 0.5);
}

.setting-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.2);
  background: rgba(4, 7, 24, 0.95);
}

.setting-hint {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-top: -2px;
}

/* Modern Checkbox */
.modern-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-top: 0;
  margin-bottom: 0;
}

.modern-checkbox:hover {
  background: rgba(255, 255, 255, 0.06);
}

.modern-checkbox input[type="checkbox"] {
  display: none;
}

.checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(139, 92, 246, 0.5);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.modern-checkbox input[type="checkbox"]:checked + .checkbox-custom {
  background: rgba(139, 92, 246, 0.3);
  border-color: rgba(139, 92, 246, 0.8);
}

.modern-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.checkbox-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

/* Budget Display */
.drops-action-card {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(217, 119, 6, 0.1));
  border-color: rgba(251, 191, 36, 0.4);
  grid-column: 1 / -1;
}

.budget-display {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 0;
}

.budget-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 10px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 10px;
}

.budget-currency {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.budget-amount {
  font-size: 18px;
  font-weight: 800;
  color: #fbbf24;
}

/* Action Button */
.action-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
  border: 2px solid rgba(239, 68, 68, 0.5);
  border-radius: 10px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
  box-sizing: border-box;
}

.action-button:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 1), rgba(220, 38, 38, 1));
  border-color: rgba(239, 68, 68, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

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

.action-button.on {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9)) !important;
  border-color: rgba(16, 185, 129, 0.5) !important;
}

.action-button.on:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 1), rgba(5, 150, 105, 1)) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

.button-icon {
  font-size: 16px;
}

.button-text {
  font-size: 14px;
}

/* Status Panel Lateral */
.drops-status-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  overflow-y: auto;
  padding-right: 4px;
}

.drops-status-panel::-webkit-scrollbar {
  width: 6px;
}

.drops-status-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.drops-status-panel::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 10px;
}

.drops-status-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}

.status-card {
  background: linear-gradient(135deg, rgba(13, 17, 23, 0.95), rgba(20, 25, 35, 0.95));
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.status-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(139, 92, 246, 0.2);
}

.status-icon {
  font-size: 18px;
}

.status-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.drops-section-card .status-values {
  margin-top: 0;
}

.balances-section {
  margin: 0;
  padding-top: 8px;
  padding-bottom: 0;
  border-top: 1px solid rgba(139, 92, 246, 0.15);
}

.balances-section .section-label {
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.balances-section .status-values {
  margin-bottom: 0;
}

.balances-section .status-row:last-child {
  margin-bottom: 0;
}

.balances-section .status-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 10px;
  text-align: center;
}

.balances-section .status-name {
  font-size: 11px;
  margin-bottom: 4px;
}

.balances-section .status-number {
  font-size: 18px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.status-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(139, 92, 246, 0.3);
}

.status-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.status-number {
  font-size: 16px;
  font-weight: 800;
  color: #60a5fa;
}

/* Summary */
.autodrop-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: rgba(76, 230, 180, 0.08);
  border: 1px solid rgba(76, 230, 180, 0.2);
  border-radius: 8px;
}

.summary-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
}

.summary-data {
  font-size: 12px;
  font-weight: 700;
  color: #4ade80;
}

.summary-placeholder {
  text-align: center;
  padding: 30px 15px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.status-grid-3cols {
  grid-template-columns: repeat(3, 1fr);
}

.status-item {
  background: rgba(4, 7, 24, 0.8);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.status-label {
  font-size: 10px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-value {
  font-size: 14px;
  font-weight: 800;
  color: #a0ffcf;
}

.badge {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge.badge-on {
  background: linear-gradient(135deg, #18d679, #0fc869);
  border-color: #33ff9b;
  color: #02150a;
}

/* CONTROL SECTIONS */
.control-section-row {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.control-section-row > .control-section-compact {
  flex: 1 1 calc(50% - 8px); /* Cada card ocupa aproximadamente metade, menos o gap */
  min-width: 400px; /* Tamanho mínimo para manter legibilidade */
  max-width: 50%; /* Limita a metade da tela */
}

.control-section-compact {
  width: 100%;
  max-width: 50%; /* Aproximadamente metade da tela */
  min-width: 400px; /* Tamanho mínimo para manter legibilidade */
  align-self: flex-start;
}

.control-section {
  margin-bottom: 16px;
  flex-shrink: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0.9;
  display: flex;
  align-items: center;
}

/* Subseções do AutoDrop */
.config-subsection {
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.subsection-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  opacity: 0.9;
  color: rgba(120, 180, 255, 0.9);
}

/* Resumo do AutoDrop */
.autodrop-summary-card {
  background: linear-gradient(135deg, rgba(76, 230, 180, 0.1), rgba(36, 90, 70, 0.1));
  border: 1px solid rgba(76, 230, 180, 0.3);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 0;
}

.summary-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: rgba(76, 230, 180, 1);
}

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

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.7;
  color: rgba(255, 255, 255, 0.8);
}

.summary-value {
  font-size: 16px;
  font-weight: 700;
  color: rgba(76, 230, 180, 1);
}

/* BUTTONS */
.button-group {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 20px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Nunito', sans-serif;
  letter-spacing: 0.5px;
}

.btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(120, 180, 255, 0.5);
  transform: translateY(-1px);
}

.btn:active:not(:disabled) {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, rgba(76, 230, 180, 0.3), rgba(36, 90, 70, 0.3));
  border-color: rgba(76, 230, 180, 0.7);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
  background: linear-gradient(135deg, rgba(120, 180, 255, 0.3), rgba(80, 130, 255, 0.3));
  border-color: rgba(120, 180, 255, 0.7);
}

.btn-success:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
  background: linear-gradient(135deg, rgba(120, 180, 255, 0.2), rgba(80, 130, 255, 0.2));
  border-color: rgba(120, 180, 255, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.3), rgba(200, 50, 50, 0.3));
  border-color: rgba(255, 80, 80, 0.7);
}

.btn-warning {
  background: linear-gradient(135deg, rgba(255, 200, 0, 0.3), rgba(255, 150, 0, 0.3));
  border-color: rgba(255, 200, 0, 0.7);
}

.btn-info {
  background: linear-gradient(135deg, rgba(100, 200, 255, 0.3), rgba(50, 150, 255, 0.3));
  border-color: rgba(100, 200, 255, 0.7);
}

/* Botão com toggle dentro do button-group */
.button-group .nav-link-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* MODAL DE HISTÓRICO */
#history-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

#history-modal .modal-content {
  background: linear-gradient(135deg, rgba(20, 25, 45, 0.95), rgba(15, 20, 35, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  padding: 0;
  overflow: hidden;
}

#history-modal .modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#history-modal .modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

#history-modal .modal-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

#history-modal .modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

#history-modal .data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

#history-modal .data-table th {
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#history-modal .data-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#history-modal .data-table tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

/* Abas do Histórico */
.history-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.history-tab-btn {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-bottom: 3px solid transparent;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 8px 8px 0 0;
  font-variant-emoji: emoji;
  text-rendering: optimizeLegibility;
}

.history-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.history-tab-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-bottom-color: #3b82f6;
  color: #93c5fd;
}

/* Garante que emojis mantenham suas cores naturais */
.history-tab-btn .tab-emoji {
  color: initial;
  font-variant-emoji: emoji;
  display: inline-block;
  margin-right: 4px;
  filter: none;
  -webkit-text-fill-color: initial;
}

.btn.full {
  width: 100%;
}

/* FORMS */
.form-group-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.form-group-compact .form-input-compact {
  width: 100%;
  max-width: 100%; /* Usa toda a largura disponível do card */
}

.form-group-compact .btn-compact {
  width: 100%;
  max-width: 100%; /* Usa toda a largura disponível do card */
  align-self: flex-start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
  color: #ffffff;
  font-size: 12px;
  font-family: 'Nunito', sans-serif;
  outline: none;
  transition: all 0.2s ease;
}

/* Estilo específico para selects - melhor contraste e visibilidade */
.form-input[type="select"],
select.form-input,
.form-input:is(select) {
  background: rgba(4, 7, 24, 0.9) !important;
  color: #ffffff !important;
  border: 1px solid rgba(120, 180, 255, 0.4) !important;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
}

/* Aplica CAPSLOCK quando a primeira opção (vazia) está selecionada */
select.form-input option[value=""] {
  text-transform: uppercase;
  text-align: center;
}

select.form-input option {
  background: rgba(4, 7, 24, 0.95) !important;
  color: #ffffff !important;
  padding: 10px;
}

select.form-input option:hover,
select.form-input option:checked {
  background: rgba(120, 180, 255, 0.4) !important;
  color: #ffffff !important;
}

.form-input:focus,
select.form-input:focus {
  border-color: rgba(120, 180, 255, 0.7) !important;
  background: rgba(4, 7, 24, 0.95) !important;
  box-shadow: 0 0 8px rgba(120, 180, 255, 0.3);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Seleção de Tipo de Prêmio */
.prize-type-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 8px;
  background: rgba(4, 7, 24, 0.5);
  border-radius: 8px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid transparent;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

.radio-label:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(120, 180, 255, 0.3);
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #5696ff;
}

.radio-label input[type="radio"]:checked + span {
  color: #5696ff;
}

.radio-label:has(input[type="radio"]:checked) {
  background: rgba(86, 150, 255, 0.15);
  border-color: rgba(86, 150, 255, 0.5);
  box-shadow: 0 0 12px rgba(86, 150, 255, 0.2);
}

.prize-section {
  margin-top: 12px;
  padding: 12px;
  background: rgba(4, 7, 24, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title-small {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* STATUS DO OVERLAY - Estilo similar à imagem */
.overlay-status-card {
  background: rgba(4, 7, 24, 0.6);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-status-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-indicator-large {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: all 0.3s ease;
  box-shadow: 0 0 12px currentColor;
}

.status-indicator-large.status-indicator-on {
  background: #18d679;
  box-shadow: 0 0 16px rgba(24, 214, 121, 0.6);
}

.status-indicator-large.status-indicator-off {
  background: #ff5050;
  box-shadow: 0 0 16px rgba(255, 80, 80, 0.6);
}

.overlay-status-text {
  font-size: 12px;
  font-weight: 700;
  color: #e5e8ff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-overlay-activate {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, rgba(86, 150, 255, 0.4), rgba(50, 120, 255, 0.4));
  border: 2px solid rgba(86, 150, 255, 0.6);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
  box-shadow: 
    0 4px 15px rgba(86, 150, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-overlay-activate::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-overlay-activate:hover::before {
  left: 100%;
}

.btn-overlay-activate:hover {
  background: linear-gradient(135deg, rgba(86, 150, 255, 0.5), rgba(50, 120, 255, 0.5));
  border-color: rgba(86, 150, 255, 0.8);
  box-shadow: 
    0 6px 20px rgba(86, 150, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.btn-overlay-activate:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 10px rgba(86, 150, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* CONTROLES DO SORTEIO - Grid de botões grandes */
.raffle-controls-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
  justify-items: center;
}

/* Quando há 3 botões, ajusta o layout */
.raffle-controls-grid:has(#raffle-finish-btn) {
  grid-template-columns: 1fr 1fr;
}

.raffle-controls-grid #raffle-start-btn {
  grid-column: 1 / -1;
}

.btn-raffle {
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Nunito', sans-serif;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

.btn-raffle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
}

.btn-raffle:hover:not(:disabled)::before {
  left: 100%;
}

.btn-raffle:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-raffle:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.btn-raffle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* Botão INICIAR SORTEIO - Verde (primário) */
.btn-raffle-primary {
  background: linear-gradient(135deg, rgba(76, 230, 180, 0.4), rgba(36, 180, 140, 0.4));
  border: 2px solid rgba(76, 230, 180, 0.7);
  box-shadow: 
    0 4px 15px rgba(76, 230, 180, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  grid-column: 1 / -1; /* Ocupa toda a largura */
  justify-self: center;
  max-width: 100%;
}

.btn-raffle-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(76, 230, 180, 0.5), rgba(36, 180, 140, 0.5));
  border-color: rgba(76, 230, 180, 0.9);
  box-shadow: 
    0 6px 20px rgba(76, 230, 180, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Botão SORTEAR VENCEDOR - Azul escuro */
.btn-raffle-draw {
  background: linear-gradient(135deg, rgba(50, 100, 200, 0.4), rgba(30, 70, 150, 0.4));
  border: 2px solid rgba(50, 100, 200, 0.7);
  box-shadow: 
    0 4px 15px rgba(50, 100, 200, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-raffle-draw:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(50, 100, 200, 0.5), rgba(30, 70, 150, 0.5));
  border-color: rgba(50, 100, 200, 0.9);
  box-shadow: 
    0 6px 20px rgba(50, 100, 200, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Botão RESETAR SORTEIO - Cinza-azul claro */
.btn-raffle-reset {
  background: linear-gradient(135deg, rgba(120, 140, 180, 0.4), rgba(90, 110, 150, 0.4));
  border: 2px solid rgba(120, 140, 180, 0.7);
  box-shadow: 
    0 4px 15px rgba(120, 140, 180, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
}

.btn-raffle-reset::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1));
  border-radius: 0 12px 12px 0;
}

.btn-raffle-reset:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(120, 140, 180, 0.5), rgba(90, 110, 150, 0.5));
  border-color: rgba(120, 140, 180, 0.9);
  box-shadow: 
    0 6px 20px rgba(120, 140, 180, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Botão FINALIZAR - Vermelho */
.btn-raffle-finish {
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.4), rgba(200, 50, 50, 0.4));
  border: 2px solid rgba(255, 80, 80, 0.7);
  box-shadow: 
    0 4px 15px rgba(255, 80, 80, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-raffle-finish:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 80, 80, 0.5), rgba(200, 50, 50, 0.5));
  border-color: rgba(255, 80, 80, 0.9);
  box-shadow: 
    0 6px 20px rgba(255, 80, 80, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Botão SECUNDÁRIO - Azul/Laranja */
.btn-raffle-secondary {
  background: linear-gradient(135deg, rgba(100, 150, 255, 0.4), rgba(70, 120, 220, 0.4));
  border: 2px solid rgba(100, 150, 255, 0.7);
  box-shadow: 
    0 4px 15px rgba(100, 150, 255, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-raffle-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(100, 150, 255, 0.5), rgba(70, 120, 220, 0.5));
  border-color: rgba(100, 150, 255, 0.9);
  box-shadow: 
    0 6px 20px rgba(100, 150, 255, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Botão PERIGO - Vermelho/Laranja */
.btn-raffle-danger {
  background: linear-gradient(135deg, rgba(255, 100, 80, 0.4), rgba(220, 70, 50, 0.4));
  border: 2px solid rgba(255, 100, 80, 0.7);
  box-shadow: 
    0 4px 15px rgba(255, 100, 80, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-raffle-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(255, 100, 80, 0.5), rgba(220, 70, 50, 0.5));
  border-color: rgba(255, 100, 80, 0.9);
  box-shadow: 
    0 6px 20px rgba(255, 100, 80, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* LISTA DE PRÊMIOS DO SORTEIO */
.prize-add-section {
  padding: 12px;
  background: rgba(4, 7, 24, 0.3);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.prize-list-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 12px;
}

.raffle-prize-list {
  max-height: 250px;
  overflow-y: auto;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.raffle-queue-list {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.queue-item {
  padding: 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  transition: all 0.2s ease;
  overflow: hidden;
  min-width: 0;
}

.queue-item:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
}

.queue-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 12px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.queue-item-title {
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
  margin-bottom: 4px;
}

.queue-item-prizes {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(251, 191, 36, 0.15);
  border-radius: 8px;
  border: 2px solid rgba(251, 191, 36, 0.4);
  font-size: 12px;
  min-width: 0;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.queue-prize-icon {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
}

.queue-prize-text {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

.prize-separator {
  color: rgba(251, 191, 36, 0.8);
  font-size: 12px;
  font-weight: 700;
  margin: 0 4px;
  display: inline-block;
}

.queue-item-status {
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.queue-status-pending {
  background: rgba(167, 139, 250, 0.3);
  color: #a78bfa;
  border: 1px solid rgba(167, 139, 250, 0.4);
}

.queue-status-drawing,
.queue-status-waiting {
  background: rgba(245, 158, 11, 0.3);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.queue-status-completed {
  background: rgba(16, 185, 129, 0.3);
  color: #4ade80;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.queue-status-cancelled {
  background: rgba(239, 68, 68, 0.3);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Estilos para estados vazios */
.prize-empty,
.queue-empty {
  text-align: center;
  padding: 30px 20px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-style: italic;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.prize-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.prize-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(120, 180, 255, 0.3);
}

.prize-list-item {
  padding: 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
  gap: 12px;
}

.prize-list-item:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateX(4px);
}

.prize-list-item > span {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.btn-remove-prize {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0;
}

.btn-remove-prize:hover {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: rgba(239, 68, 68, 0.6) !important;
  transform: scale(1.05);
}

.prize-item-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.prize-item-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(86, 150, 255, 0.2);
  border-radius: 6px;
  font-size: 16px;
  flex-shrink: 0;
}

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

.prize-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prize-item-type {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.prize-item-remove {
  padding: 6px 12px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 80, 80, 0.1);
  color: #ff6b6b;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 700;
  flex-shrink: 0;
}

.prize-item-remove:hover {
  background: rgba(255, 80, 80, 0.2);
  border-color: rgba(255, 80, 80, 0.4);
}

/* ROTA DE SORTEIOS */
.raffle-prize-container {
  padding: 12px;
  background: rgba(4, 7, 24, 0.4);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}


.icon-btn-small {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s;
  margin-left: 8px;
}

.icon-btn-small:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* CURRENCY BUTTONS */
.currency-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 0;
}

.currency-btn {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e5ecff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.currency-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.currency-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(120, 180, 255, 0.5);
}

.currency-btn.active {
  background: linear-gradient(135deg, rgba(120, 180, 255, 0.3), rgba(80, 130, 255, 0.2));
  border-color: rgba(120, 180, 255, 0.7);
  color: #ffffff;
}

/* VALUE GRID */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.field-mini-label {
  font-size: 11px;
  opacity: 0.8;
  display: block;
  margin-bottom: 4px;
}

.weights-summary {
  margin-top: 4px;
  font-size: 11px;
}

.hint {
  font-size: 11px;
  opacity: 0.7;
  display: block;
  margin-top: 6px;
}

.range-grid {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.range-grid span {
  font-size: 11px;
  opacity: 0.7;
}

/* TABLE */
.table-wrapper {
  max-height: 360px; /* Ajustado para mostrar 9 linhas antes de precisar rolar (era 200px para 5 linhas) */
  overflow-y: auto;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

/* Ajusta layout da tabela de pendências - coluna Ação */
.data-table tbody td:last-child {
  text-align: right;
  padding-right: 8px;
  white-space: nowrap;
}

.data-table thead {
  background: rgba(4, 7, 24, 0.8);
  position: sticky;
  top: 0;
}

.data-table th {
  padding: 8px;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Centraliza o header "Ação" alinhado com o botão ENVIAR */
/* Botões alinhados à direita: REMOVER (70px) + gap (4px) + ENVIAR (70px) + gap (4px) + COPIAR (70px) = 218px */
/* Centro do ENVIAR está a ~117px da borda direita (8px padding + 70px REMOVER + 4px gap + 35px metade ENVIAR) */
/* Usamos position relative e um pseudo-elemento para posicionar "AÇÃO" exatamente acima do centro do ENVIAR */
.data-table th:last-child {
  text-align: center;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  color: transparent; /* Esconde o texto original */
}

/* Cria o texto "AÇÃO" posicionado corretamente acima do botão ENVIAR */
.data-table th:last-child::after {
  content: 'AÇÃO';
  position: absolute;
  right: 117px; /* Posiciona onde está o centro do botão ENVIAR */
  transform: translateX(50%); /* Centraliza o texto acima do centro do botão */
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  color: #ffffff; /* Restaura a cor do texto */
}

.data-table td {
  padding: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Adiciona mais espaçamento entre Prêmio e Player */
.data-table th:nth-child(3),
.data-table td:nth-child(3) {
  padding-left: 30px;
}

/* Alinha botões à direita na coluna de ação */
.data-table td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-right: 8px;
}

.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.data-table .btn {
  padding: 4px 8px;
  font-size: 10px;
  margin: 0 2px;
}

/* Botões de ação na tabela de pendências */
.btn-action {
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-family: 'Nunito', sans-serif;
}

.btn-action-send {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #60a5fa;
}

.btn-action-send:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.3));
  border-color: rgba(59, 130, 246, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-action-remove {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #f87171;
}

.btn-action-remove:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.3), rgba(220, 38, 38, 0.3));
  border-color: rgba(239, 68, 68, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* PARTICIPANTS LIST */
.participants-list {
  max-height: 300px;
  overflow-y: auto;
  background: rgba(4, 7, 24, 0.5);
  border-radius: 8px;
  padding: 8px;
  font-size: 11px;
}

/* Lista de participantes - já definida acima com #raffle-participants-card */

.participants-list .placeholder {
  text-align: center;
  opacity: 0.5;
  padding: 20px;
}

.participants-list-item {
  padding: 4px 8px;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.participant-remove-btn {
  background: rgba(255, 77, 77, 0.2);
  border: 1px solid rgba(255, 77, 77, 0.4);
  color: #ff6b6b;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  transition: all 0.2s ease;
  flex-shrink: 0;
  font-weight: bold;
  min-width: 24px;
}

.participant-remove-btn:hover {
  background: rgba(255, 77, 77, 0.4);
  border-color: rgba(255, 77, 77, 0.6);
  color: #ff4444;
  transform: scale(1.1);
}

/* MULTIPLIER GRID */
.multiplier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mult-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.mult-option input {
  width: 60px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-align: center;
}

/* MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background: radial-gradient(circle at top, #27335b 0%, #101427 45%, #050713 100%);
  border-radius: 16px;
  padding: 20px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

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

.modal-header h3 {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.modal-body {
  margin-bottom: 16px;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.modal-icon {
  font-size: 32px;
  margin-right: 12px;
}

/* SCROLLBAR */
.control-main::-webkit-scrollbar,
.control-card::-webkit-scrollbar,
.table-wrapper::-webkit-scrollbar,
.participants-list::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.control-main::-webkit-scrollbar-track,
.control-card::-webkit-scrollbar-track,
.table-wrapper::-webkit-scrollbar-track,
.participants-list::-webkit-scrollbar-track,
.modal-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}

.control-main::-webkit-scrollbar-thumb,
.control-card::-webkit-scrollbar-thumb,
.table-wrapper::-webkit-scrollbar-thumb,
.participants-list::-webkit-scrollbar-thumb,
.modal-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.control-main::-webkit-scrollbar-thumb:hover,
.control-card::-webkit-scrollbar-thumb:hover,
.table-wrapper::-webkit-scrollbar-thumb:hover,
.participants-list::-webkit-scrollbar-thumb:hover,
.modal-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Firefox scrollbar */
.control-main {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

.control-card {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

/* ==================== NOVOS ESTILOS PARA SEQUÊNCIA DE DROPS ==================== */

.drop-quantity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.drop-quantity-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quantity-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.quantity-total-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.drop-sequence-summary {
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-top: 15px;
}

.summary-total {
  font-size: 16px;
  color: #4ade80;
  margin-bottom: 10px;
}

.sequence-preview {
  padding: 10px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  min-height: 30px;
  display: flex;
  align-items: center;
}

.budget-calculator {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.subsection-title-small {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.budget-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.budget-label {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 5px;
}

.budget-value {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fbbf24;
}

/* ==================== ESTILOS COMPACTOS PARA DROPS ==================== */

/* Cards compactos */
.control-card-compact {
  background: rgba(13, 17, 23, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 18px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.card-header-compact {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(139, 92, 246, 0.3);
}

.card-title-small {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Formulário compacto */
.compact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.config-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.config-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input-compact {
  width: 100%;
  padding: 12px 14px;
  background: rgba(4, 7, 24, 0.8);
  border: 2px solid rgba(139, 92, 246, 0.4);
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s ease;
}

.form-input-compact:hover {
  border-color: rgba(139, 92, 246, 0.6);
}

.form-input-compact:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.8);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
  background: rgba(4, 7, 24, 0.95);
}

.form-input-compact:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

/* Value grid compacto */
.value-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

.value-item-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  justify-content: flex-start;
}

.field-mini-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  height: 18px;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

/* Drop quantity grid compacto */
.drop-quantity-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}

.drop-quantity-item-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  justify-content: flex-start;
}

.quantity-label-small {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  height: 18px;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.sequence-preview-compact {
  padding: 14px 16px;
  background: rgba(76, 230, 180, 0.1);
  border: 1px solid rgba(76, 230, 180, 0.3);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #4ade80;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.sequence-preview-compact small {
  font-size: 13px;
  font-weight: 600;
}

/* Quick config grid */
.quick-config-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
  align-items: stretch;
}

.quick-config-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 80px;
  justify-content: flex-start;
}

.quick-config-grid .field-mini-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  height: 18px;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

.quick-config-grid .hint {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-style: italic;
  margin-top: -4px;
  height: 14px;
  line-height: 1.2;
}

.checkbox-label-compact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  margin-top: 6px;
  padding: 8px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.checkbox-label-compact:hover {
  background: rgba(255, 255, 255, 0.05);
}

.checkbox-label-compact input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: rgba(139, 92, 246, 0.8);
}

/* Budget calculator compacto */
.budget-calculator-compact {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(217, 119, 6, 0.1));
  border-radius: 10px;
  border: 2px solid rgba(251, 191, 36, 0.3);
}

.budget-header-compact {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.budget-calc-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: stretch;
}

.budget-calc-grid-compact > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 60px;
  justify-content: flex-start;
  align-items: flex-start;
}

.budget-label-small {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  height: 18px;
  line-height: 1.2;
}

.budget-value-small {
  font-size: 20px;
  font-weight: 800;
  color: #fbbf24;
  display: flex;
  align-items: center;
  line-height: 1.2;
  min-height: 24px;
}

/* Garantir que todos os inputs compact tenham a mesma altura */
.value-item-compact .form-input-compact,
.drop-quantity-item-compact .form-input-compact,
.quick-config-grid .form-input-compact {
  height: 44px;
  box-sizing: border-box;
}

.button-group-compact {
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
}

.button-group-compact .btn.full {
  width: 100%;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 800;
  min-height: 56px;
}

/* Status grid compacto */
.status-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.status-item-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(59, 130, 246, 0.1));
  border-radius: 10px;
  border: 2px solid rgba(96, 165, 250, 0.3);
  transition: all 0.2s ease;
}

.status-item-compact:hover {
  border-color: rgba(96, 165, 250, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.2);
}

.status-label-small {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.status-value-small {
  font-size: 24px;
  font-weight: 800;
  color: #60a5fa;
  text-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

/* Summary compacto */
.autodrop-summary-compact {
  padding: 12px 0;
}

.summary-grid-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.summary-item-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(76, 230, 180, 0.08), rgba(36, 90, 70, 0.08));
  border: 1px solid rgba(76, 230, 180, 0.2);
  border-radius: 8px;
  font-size: 12px;
  transition: all 0.2s ease;
}

.summary-item-compact:hover {
  background: linear-gradient(135deg, rgba(76, 230, 180, 0.12), rgba(36, 90, 70, 0.12));
  border-color: rgba(76, 230, 180, 0.4);
}

.summary-label-small {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 12px;
}

.summary-value-small {
  color: #4ade80;
  font-weight: 700;
  font-size: 14px;
}

.summary-placeholder-compact {
  padding: 32px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-style: italic;
}

/* Scrollbars para drops */
.drops-main-column::-webkit-scrollbar,
.drops-side-column::-webkit-scrollbar {
  width: 6px;
}

.drops-main-column::-webkit-scrollbar-track,
.drops-side-column::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.drops-main-column::-webkit-scrollbar-thumb,
.drops-side-column::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.4);
  border-radius: 3px;
}

.drops-main-column::-webkit-scrollbar-thumb:hover,
.drops-side-column::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.6);
}

/* ==================== CARD UNIFICADO DE DROPS ==================== */
/* Card unificado - todas as seções em um único card */
.drops-unified-card {
  grid-column: 1 / -1; /* Ocupa toda a largura do grid */
  padding: 10px; /* Reduzido de 12px */
  display: flex;
  flex-direction: column;
  gap: 8px; /* Reduzido de 10px */
  overflow: visible; /* Remove scroll interno */
}

/* Seções internas do card unificado */
.drops-unified-card .unified-section {
  padding-bottom: 8px; /* Reduzido de 10px */
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
  flex-shrink: 0; /* Não permite que as seções encolham */
}

.drops-unified-card .unified-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

/* Ajusta o grid principal para acomodar o card unificado */
.drops-main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px; /* Reduzido de 12px */
  height: 100%;
  overflow: hidden; /* Mantém hidden para evitar scroll */
  align-content: start;
}

/* Esconde o card de ação separado que foi movido para dentro */
.drops-action-card {
  display: none; /* Esconde o card separado que foi movido para dentro */
}

/* Ajustes de espaçamento para as seções unificadas */
.drops-unified-card .section-header {
  margin-bottom: 4px; /* Reduzido de 6px */
  padding-bottom: 4px; /* Reduzido de 5px */
  gap: 6px; /* Reduzido de 8px */
}

.drops-unified-card .section-icon {
  font-size: 16px; /* Reduzido de 20px */
  width: 28px; /* Reduzido de 32px */
  height: 28px; /* Reduzido de 32px */
}

.drops-unified-card .section-title {
  font-size: 13px; /* Reduzido de 15px */
}

.drops-unified-card .section-content {
  padding: 0;
  gap: 5px; /* Reduzido de 6px */
}

/* Ajusta o container para melhor visualização */
.drops-new-container {
  grid-template-columns: 1fr 280px;
  align-items: start; /* Mantém alinhamento no topo */
}

/* Ajusta o layout interno do card unificado para manter o mesmo tamanho */
.drops-unified-card .values-container,
.drops-unified-card .quantities-container,
.drops-unified-card .settings-grid,
.drops-unified-card .status-values,
.drops-unified-card .budget-display {
  margin-top: 0;
  gap: 6px; /* Reduzido de 8px */
}

/* Reduz espaçamento dos campos dentro do card unificado */
.drops-unified-card .value-field,
.drops-unified-card .quantity-field {
  gap: 3px; /* Reduzido de 4px */
}

.drops-unified-card .value-label,
.drops-unified-card .quantity-header {
  margin-bottom: 3px; /* Reduzido de 4px */
  font-size: 9px; /* Reduzido de 10px */
  height: 14px; /* Reduzido de 16px */
}

.drops-unified-card .value-input,
.drops-unified-card .quantity-input {
  padding: 6px 8px; /* Reduzido de 8px 10px */
  font-size: 12px; /* Reduzido de 13px */
  height: 34px; /* Reduzido de 38px */
}

/* Reduz espaçamento dos settings */
.drops-unified-card .setting-item {
  gap: 4px; /* Reduzido de 6px */
}

.drops-unified-card .setting-input {
  padding: 6px 8px; /* Reduz padding dos inputs de configuração */
  font-size: 12px; /* Reduzido de 13px */
  height: 34px; /* Reduzido de 38px */
}

/* Reduz espaçamento dos status rows */
.drops-unified-card .status-row {
  padding: 6px 8px; /* Reduz padding */
  font-size: 12px; /* Reduzido de 13px */
}

/* Reduz espaçamento do budget-display dentro do card unificado */
.drops-unified-card .budget-display {
  gap: 5px; /* Reduzido de 6px */
  margin-bottom: 0;
}

.drops-unified-card .budget-item {
  padding: 8px 6px; /* Reduzido de 10px 8px */
}

.drops-unified-card .budget-currency {
  font-size: 10px; /* Reduzido de 11px */
}

.drops-unified-card .budget-amount {
  font-size: 16px; /* Reduzido de 18px */
}

/* Ajusta o botão dentro do card unificado para usar estilo padrão */
.drops-unified-card .btn {
  width: 100%;
  padding: 10px 14px; /* Ajustado para o tamanho do card */
  font-size: 12px; /* Reduzido para caber melhor */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  line-height: 1.2;
  min-height: 38px;
  box-sizing: border-box;
}

.drops-unified-card .btn .button-icon {
  font-size: 14px; /* Ajustado para o tamanho do botão */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: middle;
}

.drops-unified-card .btn .button-text {
  font-size: 12px; /* Ajustado para o tamanho do botão */
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

/* Estilo para botão ativado (on) - usa cor verde como padrão ativo */
.drops-unified-card .btn.btn-primary.on {
  background: linear-gradient(135deg, rgba(76, 230, 180, 0.5), rgba(36, 180, 140, 0.5)) !important;
  border-color: rgba(76, 230, 180, 0.9) !important;
}

.drops-unified-card .btn.btn-primary.on:hover {
  background: linear-gradient(135deg, rgba(76, 230, 180, 0.6), rgba(36, 180, 140, 0.6)) !important;
  border-color: rgba(76, 230, 180, 1) !important;
  box-shadow: 
    0 6px 20px rgba(76, 230, 180, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Reduz espaçamento do sequence-info e centraliza conteúdo */
.drops-unified-card .sequence-info {
  margin-top: 4px; /* Reduzido de 6px */
  gap: 8px; /* Ajustado */
  padding: 6px 8px; /* Reduzido de 8px 10px */
  align-items: center;
  justify-content: space-between;
  display: flex;
}

.drops-unified-card .sequence-total {
  display: flex;
  align-items: center;
  gap: 6px; /* Reduzido de 8px */
  line-height: 1.2;
}

.drops-unified-card .info-label {
  font-size: 11px; /* Reduzido de 12px */
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.drops-unified-card .info-value {
  font-size: 12px; /* Reduzido de 14px */
  line-height: 1.2;
  display: flex;
  align-items: center;
}

.drops-unified-card .modern-checkbox {
  display: flex;
  align-items: center;
  gap: 6px; /* Reduzido de 10px */
  padding: 4px 6px; /* Reduzido de 10px 12px */
  margin: 0;
  flex-shrink: 0;
}

.drops-unified-card .checkbox-custom {
  width: 16px; /* Reduzido de 18px */
  height: 16px; /* Reduzido de 18px */
  flex-shrink: 0;
}

.drops-unified-card .checkbox-label {
  font-size: 11px; /* Reduzido de 12px */
  line-height: 1.2;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Reduz espaçamento do currency-selector-box e values-box */
.drops-unified-card .currency-selector-box,
.drops-unified-card .values-box {
  margin-bottom: 0;
}

.drops-unified-card .currency-selector-box {
  margin-bottom: 3px; /* Reduzido de 4px */
}

.drops-unified-card .values-box {
  margin-top: 3px; /* Reduzido de 4px */
}

.drops-unified-card .section-label {
  font-size: 10px; /* Reduzido de 11px */
  margin-bottom: 4px; /* Reduzido de 6px */
}

/* Reduz espaçamento e tamanho dos currency toggles */
.drops-unified-card .currency-toggles {
  gap: 4px; /* Reduzido de 6px */
}

.drops-unified-card .currency-toggle {
  padding: 6px 4px; /* Reduzido de 8px 6px */
  gap: 3px; /* Reduzido de 4px */
  border-radius: 6px; /* Reduzido de 8px */
}

.drops-unified-card .toggle-icon {
  font-size: 12px; /* Reduzido de 14px */
}

.drops-unified-card .toggle-text {
  font-size: 9px; /* Reduzido de 10px */
  letter-spacing: 0.2px; /* Reduzido */
}

/* Reduz espaçamento do settings-grid */
.drops-unified-card .settings-grid {
  gap: 6px; /* Reduzido de 8px */
}

/* Reduz espaçamento dos setting-items */
.drops-unified-card .setting-item {
  gap: 3px; /* Reduzido de 4px */
}

select option { background-color: #1a1f3a !important; color: #ffffff !important; }
