body{
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: white;
}
.page-loader{
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.page-loader.active{
  opacity: 1;
  pointer-events: all;
}
.loader-spinner{
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,.2);
  border-top: 4px solid #00ffcc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin{
  to{ transform: rotate(360deg); }
}

footer {
   text-align: center;
   padding: 10px 20px;
   font-size: 0.9em;
   color: #888;
   border-top: 1px solid rgba(255,255,255,0.1);
} 
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: linear-gradient(180deg, #151922, #0f131b);
  display: flex;
  align-items: center; 
  box-shadow: 0 4px 20px rgba(0,0,0,.6);
  z-index: 1000;
}
.sss-header {
  padding: 10px 32px;
  font-size: 20px;
  color: #00ffcc;
  align-items: center;   
}
.terms-btns{
  background:none;
  border:none;
  color:#ccc;
  font-size:16px;
  cursor:pointer;
  margin-top: 15px;
  padding:10px;
  transition:0.2s;
}
a{
  text-decoration:none;
}
.freemine {
  position: absolute;
  left: 70px;
  font-size: 12px;
  color: #333;
  border-radius: 10px;
  padding: 4px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);  
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 0 20px rgba(17,232,32,0.5);
  animation: textBlink 3s infinite;
}
@keyframes textBlink {
  0% { color:#00ff99; }
  50% { color:#ffffff; }
  100% { color:#00ff99; }
}

.mode-wrapper {
  display: flex;
  align-items: center;
  width: 100%;
}
.right-group {
  margin-left: auto; 
  display: flex;
  align-items: center;
  gap: 12px;  
}
.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}
.auth-tabs button {
  background: none;
  border: none;
  color: #888;
  font-weight: bold;
  cursor: pointer;
  padding: 6px 12px;
  font-size: 16px;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}
.auth-tabs button.active {
  color: #00ff6a;
  border-bottom: 2px solid #a57bff;
} 
.main-contentlogin {
  margin: auto;
  margin-top: 70px;
  text-align: center;
  padding: 60px;
}
.tagline {
  font-size: 18px;
  color: #aaa;
  margin-bottom: 15px;
}
.description {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #ccc;
}
.main-contentlogin h1{
  display:flex;
  align-items:center; 
  justify-content:center; 
  gap:10px;            
}  
h1 svg{
  width:40px;
  height:40px;
  flex-shrink:0;
}
.started {
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}
.signup-bonus{
  margin-bottom:12px;
  font-size:14px;
  color:#ccc;
  text-align:center;
}
.signup-bonus b{
  color:#00ff99;
  font-weight:600;
}
#getStartedBtn {
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  color: #11e820;
  cursor: pointer;
  transition: 0.3s;
}
#getStartedBtn:hover {
  background: rgba(17,232,32,0.1);
  box-shadow: 0 0 20px rgba(17,232,32,0.5);
}  
  
.feature-box {
  background: rgba(255,255,255,0.05);
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
}
/* ===== POPUP OVERLAY ===== */
#authSection {
  margin-top: 30px;
  margin-bottom: 30px;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  max-width: 420px;
  background: #111;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 40px rgba(0, 255, 150, 0.2);
  z-index: 1100;
  text-align: center;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

/* ===== CLOSE BUTTON ===== */
.close-btn {
  position: absolute;
  top: 12px;
  right: 15px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}
