/* === 🌿 Bean Machine — Cyber DeFi Theme (fixed) === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root{
  --g:#22c55e;            /* base neon */
  --g-soft:#57cc75;       /* soft neon */
  --bg0:#030303;
  --bg1:#0a0f0a;
  --ink:#e0ffe6;
}

/* Base */
body {
  background: radial-gradient(circle at 50% 10%, var(--bg1) 0%, var(--bg0) 100%);
  color: var(--ink);
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
  animation: pageFade 1s ease;
}

/* Titles glow */
.neon-green {
  color: var(--g-soft);
  text-shadow: 0 0 10px var(--g), 0 0 20px rgba(34,197,94,.5), 0 0 40px rgba(34,197,94,.25);
  transition: text-shadow .4s ease;
}
.neon-green:hover{ text-shadow: 0 0 20px var(--g), 0 0 40px rgba(34,197,94,.7); }

@keyframes pulseGlow {
  0%,100% { text-shadow: 0 0 10px var(--g), 0 0 20px rgba(34,197,94,.35); }
  50%     { text-shadow: 0 0 25px var(--g), 0 0 50px rgba(34,197,94,.7); }
}
.animate-pulse-glow { animation: pulseGlow 2.8s ease-in-out infinite; }

/* Cards */
.card-dark {
  background: rgba(10,10,10,.9);
  border: 1px solid rgba(87,204,117,.2);
  box-shadow: 0 0 25px rgba(34,197,94,.10), inset 0 0 15px rgba(34,197,94,.05);
  border-radius: 1.25rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.card-dark:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(34,197,94,.35);
  border-color: rgba(87,204,117,.45);
}

/* Grid tiles (override Tailwind bg) */
.bg-gray-800{
  background: rgba(15,15,15,.92) !important;
  border: 1px solid rgba(87,204,117,.15);
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.bg-gray-800:hover{
  transform: translateY(-2px);
  border-color: rgba(87,204,117,.6);
  box-shadow: 0 0 25px rgba(34,197,94,.35);
}

/* Buttons */
.neon-btn{
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: rgba(87,204,117,.15);
  border: 1px solid rgba(87,204,117,.4);
  color: #b7ffcb;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 12px;
  box-shadow: 0 0 8px rgba(34,197,94,.15);
  transition: transform .35s ease, box-shadow .35s ease, color .35s ease, background .35s ease, border-color .35s ease;
  will-change: transform, box-shadow;
}
.neon-btn:hover{
  color:#fff;
  background: rgba(87,204,117,.32);
  border-color: var(--g);
  box-shadow: 0 0 20px rgba(34,197,94,.4), inset 0 0 10px rgba(34,197,94,.18);
  transform: translateY(-2px);
}
.neon-btn:active{
  transform: translateY(0) scale(.98);
  box-shadow: 0 0 10px rgba(34,197,94,.25) inset;
}

.neon-btn::before{
  content:"";
  position:absolute;
  inset:-30%;
  border-radius:inherit;
  background: radial-gradient(40% 40% at 50% 50%, rgba(87,204,117,.25), transparent 70%);
  transform: scale(0);
  opacity:0;
  transition: transform .4s ease, opacity .4s ease;
  pointer-events:none;
}
.neon-btn:hover::before{
  transform: scale(1);
  opacity:1;
}

/* Inputs */
input{
  background: rgba(10,10,10,.7);
  border:1px solid rgba(87,204,117,.22);
  border-radius:12px;
  color:var(--ink);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
input::placeholder{ color: #94a3b8; opacity:.7; }
input:focus{
  border-color: var(--g);
  box-shadow: 0 0 14px rgba(34,197,94,.45);
  outline: none;
  background: rgba(10,10,10,.82);
}

/* Modals */
#claimModal > div, #confirmModal > div{
  background: rgba(15,15,15,.96);
  box-shadow: 0 0 40px rgba(34,197,94,.22), inset 0 0 10px rgba(34,197,94,.12);
  border: 1px solid rgba(87,204,117,.25);
}

/* Scrollbar */
::-webkit-scrollbar{ width:8px; }
::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, var(--g), var(--g-soft));
  border-radius:6px;
}
::-webkit-scrollbar-track{ background:#0a0a0a; }

/* Toasts */
.toast-success{
  background: rgba(34,197,94,.15);
  border:1px solid rgba(87,204,117,.4);
  box-shadow: 0 0 30px rgba(87,204,117,.3);
  backdrop-filter: blur(8px);
  border-radius:14px;
}
.toast-fail{
  background: rgba(239,68,68,.15);
  border:1px solid rgba(239,68,68,.4);
  box-shadow: 0 0 25px rgba(239,68,68,.3);
  backdrop-filter: blur(8px);
  border-radius:14px;
}

/* Page animation */
@keyframes pageFade{
  from{ opacity:0; transform: translateY(10px); }
  to  { opacity:1; transform: translateY(0); }
}

/* Reduced motion respect */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* Mobile tweaks */
@media (max-width:640px){
  h1{ font-size:1.9rem; }
  .card-dark{ padding:1.25rem; }
  .neon-btn{ font-size:.95rem; }
}



/* === 🟢 BEANMACHINE CONNECT SCREEN === */

/* 全屏背景 */
#connectContainer {
  background: radial-gradient(circle at 50% 30%, #0a0f0a 0%, #020202 100%);
  animation: fadeIn 1.2s ease-out;
  font-family: 'Poppins', 'Noto Sans SC', sans-serif;
  text-shadow: 0 0 12px rgba(34,197,94,0.2);
}

/* 语言切换按钮 */
.lang-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b7ffcb;
  background: rgba(87,204,117,0.15);
  border: 1px solid rgba(87,204,117,0.3);
  border-radius: 10px;
  padding: 6px 12px;
  text-shadow: 0 0 6px rgba(34,197,94,0.4);
  transition: all 0.3s ease;
}
.lang-toggle:hover {
  color: white;
  background: rgba(87,204,117,0.35);
  box-shadow: 0 0 18px rgba(34,197,94,0.4);
  transform: translateY(-2px);
}

