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

body {
  height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #1a3a2e, #0d1f18, #050a08);
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(74, 124, 89, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 230, 109, 0.08) 0%, transparent 50%);
  animation: backgroundShift 10s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes backgroundShift {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.1); }
}

#logo {
  position: absolute;
  top: 40px;
  left: 40px;
  width: 360px;
  height: auto;
  z-index: 10;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Connection Status Indicator */
#connection-status {
  position: fixed;
  top: 40px;
  right: 40px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(47, 82, 51, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  border: 2px solid rgba(74, 124, 89, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: statusFadeIn 0.5s ease;
}

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

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.status-text {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.status-online .status-dot {
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
  animation: statusPulse 2s ease-in-out infinite;
}

.status-online .status-text {
  color: #4ade80;
}

.status-offline .status-dot {
  background: #ff4444;
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.8);
  animation: none;
}

.status-offline .status-text {
  color: #ff4444;
}

.status-offline {
  border-color: rgba(255, 68, 68, 0.5);
}

@keyframes statusPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

#fireworks {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  display: none;
}

#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

#wheel-container {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.6));
}

.wheel-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1020px;
  height: 1020px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 109, 0.3), rgba(74, 124, 89, 0.2), transparent);
  opacity: 0;
  transition: opacity 0.5s ease;
  animation: wheelGlowPulse 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

#wheel-container.spinning .wheel-glow {
  opacity: 1;
  animation: wheelGlowSpin 2s ease-in-out infinite, wheelGlowPulse 1s ease-in-out infinite;
}

@keyframes wheelGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
}

@keyframes wheelGlowSpin {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

#spin_the_wheel {
  display: inline-block;
  position: relative;
  overflow: visible;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

#spin_the_wheel:hover {
  transform: scale(1.02);
}

#wheel-container.spinning #spin_the_wheel {
  animation: wheelShake 0.15s ease-in-out infinite;
}

@keyframes wheelShake {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.005) rotate(0.5deg); }
  75% { transform: scale(1.005) rotate(-0.5deg); }
}

#wheel {
  display: block;
  border-radius: 50%;
  box-shadow:
    0 0 0 8px rgba(74, 124, 89, 0.5),
    0 0 0 12px rgba(47, 82, 51, 0.3),
    inset 0 0 50px rgba(0, 0, 0, 0.3);
}

#spin {
  font:
    1.5em/1.2 "Lato",
    sans-serif;
  user-select: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30%;
  height: 30%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ffffff, #f0f0f0);
  color: #fff;
  box-shadow:
    0 0 0 8px currentColor,
    0 0 20px 5px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(255, 230, 109, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
  padding: 20px;
  z-index: 100;
}

#spin:hover {
  transform: translate(-50%, -50%) scale(1.05);
  box-shadow:
    0 0 0 8px currentColor,
    0 0 25px 8px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(255, 230, 109, 0.5);
}

#spin:active {
  transform: translate(-50%, -50%) scale(0.98);
}

.spin-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 230, 109, 0.4), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: -1;
}

#spin:hover .spin-glow {
  opacity: 1;
  animation: spinGlowPulse 1.5s ease-in-out infinite;
}

@keyframes spinGlowPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

#spin::after {
  content: "";
  position: absolute;
  top: -28px;
  border: 18px solid transparent;
  border-bottom-color: currentColor;
  border-top: none;
  filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, 0.3));
  animation: pointerGlow 2s ease-in-out infinite;
}

@keyframes pointerGlow {
  0%, 100% { filter: drop-shadow(0 -4px 6px rgba(0, 0, 0, 0.3)); }
  50% { filter: drop-shadow(0 -4px 12px rgba(255, 230, 109, 0.8)); }
}

#bot-face {
  width: 60%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

#spin:hover #bot-face {
  transform: scale(1.1) rotate(5deg);
}

#spin-text {
  font-weight: bold;
  font-size: 1em;
  text-align: center;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    0 0 10px rgba(255, 255, 255, 0.5);
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  width: 100%;
}

.column {
  display: flex;
  flex-direction: column;
  flex-basis: 100%;
  flex: 1;
}

#message-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#message-overlay.show {
  display: flex;
  opacity: 1;
}

#message-container {
  background: linear-gradient(135deg, #4A7C59 0%, #2F5233 100%);
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(74, 124, 89, 0.4),
    inset 0 2px 20px rgba(255, 255, 255, 0.1);
  text-align: center;
  max-width: 500px;
  animation: messageSlideIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 3px solid #FFE66D;
  position: relative;
  overflow: hidden;
}

#message-container::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  animation: messageShine 3s ease-in-out infinite;
}

@keyframes messageShine {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

#message-icon {
  font-size: 80px;
  margin-bottom: 20px;
  animation: iconBounce 1s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 1;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-10px) scale(1.1); }
  50% { transform: translateY(0) scale(1); }
  75% { transform: translateY(-5px) scale(1.05); }
}

#message-text {
  color: #FFFFFF;
  font-size: 24px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  line-height: 1.5;
  margin: 0;
  text-shadow:
    2px 2px 4px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(255, 230, 109, 0.3);
  position: relative;
  z-index: 1;
}