.close-btn:hover {
  color: #00ff99;
}
.login-googlemode {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  background: #fff;
  color: #333;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
}
.login-googlemode img {
  width: 18px;
  height: 18px;
}
.app-actions {
  margin: 40px auto;
  max-width: 500px;
  padding: 25px;
  padding-top: 70px; 
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.actions button {
  flex: 1;
}
.referral-field input{
  width:100%;
  padding:10px;
  border-radius:6px;
  border:1px solid #ccc;
  background:#0f0f0f;
  color:#ccc;
  margin: 8px 0;
  box-sizing:border-box;
}
.referral-field input[readonly]{
  background:#1a1a1a;
  color:#00ff88;
  border:1px solid #00ff88;
}
input {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}
small {
  font-size: 12px;
  color: #aaa;
}
button {
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}
#registerBtn { background: #4CAF50; color: white; }
#emailLoginBtn { background: #2196F3; color: white; }
button:hover { opacity: 0.9; }
.loading {
  opacity: 0.6;
  pointer-events: none;
}
.recaptcha-login {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
  border-radius: 12px;
}
.g-recaptcha {
  transform-origin: center;
}
/* ================= PASSWORD FIELD ================= */
.switch-mode button { background: none; border: none; color: #a57bff; cursor: pointer; font-weight: bold; }
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrapper input {
  width: 100%;
  padding-right: 40px;
}
.password-wrapper button {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #aaa;
}
/* ================= CONFIRM PASSWORD ANIMATION ================= */
.confirm-field {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.35s ease;
}
.register-mode .confirm-field {
  max-height: 80px;
  opacity: 1;
  margin-top: 8px;
}
/* ================= SUBMIT BUTTON ================= */
#submitBtn {
  width: 100%;
  margin-top: 15px;
  background: #a57bff;
  color: white;
  font-weight: bold;
}
#submitBtn:hover {
  box-shadow: 0 0 10px rgba(165,123,255,.6);
}
/* === fanContainer === */
.mining-coin {
  position: absolute;
  width: 22px;
  height: 22px;
  pointer-events: none;
  animation: floatCoin 3s ease-out forwards;
}
@keyframes floatCoin {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.7);
    opacity: 1;
  }
  50% {
    transform: translateY(-90px) rotate(180deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-180px) rotate(360deg) scale(1.1);
    opacity: 0;
  }
}  
.mining-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  overflow: hidden;
}  
.live-mining {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 10px 40px; 
  border-radius: 15px;
  margin: 0; 
} 
#fanContainer{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  gap: 15px;
  margin: 0;
  margin-top: 15px;
  margin-bottom: 15px;
}
/* Fan Body */
.gpu-fan{
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, #1a1a1a 40%, #000 100%);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 15px rgba(0,255,150,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Stop state */
.fan-blade.paused{
  animation-play-state: paused;
}
/* Blade */
.fan-blade{
  width: 40px;
  height: 40px;
  background: conic-gradient(
    #00ffcc 0deg 60deg,
    transparent 60deg 120deg,
    #00ffcc 120deg 180deg,
    transparent 180deg 240deg,
    #00ffcc 240deg 300deg,
    transparent 300deg 360deg
  );
  border-radius: 50%;
  animation: spinFan 1s linear infinite;
}
/* Center dot */
.gpu-fan::after{
  content: "";
  width: 8px;
  height: 8px;
  background: #00ffcc;
  border-radius: 50%;
  position: absolute;
}
/* Spin animation */
@keyframes spinFan{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
} 
.gpu-dashboard {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 100px;
  margin: 0;
}
.gpu-bar {
  width: 5px;
  height: 60px;
  background: linear-gradient(to top, #00ff99, #00ccff);
  border-radius: 4px;
  transition: height 0.4s ease-in-out;
  box-shadow: 0 0 8px rgba(0,255,150,0.4);
}
#gpu1  { background: linear-gradient(to top, #a57bff, #7f5af0); }
#gpu2  { background: linear-gradient(to top, #ff7b7b, #ff4f4f); }
#gpu3  { background: linear-gradient(to top, #00ff88, #00c3ff); }
#gpu4  { background: linear-gradient(to top, #ffd700, #ffb800); }
#gpu5  { background: linear-gradient(to top, #ff7b7b, #ff4f4f); }
#gpu6  { background: linear-gradient(to top, #a57bff, #7f5af0); }
#gpu7  { background: linear-gradient(to top, #00ffff, #0080ff); }
#gpu8  { background: linear-gradient(to top, #ff69b4, #ff1493); }
#gpu9  { background: linear-gradient(to top, #7fff00, #32cd32); }
#gpu10 { background: linear-gradient(to top, #ffa500, #ff4500); }
#gpu11 { background: linear-gradient(to top, #ff1493, #c71585); }
#gpu12 { background: linear-gradient(to top, #9370db, #8a2be2); }

.glow-up{
  animation: glowEffect 1s ease;
}
@keyframes glowEffect{
  0%{ box-shadow:0 0 0px gold; }
  50%{ box-shadow:0 0 25px gold; }
  100%{ box-shadow:0 0 0px gold; }
}  

.how-it-works {
  margin-top: 20px;
  text-align: center;
  padding: 40px 20px;
}

.how-it-works h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.how-it-works .subtitle {
  color: #aaa;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 12px;
  transition: 0.3s ease;
  border: 1px solid #2a2a2a;
}

.step:hover {
  transform: translateY(-5px);
  border-color: #00ffcc;
}

.step-number {
  width: 40px;
  height: 40px;
  background: #00ffcc;
  color: #000;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.step p {
  font-size: 14px;
  color: #bbb;
}

.why-choose {
  margin-top: 20px;
  padding: 50px 20px;
  text-align: center;
}

.why-choose h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.why-choose .subtitle {
  color: #aaa;
  margin-bottom: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.feature {
  background: #1a1a1a;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  transition: 0.3s ease;
}

.feature:hover {
  transform: translateY(-6px);
  border-color: #00ffcc;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.feature p {
  font-size: 14px;
  color: #bbb;
}


.supported-coins {
  margin-top: 20px;
  padding: 60px 20px;
  text-align: center;
}

.supported-coins h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.supported-coins .subtitle {
  color: #aaa;
  margin-bottom: 40px;
}

.coin-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.coin-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.3s ease;
}

.coin-item img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: 0.3s ease;
}
.coin-item span {
  margin-top: 8px;
  font-size: 14px;
  color: #bbb;
}
.coin-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}
.coin-item:hover span {
  color: #00ffcc;
}

 /* TOAST */
.toast {
  position: fixed;
  top: 150px;           
  right: 100px;
  background: #1e1e1e;
  color: #00ff88;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-20px);  
  transition: all 0.3s ease;
  z-index: 3000;
  pointer-events: none;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}
.toast{
  line-height: 1.6;
}

/* ===== MOBILE FIX POPUP ===== */
@media (max-width: 768px){
  #authSection{
      max-height: 85vh;
      padding: 20px;
      overflow-y: auto;  
    }
  .main-contentlogin {
    margin: auto;
    margin-top: 50px;
    text-align: center;
    padding: 40px;
  }
  .freemine {
    margin: auto;
    margin-bottom: 10px;
    left: 30px;
    font-size: 12px;
    color: #333;
    border-radius: 10px;
    padding: 4px;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);  
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 0 20px rgba(17,232,32,0.5);
    animation: textBlink 3s infinite;
  }
 @keyframes textBlink {
    0% { color:#00ff99; }
    50% { color:#ffffff; }
    100% { color:#00ff99; }
  }
.main-contentlogin h1{
  align-items:center; 
  justify-content:center; 
  margin-top: 40px;
  gap:10px;            
 }  
h1 svg{
  width:30px;
  height:30px;
  flex-shrink:0;
  }  
}