/* LOGO 动画 */
.logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1;
  margin-bottom: 1rem;
  user-select: none;
}

.title-bean {
  font-size: clamp(3.5rem, 9vw, 5rem);
  background: linear-gradient(90deg, #22c55e, #a7f3d0, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 10px #22c55e80,
    0 0 20px #22c55e60,
    0 0 40px #22c55e30;
  animation: beanPulse 2.5s ease-in-out infinite;
}
.title-machine {
  font-size: clamp(2.2rem, 6vw, 3rem);
  color: #b7ffcb;
  letter-spacing: 6px;
  text-shadow:
    0 0 8px rgba(34,197,94,0.5),
    0 0 16px rgba(34,197,94,0.3);
  opacity: 0.9;
  animation: machineFade 3s ease-in-out infinite alternate;
}

/* 描述文本 */
.description {
  max-width: 480px;
  margin: 0 auto;
  color: #a3a3a3;
  font-size: 0.95rem;
  line-height: 1.7;
  text-align: center;
  animation: fadeSlideUp 1.5s ease both;
}
.description p {
  margin-bottom: 0.5rem;
}
.description p span {
  color: #57cc75;
}

/* CONNECT 按钮 */
.connect-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #eaffea;
  background: linear-gradient(135deg, rgba(87,204,117,0.25), rgba(34,197,94,0.45));
  border: 1px solid rgba(87,204,117,0.35);
  border-radius: 16px;
  padding: 14px 48px;
  font-size: 1.2rem;
  letter-spacing: 0.6px;
  margin-top: 1.5rem;
  box-shadow: 0 0 25px rgba(34,197,94,0.25);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}
.connect-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(87,204,117,0.35) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.8s ease;
}
.connect-btn:hover::before {
  transform: translateX(100%);
}
.connect-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 0 40px rgba(34,197,94,0.45);
  background: linear-gradient(135deg, rgba(87,204,117,0.4), rgba(34,197,94,0.6));
}
.connect-btn:active {
  transform: scale(0.97);
}

/* 钱包模态窗 */
#walletModal {
  backdrop-filter: blur(10px);
}
.wallet-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(87,204,117,0.2);
  border-radius: 12px;
  padding: 10px;
  color: #b7ffcb;
  font-weight: 600;
  transition: all 0.3s ease;
}
.wallet-option:hover {
  background: rgba(87,204,117,0.2);
  border-color: rgba(87,204,117,0.5);
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 0 20px rgba(34,197,94,0.4);
}

/* 动画 */
@keyframes textGlow {
  0%, 100% {
    filter: drop-shadow(0 0 15px #22c55e80);
  }
  50% {
    filter: drop-shadow(0 0 30px #22c55e);
  }
}

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

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

@keyframes beanPulse {
  0%, 100% {
    text-shadow: 0 0 12px #22c55e80, 0 0 25px #22c55e50;
  }
  50% {
    text-shadow: 0 0 25px #22c55e, 0 0 45px #22c55e90;
  }
}

@keyframes machineFade {
  from { opacity: 0.8; text-shadow: 0 0 10px #22c55e50; }
  to { opacity: 1; text-shadow: 0 0 25px #22c55e; }
}


#langToggle {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 9999 !important; 
  pointer-events: auto !important;

  background: rgba(87, 204, 117, 0.2);
  border: 1px solid rgba(87, 204, 117, 0.4);
  color: #b7ffcb;
  font-weight: 600;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.9rem;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
  transition: all 0.3s ease;
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

#langToggle:hover {
  background: rgba(87, 204, 117, 0.4);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(34, 197, 94, 0.5);
}

#langToggle:active {
  transform: scale(0.97);
}

#langToggle {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


#langToggle {
  animation: holoGlow 3s ease-in-out infinite;
}

@keyframes holoGlow {
  0%, 100% {
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
  }
  50% {
    box-shadow: 0 0 24px rgba(34, 197, 94, 0.7), 0 0 45px rgba(34, 197, 94, 0.3);
  }
}

/* === END BEANMACHINE CONNECT SCREEN === */


@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
.animate-modalScale {
  animation: modalFadeIn 0.25s ease forwards;
}


/* TEST */

html, body {
  overscroll-behavior: none;
}



@keyframes fade-in {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fade-out {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.9); }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-out forwards;
}

.animate-fade-out {
  animation: fade-out 0.25s ease-in forwards;
}