@keyframes messageSlideIn {
  0% {
    transform: scale(0.3) translateY(-100px);
    opacity: 0;
  }
  50% {
    transform: scale(1.1) translateY(10px);
  }
  70% {
    transform: scale(0.95) translateY(-5px);
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Sparkle effect for wins */
@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Enhanced glow for spinning */
@keyframes rainbowGlow {
  0% { filter: hue-rotate(0deg) brightness(1); }
  50% { filter: hue-rotate(180deg) brightness(1.2); }
  100% { filter: hue-rotate(360deg) brightness(1); }
}

/* Alert Notification */
#alert-notification {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 10000;
  padding: 25px 35px;
  border-radius: 15px;
  font-weight: 600;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(10px);
  animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

#alert-notification.alert-success {
  background: rgba(74, 222, 128, 0.2);
  border: 3px solid #4ade80;
  color: #4ade80;
  box-shadow: 0 10px 40px rgba(74, 222, 128, 0.3);
}

#alert-notification.alert-error {
  background: rgba(255, 68, 68, 0.2);
  border: 3px solid #ff4444;
  color: #ff4444;
  box-shadow: 0 10px 40px rgba(255, 68, 68, 0.3);
}

.success-icon {
  font-size: 48px;
  font-weight: bold;
  display: inline-block;
  animation: successPop 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  margin-right: 12px;
}

.alert-message {
  font-size: 16px;
  font-weight: 600;
}

@keyframes successPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(10deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.hidden {
  display: none !important;
}

/* Footer */

footer {
  position: fixed;
  bottom: 20px;
  right: 20px;
  color: #FFE66D;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-shadow:
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(255, 230, 109, 0.3);
  z-index: 50;
  padding: 12px 30px;
  background: rgba(26, 47, 29, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 230, 109, 0.3);
  animation: footerGlow 3s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes footerGlow {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(255, 230, 109, 0.2);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 230, 109, 0.4);
  }
}

/* Gambling Warning - Bottom Left */
.gambling-warning {
  position: fixed;
  bottom: 30px;
  left: 30px;
  max-width: 280px;
  color: #FFE66D;
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-align: left;
  z-index: 50;
  padding: 12px 20px;
  background: linear-gradient(135deg,
    rgba(47, 82, 51, 0.25) 0%,
    rgba(74, 124, 89, 0.25) 50%,
    rgba(47, 82, 51, 0.25) 100%);
  backdrop-filter: blur(12px);
  border-radius: 15px;
  border: 1.5px solid rgba(255, 230, 109, 0.3);
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  line-height: 1.5;
}

.gambling-warning-icon {
  display: inline-block;
  font-size: 16px;
  margin-right: 6px;
  vertical-align: middle;
  animation: warningPulse 2s ease-in-out infinite;
}

@keyframes warningPulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

/* Win History Sidebar */
#win-history {
  position: fixed;
  top: 120px;
  right: 30px;
  width: 280px;
  max-height: 500px;
  overflow-y: auto;
  z-index: 20;
  font-family: 'Lato', sans-serif;
  padding: 15px;
  background: rgba(26, 47, 29, 0.3);
  backdrop-filter: blur(5px);
  border-radius: 10px;
}

#win-history h3 {
  color: #FFE66D;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.history-item {
  background: rgba(74, 124, 89, 0.2);
  padding: 10px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  animation: slideInRight 0.3s ease;
}

.history-item .prize {
  color: #FFE66D;
  font-weight: 700;
  font-size: 14px;
}

.history-item .details {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.history-item .time {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  margin-top: 4px;
}

.no-history {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-style: italic;
  text-align: center;
  margin: 0;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scrollbar styling for win history */
#win-history::-webkit-scrollbar {
  width: 6px;
}

#win-history::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#win-history::-webkit-scrollbar-thumb {
  background: rgba(255, 230, 109, 0.3);
  border-radius: 3px;
}

#win-history::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 230, 109, 0.5);
}

/* Claim Prize Button */
#claim-btn {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 40px;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  color: #1a2f1d;
  background: linear-gradient(135deg, #FFE66D, #FDC830);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  z-index: 100;
  box-shadow:
    0 8px 20px rgba(255, 230, 109, 0.4),
    0 0 40px rgba(255, 230, 109, 0.3);
  transition: all 0.3s ease;
  animation: claimButtonPulse 2s ease-in-out infinite;
}

#claim-btn:hover {
  transform: translateX(-50%) scale(1.05);
  box-shadow:
    0 10px 30px rgba(255, 230, 109, 0.6),
    0 0 60px rgba(255, 230, 109, 0.5);
}

#claim-btn:active {
  transform: translateX(-50%) scale(0.98);
}

@keyframes claimButtonPulse {
  0%, 100% {
    box-shadow:
      0 8px 20px rgba(255, 230, 109, 0.4),
      0 0 40px rgba(255, 230, 109, 0.3);
  }
  50% {
    box-shadow:
      0 10px 30px rgba(255, 230, 109, 0.6),
      0 0 60px rgba(255, 230, 109, 0.5);
  }
}

