* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  color: #fff;
}

/* 🌌 ANIME BACKGROUND */
.bg {
  position: fixed;
  inset: 0;
  background:
    url("/CFMods/user/bg.png")
    center / cover no-repeat;
  filter: blur(0.1px) brightness(0.8);
  z-index: -2;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, #7c3aed44, #160027ee);
  z-index: -1;
}

.anime-character {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom) - 10px);
  right: 10px;
  width: 420px;
  height: 620px;

  background: url("/CFMods/user/character.png") bottom right / contain no-repeat;

  opacity: 0.95;
  pointer-events: none;
  z-index: 2;

  /* 🔥 THIS is the magic */
  filter:
    drop-shadow(0 0 25px rgba(168,85,247,0.55))
    drop-shadow(0 0 60px rgba(88,28,135,0.35));

  animation: float 6s ease-in-out infinite;
}

.anime-character::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.06),
    transparent 70%
  );
}

.panel {
  position: relative;
  z-index: 5;
}

.card {
  position: relative;
  z-index: 6;
}

@media (max-width: 768px) {
  .anime-character {
    width: 240px;
    height: 360px;
    right: -60px;
    opacity: 0.6;
  }
}

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

/* 🧊 PANEL */
.panel {
  min-height: 100vh;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeUp 1s ease;
}

.panel-header {
  text-align: center;
  margin-bottom: 40px;
}

.panel-header h1 {
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 0 25px #a855f7;
}

.panel-header p {
  font-size: 14px;
  color: #d8b4fe;
}

/* 🃏 CARDS */
.cards {
  display: grid;
  gap: 26px;
  width: 100%;
  max-width: 900px;
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  padding: 28px;
  border-radius: 22px;
  backdrop-filter: blur(16px);
  animation: pop 0.7s ease;
}

.glass {
  background: rgba(40,10,70,0.6);
  box-shadow: 0 0 30px rgba(168,85,247,0.45);
}

.neon {
  background: linear-gradient(145deg,#3b0764,#581c87);
  box-shadow: 0 0 45px rgba(192,132,252,0.8);
}

.card h2 {
  font-size: 20px;
  margin-bottom: 6px;
}

.card-sub {
  font-size: 13px;
  color: #cbb6ff;
  display: block;
  margin-bottom: 20px;
}

/* 🧾 INPUT */
.field {
  position: relative;
  margin-bottom: 20px;
}

.field i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #c084fc;
}

.field input {
  width: 100%;
  height: 52px;
  padding-left: 46px;
  background: rgba(0,0,0,0.25);
  border: 1px solid #7c3aed;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
}

.field input:focus {
  outline: none;
  box-shadow: 0 0 12px #a855f7;
}

/* 🔘 BUTTONS */
.btn {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
  
  position: relative;   /* already good */
  overflow: hidden;
}

.btn i {
  margin-right: 6px;
}

.btn.primary {
  background: linear-gradient(135deg,#7c3aed,#a855f7);
  box-shadow: 0 0 20px #a855f7;
}

.btn.danger {
  background: linear-gradient(135deg,#dc2626,#7f1d1d);
  box-shadow: 0 0 20px #ef4444;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

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

/* 📋 RESULT */
.result {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeUp 0.6s ease;
}

.result .row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
}

.result span {
  color: #cbb6ff;
}

.result b {
  color: #fff;
}

/* 🎞 ANIMATIONS */
@keyframes fadeUp {
  from { opacity:0; transform: translateY(30px); }
  to { opacity:1; transform: translateY(0); }
}

@keyframes pop {
  from { opacity:0; transform: scale(0.95); }
  to { opacity:1; transform: scale(1); }
}

/* 🔔 TOASTS */
#toast-container {
  position: fixed;
  top: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.toast {
  min-width: 240px;
  padding: 14px 16px;
  border-radius: 14px;
  backdrop-filter: blur(14px);
  background: rgba(40,10,70,0.85);
  box-shadow: 0 0 30px rgba(168,85,247,0.5);
  color: #fff;
  font-size: 13px;
  animation: slideIn 0.4s ease forwards;
  position: relative;
  overflow: hidden;
}

.toast.success { border-left: 4px solid #22c55e; }
.toast.error   { border-left: 4px solid #ef4444; }
.toast.loading { border-left: 4px solid #a855f7; }

.toast::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: rgba(255,255,255,0.4);
  animation: toastBar 3s linear forwards;
}

@keyframes toastBar {
  to { width: 0%; }
}

@keyframes slideIn {
  from { opacity:0; transform: translateX(30px) scale(0.95); }
  to   { opacity:1; transform: translateX(0) scale(1); }
}

.btn.loading {
  pointer-events: none;
  position: relative;
  background: linear-gradient(135deg,#6b21a8,#9333ea);
}

.btn.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255,255,255,0.4),
    transparent
  );
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

@media (max-width: 768px) {
  .anime-character {
    width: 260px;
    height: 380px;
    right: -30px;
    opacity: 0.55;
  }
}

/* 🚫 FULL SITE DISABLE */
.site-disabled {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(10,0,20,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.disabled-box {
  background: linear-gradient(145deg,#3b0764,#581c87);
  padding: 40px 32px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 0 50px rgba(168,85,247,0.8);
  animation: pop 0.6s ease;
}

.disabled-box i {
  font-size: 40px;
  color: #fca5a5;
  margin-bottom: 14px;
}

.disabled-box h2 {
  font-size: 22px;
  margin-bottom: 10px;
  text-shadow: 0 0 20px #f472b6;
}

.disabled-box p {
  font-size: 14px;
  color: #fecaca;
  line-height: 1.6;
}