/* Claim Prize Modal */
#claim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

#claim-container {
  background: linear-gradient(135deg, #2F5233 0%, #1a3a1f 100%);
  padding: 40px;
  border-radius: 20px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(74, 124, 89, 0.4);
  border: 3px solid #FFE66D;
  max-width: 450px;
  width: 90%;
  animation: modalSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

#claim-container h2 {
  color: #FFE66D;
  font-family: 'Lato', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 10px 0;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Floating Prize Text - appears above claim button */
#floating-prize-text {
  position: fixed;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001;

  color: #FFE66D;
  font-family: 'Lato', sans-serif;
  font-size: 32px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;

  text-shadow:
    0 0 10px rgba(255, 230, 109, 0.8),
    0 0 20px rgba(255, 230, 109, 0.6),
    0 0 30px rgba(255, 230, 109, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.8);

  animation: floatingPrizeGlow 2s ease-in-out infinite, floatingPrizeBounce 3s ease-in-out infinite;

  max-width: 80%;
  line-height: 1.3;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
}

@keyframes floatingPrizeGlow {
  0%, 100% {
    text-shadow:
      0 0 10px rgba(255, 230, 109, 0.8),
      0 0 20px rgba(255, 230, 109, 0.6),
      0 0 30px rgba(255, 230, 109, 0.4),
      0 4px 8px rgba(0, 0, 0, 0.8);
  }
  50% {
    text-shadow:
      0 0 20px rgba(255, 230, 109, 1),
      0 0 30px rgba(255, 230, 109, 0.8),
      0 0 40px rgba(255, 230, 109, 0.6),
      0 4px 8px rgba(0, 0, 0, 0.8);
  }
}

@keyframes floatingPrizeBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #FFE66D;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.required-indicator {
  color: #ff4444;
  font-size: 16px;
  font-weight: bold;
  margin-left: 4px;
  vertical-align: middle;
  animation: requiredPulse 2s ease-in-out infinite;
}

@keyframes requiredPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 230, 109, 0.3);
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: #FFE66D;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 15px rgba(255, 230, 109, 0.3);
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input.invalid {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.form-group input.valid {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

/* Textarea styling (same as input) */
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 230, 109, 0.3);
  border-radius: 8px;
  outline: none;
  transition: all 0.3s ease;
  resize: vertical;
  min-height: 80px;
}

.form-group textarea:focus {
  border-color: #FFE66D;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 15px rgba(255, 230, 109, 0.3);
}

.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group textarea.invalid {
  border-color: #ff4444;
  background: rgba(255, 68, 68, 0.1);
  box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.form-group textarea.valid {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.form-actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.form-actions button {
  flex: 1;
  padding: 12px 20px;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  transition: all 0.3s ease;
}

.submit-btn:disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: not-allowed;
  opacity: 0.7;
}

.submit-btn.active {
  background: linear-gradient(135deg, #FFE66D, #FDC830);
  color: #1a2f1d;
  box-shadow: 0 4px 15px rgba(255, 230, 109, 0.4);
  cursor: pointer;
  border: none;
}

.submit-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 230, 109, 0.6);
}

.submit-btn.active:active {
  transform: translateY(0);
}

.cancel-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.cancel-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ========== Wheel Authentication Overlay ========== */
.wheel-auth-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.wheel-auth-overlay.hidden {
  display: none;
}

.wheel-auth-container {
  background: linear-gradient(135deg, rgba(26, 58, 46, 0.95), rgba(13, 31, 24, 0.95));
  border: 2px solid rgba(74, 124, 89, 0.5);
  border-radius: 20px;
  padding: 40px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wheel-auth-container h2 {
  color: #FFE66D;
  font-size: 28px;
  margin-bottom: 10px;
  text-align: center;
  font-family: 'Lato Bold', sans-serif;
  text-shadow: 0 2px 10px rgba(255, 230, 109, 0.3);
}

.wheel-auth-container p {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 25px;
  font-size: 14px;
}

.wheel-auth-container .form-group {
  margin-bottom: 20px;
}

.wheel-auth-container label {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 500;
}

.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  width: 100%;
  padding: 12px 45px 12px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(74, 124, 89, 0.3);
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.password-input-wrapper input:focus {
  outline: none;
  border-color: #4A7C59;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 15px rgba(74, 124, 89, 0.3);
}

.toggle-password {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: rgba(255, 255, 255, 0.9);
}

.toggle-password .eye-icon {
  stroke-width: 2px;
}

.wheel-auth-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #4A7C59, #2F5233);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wheel-auth-btn:hover {
  background: linear-gradient(135deg, #5a8c69, #3f6243);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 124, 89, 0.4);
}

.wheel-auth-btn:active {
  transform: translateY(0);
}

.wheel-auth-error {
  margin-top: 15px;
  padding: 12px;
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  border-radius: 8px;
  color: #ff6b6b;
  font-size: 14px;
  text-align: center;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}
