/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; width: 100%; font-family: 'Orbitron', 'Segoe UI', Arial, sans-serif; background: #0a0a1a; color: #fff; overflow-x: hidden; }
body { min-height: 100vh; position: relative; }

/* Animated Background Canvas */
#bg-canvas { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; background: none; }

/* Neon & Glassmorphism */
.neon-title { font-size: 2.8rem; color: #fff; text-shadow: 0 0 12px #0ff, 0 0 32px #0ff, 0 0 64px #0ff; letter-spacing: 2px; margin-bottom: 2rem; }
.stake-title { font-size: 2.2rem; color: #fff; text-shadow: 0 0 8px #0ff, 0 0 24px #0ff; margin-bottom: 1.5rem; }
.neon-btn { background: linear-gradient(90deg, #ff00cc 0%, #3333ff 100%); color: #fff; border: none; border-radius: 1.5em; padding: 1em 2.5em; font-size: 1.2rem; font-weight: bold; box-shadow: 0 0 16px #0ff, 0 0 32px #ff00cc; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s, background 0.3s; margin: 1.5rem 0; }
.neon-btn:hover { transform: scale(1.05); box-shadow: 0 0 32px #0ff, 0 0 64px #ff00cc; background: linear-gradient(90deg, #3333ff 0%, #ff00cc 100%); }
.neon-btn.small { padding: 0.5em 1.2em; font-size: 1rem; }

.glass { background: rgba(20, 20, 40, 0.55); box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37); backdrop-filter: blur(8px); border-radius: 1.2em; border: 1px solid rgba(255,255,255,0.18); }

/* Pop Message */
#pop-message { position: fixed; top: 2.5rem; right: 2.5rem; z-index: 100; padding: 1.2em 2em; font-size: 1.1rem; color: #fff; opacity: 0; pointer-events: none; transition: opacity 0.5s, transform 0.5s; }
#pop-message.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#pop-message.hidden { opacity: 0; transform: translateY(-30px); }

/* Pages */
.page { display: none; min-height: 100vh; width: 100vw; align-items: center; justify-content: center; position: absolute; top: 0; left: 0; z-index: 2; transition: opacity 0.7s cubic-bezier(.4,2,.6,1), visibility 0.7s; opacity: 0; visibility: hidden; }
.page.active { display: flex; opacity: 1; visibility: visible; z-index: 10; }

.center-content { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100vw; min-height: 100vh; }
.info-text { margin-top: 2.5rem; max-width: 600px; text-align: center; font-size: 1.1rem; color: #fffa; }
.info-text p { margin-bottom: 1rem; }

/* Form Page */
.stake-form-card {
  background: rgba(36,44,60,0.92);
  border: 1.5px solid #0ff3;
  border-radius: 1em;
  padding: 1.5em;
  width: 100%;
  max-width: 360px;
  margin: 1em auto;
}
.stake-form-title {
  color: #0ff;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 1.5em;
  font-family: 'Orbitron', sans-serif;
}
.stake-form-label {
  color: #0ff;
  font-size: 1rem;
  margin-bottom: 0.5em;
  display: block;
  font-weight: 700 !important;
}
.stake-form-input, .stake-form-select {
  width: 100%;
  background: rgba(20,26,36,0.95);
  border: 1.5px solid #0ff3;
  border-radius: 0.6em;
  padding: 0.8em 1em;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1em;
}
.stake-form-qr {
  display: flex;
  justify-content: center;
  margin: 1.5em auto;
  background: none;
  border: none;
  box-shadow: none;
}
.stake-form-qr img {
  width: 180px;
  height: 180px;
  border-radius: 0;
  box-shadow: none;
}
.wallet-input-row {
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: rgba(36,44,60,0.97);
  border-radius: 0.9em;
  border: 2px solid #0ff3;
  box-shadow: 0 0 12px #0ff2, 0 0 8px #16a34a33;
  padding: 0.5em 1em;
  margin-bottom: 1.2em;
  margin-top: 0.2em;
  transition: box-shadow 0.2s, border 0.2s;
}
.wallet-input-row:focus-within, .wallet-input-row:hover {
  box-shadow: 0 0 24px #0ff6, 0 0 16px #16a34a66;
  border: 2px solid #0ff;
}
#wallet-address {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.13rem;
  font-weight: 700;
  outline: none;
  width: 100%;
  padding: 0.7em 0.2em;
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  letter-spacing: 0.01em;
}
#wallet-address::placeholder {
  color: #b3b8c5;
  font-size: 1.13rem;
  font-weight: 500;
  opacity: 0.7;
}
.view-address-btn.small {
  padding: 0.1em 0.3em;
  font-size: 1.1em;
  margin-left: 0.3em;
  height: 2.1em;
  width: 2.1em;
  min-width: 0;
  background: #232b38;
  border: 1.5px solid #0ff3;
  box-shadow: 0 0 8px #0ff2;
  color: #0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, box-shadow 0.2s, border 0.2s;
}
.view-address-btn.small:hover, .view-address-btn.small:focus {
  background: #0ff2;
  color: #232b38;
  border: 1.5px solid #0ff;
  box-shadow: 0 0 16px #0ff6;
}
.stake-form-address-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 1.2em;
  width: 100%;
  background: rgba(36,44,60,0.97);
  border-radius: 0.9em;
  border: 2px solid #0ff3;
  box-shadow: 0 0 12px #0ff2, 0 0 8px #16a34a33;
  padding: 0.7em 1.1em;
  min-height: 2.5em;
  position: relative;
}
.stake-form-address {
  font-size: 1.08rem;
  color: #fff;
  background: none;
  border: none;
  width: 100%;
  overflow-x: auto;
  white-space: pre-line;
  word-break: break-all;
  outline: none;
  padding: 0;
  margin: 0;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  user-select: all;
}
.stake-copy-btn {
  background: #2196f3 !important;
  color: #fff !important;
  font-size: 1.08rem;
  font-weight: 700;
  border: none;
  border-radius: 0.7em;
  padding: 0.5em 1.3em 0.5em 1em;
  margin-left: 0.7em;
  margin-bottom: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 0.5em;
  height: 2.2em;
  box-shadow: 0 0 12px #2196f388, 0 0 8px #0ff4;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}
.stake-copy-btn:hover, .stake-copy-btn:focus {
  background: #1769aa !important;
  color: #fff !important;
  box-shadow: 0 0 24px #2196f3cc, 0 0 16px #0ff8;
}
.stake-copy-btn .copy-icon {
  display: inline-flex;
  align-items: center;
  font-size: 1.1em;
  margin-left: 0.3em;
}
.stake-submit-btn {
  width: 100%;
  max-width: 320px;
  height: 2.8em;
  font-size: 1.13em;
  font-weight: 700;
  border-radius: 0.7em;
  padding: 0 1.7em;
  margin: 1.2em 0 0 0;
  background: #16a34a;
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 8px #16a34a44;
  transition: background 0.2s;
}
.stake-submit-btn:hover, .stake-submit-btn:focus {
  background: #15803d;
}
.stake-form-file {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 1em;
}
.stake-form-card input[type="file"]::file-selector-button {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 0.5em;
  padding: 0.4em 1.1em;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  margin-right: 0.7em;
}
.stake-form-card input[type="file"]:hover::file-selector-button {
  background: #1e40af;
}
.stake-form-card .error-msg {
  color: #ff3c6a;
  font-size: 0.98rem;
  margin-bottom: 0.5em;
  min-height: 1.2em;
  text-shadow: 0 0 8px #ff3c6a88;
}
@media (max-width: 500px) {
  .stake-form-card { padding: 1.2em 0.3em; max-width: 98vw; }
  .stake-form-qr img { width: 100px; height: 100px; }
}
@media (max-width: 600px) {
  .stake-form-card {
    width: 320px;
    max-width: 320px;
    padding: 1.2em;
    margin: 0.8em auto;
  }

  .stake-form-qr img {
    width: 160px;
    height: 160px;
  }

  .stake-form-title {
    font-size: 1.4rem;
    margin-bottom: 1.2em;
  }

  .stake-form-input, .stake-form-select {
    padding: 0.7em 0.9em;
    font-size: 0.95rem;
  }

  .stake-form-label {
    font-size: 0.95rem;
    margin-bottom: 0.4em;
  }

  .stake-amount-details {
    width: 100%;
    max-width: 320px;
    padding: 1em;
    margin: 0.8em auto;
    border-radius: 0.8em;
  }

  .processing-summary-row {
    padding: 0.4em;
    font-size: 0.95rem;
    gap: 0.5em;
  }

  .screenshot-row-flex {
    width: 100%;
    margin: 0;
  }

  .custom-screenshot-btn {
    width: 100%;
    font-size: 0.95rem;
  }
}

/* Processing Page */
.processing-container { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100vw; min-height: 100vh; }
.sandclock-wrapper { margin: 2.5rem 0 1.5rem 0; }
#sandclock { width: 90px; height: 90px; margin: 0 auto; }

/* Sandclock Animation */
#sandclock {
  background: none;
  position: relative;
}
#sandclock:before, #sandclock:after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
}
#sandclock:before {
  width: 80px; height: 80px;
  border: 6px solid #ffe066;
  border-top: 6px solid #fff200;
  border-bottom: 6px solid #fff200;
  animation: spin 1.2s linear infinite;
}
#sandclock:after {
  width: 40px; height: 40px;
  top: 20px;
  background: radial-gradient(circle, #ffe066 60%, #fff200 100%);
  box-shadow: 0 0 24px #ffe06688;
  animation: sandpulse 1.2s ease-in-out infinite alternate;
}
@keyframes spin { 100% { transform: translateX(-50%) rotate(360deg); } }
@keyframes sandpulse { 0% { opacity: 1; } 100% { opacity: 0.7; } }

.summary-box { margin: 1.5rem 0; padding: 1.5em 2em; font-size: 1.1rem; }
.summary-box div { margin-bottom: 0.7em; }

/* Responsive */
@media (max-width: 600px) {
  .form-container, .summary-box { padding: 1.2em 0.5em; }
  .qr-row { flex-direction: column; gap: 0.5em; }
  #crypto-address { width: 100%; }
  .center-content { padding: 1em; }
}

/* Hide file input default */
input[type="file"]::-webkit-file-upload-button { visibility: hidden; }
input[type="file"]::before {
  content: 'Choose Screenshot';
  display: inline-block;
  background: linear-gradient(90deg, #ff00cc 0%, #3333ff 100%);
  color: #fff;
  border-radius: 0.8em;
  padding: 0.5em 1.2em;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 0 8px #0ff, 0 0 16px #ff00cc;
  cursor: pointer;
  margin-right: 1em;
}
input[type="file"]:hover::before { background: linear-gradient(90deg, #3333ff 0%, #ff00cc 100%); }

/* Transitions */
.page, .form-container, .summary-box, .glass, .neon-btn { transition: all 0.4s cubic-bezier(.4,2,.6,1); }

/* Stake.com/Stake.us Theme Colors */
:root {
  --stake-bg: #23272F;
  --stake-card: #2C313A;
  --stake-accent: #0ff;
  --stake-btn: #2C313A;
  --stake-btn-hover: #0ff;
  --stake-btn-text: #fff;
  --stake-info: #b3b8c5;
}

body, html { background: var(--stake-bg); }

.stake-home {
  background: linear-gradient(120deg, #232b38 60%, #0ff1 100%);
  border-radius: 2em;
  box-shadow: 0 0 48px #0ff4, 0 0 96px #16a34a22, 0 8px 32px #0008;
  padding: 3.5em 2.5em 2.5em 2.5em;
  max-width: 700px;
  min-width: 340px;
  width: 95vw;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2.5px solid #0ff3;
  position: relative;
  overflow: visible;
}
.stake-mascot {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 1.5em;
}
.stake-home-title { font-size: 2.3rem; color: var(--stake-accent); text-shadow: 0 0 24px #0ff8, 0 0 8px #16a34a88; margin-bottom: 1.2em; font-family: 'Orbitron', 'Montserrat', 'Segoe UI', Arial, sans-serif; }
.stake-btn {
  background: linear-gradient(90deg, #2196f3 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: 1.5em;
  padding: 1.1em 2.7em;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  box-shadow: 0 0 24px #0ff4, 0 0 32px #16a34a33;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  margin: 1.5rem 0;
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.stake-btn:hover, .stake-btn:focus {
  background: linear-gradient(90deg, #16a34a 0%, #2196f3 100%);
  color: #23272F;
  box-shadow: 0 0 48px #0ff8, 0 0 32px #16a34a88;
  transform: scale(1.04);
}
.stake-btn-icon { display: flex; align-items: center; }
.stake-info { color: var(--stake-info); font-size: 1.08rem; margin-top: 2.2rem; }
.stake-info p { margin-bottom: 1rem; }

/* Bigger, more visual snow */
#bg-canvas { background: none; }

/* Blurry background for landing page */
.stake-home::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  backdrop-filter: blur(8px) brightness(0.95);
  background: linear-gradient(120deg, #232b38 60%, #0ff2 100%);
  opacity: 0.85;
}

/* Stake.com Loader Overlay */
.stake-loader-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(30,34,48,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: opacity 0.3s;
}
.stake-loader-overlay.hidden { display: none; opacity: 0; }
.stake-loader-spinner { display: flex; align-items: center; justify-content: center; }

/* Blur background when loader is visible */
body.loading > :not(#stake-loader) {
  filter: blur(7px) brightness(0.9);
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s;
}

/* Mascot image premium look */
.stake-mascot-img {
  display: block;
  margin: 0 auto;
  border-radius: 1.2em;
  border: 3px solid #fff2;
  background: #232b38;
  margin-bottom: 1.2em;
}

/* Button and font improvements */
.stake-title, .stake-home-title {
  font-family: 'Orbitron', 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--stake-accent);
  text-shadow: 0 0 24px #0ff8, 0 0 8px #16a34a88;
  font-size: 2.3rem;
  margin-bottom: 1.2em;
}
body, .stake-info, .stake-form-label, .stake-form-input, .stake-form-select, .stake-form-address, .stake-submit-btn, .processing-summary-row, .processing-note-text {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

/* Full address always visible */
.stake-form-address {
  font-size: 0.98rem;
  color: #fff;
  background: none;
  border: none;
  width: 100%;
  overflow-x: auto;
  white-space: pre-line;
  word-break: break-all;
}

/* Info icon spacing */
.icon-warning { margin-right: 0.4em; vertical-align: middle; }

/* General polish */
.stake-form-card, .stake-home {
  box-shadow: 0 0 32px #0ff2, 0 0 64px #0ff1, 0 8px 32px #0008;
}

/* Info box improvements */
.stake-info-readthis,
.stake-info-box,
.stake-stats-card {
  max-width: 600px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.stake-info-readthis {
  color: #0ff;
  font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px #0ff6;
}
.stake-info-box {
  font-size: 1.08rem;
  margin-bottom: 1.1em;
}
.stake-stats-card {
  margin-top: 1.1em;
  margin-bottom: 1.1em;
  font-size: 1.08rem;
}

/* Stats card and pie chart improvements */
.stake-stats-card {
  background: rgba(36, 44, 60, 0.92);
  border-radius: 1.1em;
  box-shadow: 0 2px 16px #0ff2, 0 1px 8px #0004;
  border: 1.5px solid #0ff3;
  padding: 1.2em 1.2em 1.5em 1.2em;
  margin: 1.2rem auto 0.5rem auto;
  color: #eaf6ff;
  font-size: 1.08rem;
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  max-width: 520px;
  align-items: center;
}
.stake-stats-title {
  color: #0ff;
  font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.7em;
  text-shadow: 0 0 8px #0ff6;
}
.stake-stats-flex {
  display: flex;
  flex-direction: row;
  gap: 2.2em;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
}
.stake-stats-col {
  display: flex;
  flex-direction: column;
  gap: 1.1em;
  min-width: 120px;
}
.stake-stats-item-box {
  background: #1a2230;
  border-radius: 0.7em;
  border: 1.5px solid #0ff3;
  box-shadow: 0 0 8px #0ff2;
  padding: 0.7em 1.1em;
  margin-bottom: 0.2em;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 110px;
}
.stake-stats-label {
  color: #b3b8c5;
  font-size: 0.98em;
  margin-bottom: 0.2em;
}
.stake-stats-value {
  color: #0ff;
  font-size: 1.18em;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.stake-stats-pie-box {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5em;
}
.stake-pie-legend-vertical { display: flex; flex-direction: column; gap: 0.7em; margin-top: 0.2em; margin-left: 1.2em; }
.stake-pie-legend-vertical span { display: flex; align-items: center; font-size: 1em; color: #b3b8c5; }
.pie-dot { width: 16px; height: 16px; border-radius: 50%; margin-right: 0.6em; }

@media (max-width: 700px) {
  .stake-stats-flex { flex-direction: column; gap: 1.2em; align-items: center; }
  .stake-stats-pie-box { min-width: 0; }
}

/* Processing Page Improvements */
.processing-card {
  min-width: 340px;
  max-width: 480px;
  width: 95vw;
  min-height: 70vh;
  margin: 4vh auto;
  background: rgba(36, 44, 60, 0.97);
  border-radius: 1.5em;
  box-shadow: 0 0 32px #0ff2, 0 0 64px #0ff1, 0 8px 32px #0008;
  border: 2.5px solid #0ff3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5em 2em 2em 2em;
  position: relative;
}
.processing-anim-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0ff;
  letter-spacing: 0.04em;
  margin-bottom: 1.2em;
  text-shadow: 0 0 16px #0ff8;
  gap: 0.3em;
}
.anim-flash {
  animation: flashText 1.5s infinite alternate;
}
@keyframes flashText {
  0% { color: #0ff; text-shadow: 0 0 16px #0ff8; }
  100% { color: #fff; text-shadow: 0 0 24px #0ff4; }
}
.anim-dots {
  font-size: 1.5em;
  font-weight: 700;
  color: #0ff;
  letter-spacing: 0.1em;
  animation: dotsAnim 1.2s steps(3, end) infinite;
}
@keyframes dotsAnim {
  0%, 20% { opacity: 1; }
  40% { opacity: 0.7; }
  60% { opacity: 0.5; }
  80%, 100% { opacity: 1; }
}
.sandclock-wrapper {
  margin: 1.5rem 0 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.processing-summary-box {
  background: rgba(36, 44, 60, 0.92);
  border-radius: 1.1em;
  box-shadow: 0 2px 16px #0ff2, 0 1px 8px #0004;
  border: 1.5px solid #0ff3;
  padding: 1.2em 1.2em 1em 1.2em;
  color: #eaf6ff;
  font-size: 1.08rem;
  margin-bottom: 1.5em;
  margin-top: 0.5em;
  width: 100%;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.processing-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7em;
  font-size: 1.07em;
}
.processing-btn {
  margin-top: 1.2em;
  width: 100%;
  max-width: 320px;
  font-size: 1.13em;
}
@media (max-width: 600px) {
  .processing-card { padding: 1.2em 0.3em; min-width: 0; max-width: 99vw; }
  .processing-summary-box { padding: 0.7em 0.3em; max-width: 99vw; }
}

/* Required QR upload */
.stake-form-upload-box label:after { content: ' *'; color: #e53963; font-weight: bold; }
.stake-form-upload-box .required-note { color: #e53963; font-size: 0.98em; margin-top: 0.3em; }

@media (max-width: 900px) {
  .stake-home, .stake-info-readthis, .stake-info-box, .stake-stats-card { max-width: 99vw; }
}

/* Glassy, colored amount summary */
.amount-summary-colored {
  margin: 1em 0 1.2em 0;
  padding: 1.1em 1.2em;
  border-radius: 1.1em;
  background: rgba(36, 44, 60, 0.97);
  box-shadow: 0 0 24px #0ff4, 0 0 32px #16a34a33;
  border: 1.5px solid #0ff3;
  font-size: 1.13em;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3em;
  color: #fff;
  letter-spacing: 0.01em;
  word-break: break-all;
}
.amount-summary-colored .summary-amount { color: #16a34a; font-weight: 700; text-shadow: 0 0 8px #16a34a88; }
.amount-summary-colored .summary-mult { color: #2196f3; font-weight: 700; text-shadow: 0 0 8px #2196f388; }
.amount-summary-colored .summary-address { color: #e53963; font-weight: 700; text-shadow: 0 0 8px #e5396388; }
.amount-summary-colored .summary-id { color: #0ff; font-weight: 700; }

/* Glassy, glowing box for 'Read this' */
.stake-info-readthis-box {
  background: rgba(36, 44, 60, 0.97);
  border-radius: 1.1em;
  box-shadow: 0 0 24px #0ff4, 0 0 32px #2196f333;
  border: 1.5px solid #0ff3;
  padding: 0.7em 1.2em;
  margin-bottom: 1.1em;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 600px;
}
.stake-info-readthis {
  color: #0ff;
  font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px #0ff6;
}

/* More glowing, gradient, and modern effects for front page */
.stake-home {
  background: linear-gradient(120deg, #232b38 60%, #0ff1 100%);
  border-radius: 2em;
  box-shadow: 0 0 48px #0ff4, 0 0 96px #16a34a22, 0 8px 32px #0008;
  padding: 3.5em 2.5em 2.5em 2.5em;
  max-width: 700px;
  min-width: 340px;
  width: 95vw;
  margin: 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2.5px solid #0ff3;
  position: relative;
  overflow: visible;
}
.stake-mascot-img {
  border-radius: 1.2em;
  border: 3px solid #fff2;
  background: #232b38;
  margin-bottom: 1.2em;
}
.stake-btn {
  background: linear-gradient(90deg, #2196f3 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: 1.5em;
  padding: 1.1em 2.7em;
  font-size: 1.25rem;
  font-weight: 600;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  box-shadow: 0 0 24px #0ff4, 0 0 32px #16a34a33;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
  margin: 1.5rem 0;
  outline: none;
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.stake-btn:hover, .stake-btn:focus {
  background: linear-gradient(90deg, #16a34a 0%, #2196f3 100%);
  color: #23272F;
  box-shadow: 0 0 48px #0ff8, 0 0 32px #16a34a88;
  transform: scale(1.04);
}
.stake-title, .stake-home-title {
  font-family: 'Orbitron', 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--stake-accent);
  text-shadow: 0 0 24px #0ff8, 0 0 8px #16a34a88;
  font-size: 2.3rem;
  margin-bottom: 1.2em;
}

@media (max-width: 900px) {
  .stake-home, .stake-info-readthis, .stake-info-box, .stake-stats-card { max-width: 99vw; }
}

/* Large, glassy, glowing info and stats boxes */
.stake-info-glassbox, .stake-stats-glassbox {
  background: linear-gradient(120deg, rgba(36,44,60,0.97) 80%, #0ff1 100%);
  border-radius: 1.3em;
  box-shadow: 0 0 32px #0ff4, 0 0 64px #16a34a33, 0 8px 32px #0008;
  border: 2.5px solid #0ff3;
  padding: 1.5em 1.7em 1.5em 1.7em;
  margin-bottom: 1.5em;
  color: #eaf6ff;
  font-size: 1.13rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1.1em;
  max-width: 600px;
  width: 100%;
  min-width: 0;
  position: relative;
}
.stake-info-glassbox .icon-warning {
  margin-right: 0.7em;
  vertical-align: middle;
  display: inline-flex;
  align-items: flex-start;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px #ffb30088);
}
.stake-info-glassbox-text {
  flex: 1;
  line-height: 1.6;
  font-size: 1.13rem;
  font-weight: 500;
}
.stake-stats-glassbox {
  background: linear-gradient(120deg, rgba(36,44,60,0.97) 80%, #16a34a22 100%);
  border-radius: 1.3em;
  box-shadow: 0 0 32px #0ff4, 0 0 64px #16a34a33, 0 8px 32px #0008;
  border: 2.5px solid #0ff3;
  padding: 2em 2em 2.2em 2em;
  margin-bottom: 2em;
  margin-top: 1.5em;
  color: #eaf6ff;
  font-size: 1.13rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2em;
  max-width: 600px;
  width: 100%;
  min-width: 0;
  position: relative;
}
.stake-stats-title {
  color: #0ff;
  font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 1.1em;
  text-shadow: 0 0 12px #0ff6;
}
.stake-stats-pie-box.fullpie {
  background: #1a2230;
  border-radius: 1.1em;
  border: 2px solid #0ff3;
  box-shadow: 0 0 16px #0ff4, 0 0 32px #16a34a33;
  padding: 1.2em 1.2em 1.2em 1.2em;
  min-width: 180px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1.2em;
}
#stats-pie-chart.fullpie {
  filter: drop-shadow(0 0 16px #0ff6) drop-shadow(0 0 8px #16a34a88);
  background: none;
  border-radius: 50%;
}
.stake-stats-pie-legend {
  margin-left: 1.2em;
}
.stake-stats-pie-legend span {
  font-size: 1.08em;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}
.stake-stats-pie-legend .pie-dot {
  border: 2px solid #fff;
  box-shadow: 0 0 8px #fff8;
}

@media (max-width: 900px) {
  .stake-home, .stake-info-readthis, .stake-info-box, .stake-stats-card, .stake-info-glassbox, .stake-stats-glassbox { max-width: 99vw; }
}

/* Screenshot submit button - solid purple, all browsers */
.screenshot-btn::-webkit-file-upload-button, .screenshot-btn::file-selector-button, .screenshot-btn input[type='file']::file-selector-button {
  background: #a259f7 !important;
  color: #fff !important;
  border: none;
  border-radius: 0.7em;
  padding: 0.7em 1.5em;
  font-size: 1.08rem;
  font-weight: 600;
  box-shadow: 0 0 12px #a259f788, 0 0 8px #0ff4;
  cursor: pointer;
  margin-right: 1em;
  transition: background 0.2s, box-shadow 0.2s;
}
.screenshot-btn:hover::-webkit-file-upload-button, .screenshot-btn:hover::file-selector-button, .screenshot-btn:hover input[type='file']::file-selector-button {
  background: #7c2ae8 !important;
  color: #fff !important;
  box-shadow: 0 0 24px #a259f7cc, 0 0 16px #0ff8;
}

/* View/eye button and popup for full address */
.view-address-btn {
  background: none;
  border: none;
  padding: 0.2em 0.4em;
  margin-left: 0.5em;
  cursor: pointer;
  border-radius: 0.5em;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
}
.view-address-btn:hover, .view-address-btn:focus {
  background: #0ff2;
}
.full-address-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  background: linear-gradient(120deg, rgba(36,44,60,0.97) 80%, #0ff1 100%);
  border-radius: 1.2em;
  box-shadow: 0 0 32px #0ff8, 0 0 64px #16a34a33, 0 8px 32px #0008;
  border: 2.5px solid #0ff3;
  padding: 2em 2.5em 1.5em 2.5em;
  min-width: 320px;
  max-width: 90vw;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
  animation: popupIn 0.3s cubic-bezier(.4,2,.6,1);
}
@keyframes popupIn {
  0% { opacity: 0; transform: translate(-50%, -60%) scale(0.95); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.full-address-title {
  font-family: 'Orbitron', 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  color: #0ff;
  margin-bottom: 0.5em;
  text-shadow: 0 0 8px #0ff6;
}
#full-address-value {
  font-size: 1.08rem;
  color: #fff;
  background: #1a2230;
  border-radius: 0.7em;
  border: 1.5px solid #0ff3;
  box-shadow: 0 0 8px #0ff2;
  padding: 0.7em 1em;
  word-break: break-all;
  margin-bottom: 1em;
  text-align: center;
}
.stake-btn.small {
  padding: 0.5em 1.2em;
  font-size: 1rem;
  margin: 0.5em 0 0 0;
}

/* Mobile responsiveness improvements */
@media (max-width: 700px) {
  .stake-home, .stake-info-readthis, .stake-info-box, .stake-stats-card, .stake-info-glassbox, .stake-stats-glassbox, .stake-form-card {
    max-width: 99vw;
    padding-left: 0.5em;
    padding-right: 0.5em;
  }
  .stake-stats-flex { flex-direction: column; gap: 1.2em; align-items: center; }
  .stake-stats-pie-box, .stake-stats-pie-box.fullpie { min-width: 0; }
  .stake-form-title { font-size: 1.3rem; }
  .stake-form-label, .stake-info-glassbox-text, .stake-stats-title { font-size: 1rem; }
  .stake-form-input, .stake-form-select { font-size: 0.98rem; }
  .stake-form-card { padding: 1.2em 0.3em; }
}

/* Text alignment improvements */
.stake-info-glassbox, .stake-stats-glassbox, .stake-form-card, .stake-home, .stake-info-readthis-box, .stake-info-box, .stake-stats-card {
  text-align: left;
  align-items: flex-start;
}
.stake-form-title, .stake-stats-title {
  text-align: center;
  width: 100%;
}

/* Processing note button and popup */
.processing-note-row {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  margin-top: 0.7em;
  margin-bottom: 0.5em;
}
.processing-note-btn {
  background: linear-gradient(90deg, #2196f3 0%, #16a34a 100%);
  color: #fff;
  border: none;
  border-radius: 0.7em;
  padding: 0.5em 1.3em;
  font-size: 1.08rem;
  font-weight: 700;
  box-shadow: 0 0 12px #2196f388, 0 0 8px #16a34a44;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  outline: none;
}
.processing-note-btn:hover, .processing-note-btn:focus {
  background: linear-gradient(90deg, #16a34a 0%, #2196f3 100%);
  box-shadow: 0 0 24px #2196f3cc, 0 0 16px #16a34a88;
}
.processing-note-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3000;
  background: linear-gradient(120deg, rgba(36,44,60,0.97) 80%, #0ff1 100%);
  border-radius: 1.2em;
  box-shadow: 0 0 32px #0ff8, 0 0 64px #16a34a33, 0 8px 32px #0008;
  border: 2.5px solid #0ff3;
  padding: 2em 2.5em 1.5em 2.5em;
  min-width: 320px;
  max-width: 90vw;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1em;
  animation: popupIn 0.3s cubic-bezier(.4,2,.6,1);
}
.processing-note-title {
  font-size: 1.18rem;
  font-weight: 900;
  color: #0ff;
  margin-bottom: 0.5em;
  text-shadow: 0 0 8px #0ff6;
  text-align: center;
}
.processing-note-text {
  font-size: 1.08rem;
  color: #fff;
  background: #1a2230;
  border-radius: 0.7em;
  border: 1.5px solid #0ff3;
  box-shadow: 0 0 8px #0ff2;
  padding: 0.7em 1em;
  word-break: break-all;
  margin-bottom: 1em;
  text-align: center;
}
@media (max-width: 700px) {
  .stake-mascot-img { max-width: 90vw; }
  .processing-note-popup { min-width: 0; padding: 1em 0.5em; }
}

/* Modern custom screenshot button */
.custom-screenshot-btn {
  width: 100%;
  max-width: 320px;
  height: 2.8em;
  font-size: 1.13em;
  font-weight: 700;
  border-radius: 0.7em;
  padding: 0 1.7em;
  box-shadow: 0 0 12px #a259f788, 0 0 8px #0ff4;
  margin: 0.7em 0 1.2em 0;
}

.custom-screenshot-btn:hover, .custom-screenshot-btn:focus {
  background: #7c2ae8;
  color: #fff;
  box-shadow: 0 0 24px #a259f7cc, 0 0 16px #0ff8;
}

.screenshot-filename-modern {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  vertical-align: middle;
  margin-left: 0.2em;
  word-break: break-all;
  margin-top: 0.5em;
  display: block;
}

/* Animated background dots */
.bg-animated-dots {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
}
.bg-animated-dots .dot {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  animation: dotMove 6s infinite alternate ease-in-out;
}
.bg-animated-dots .dot1 { background: radial-gradient(circle, #0ff 60%, #2196f3 100%); width: 32px; height: 32px; left: 10vw; top: 20vh; animation-delay: 0s; }
.bg-animated-dots .dot2 { background: radial-gradient(circle, #16a34a 60%, #0ff 100%); width: 18px; height: 18px; left: 70vw; top: 60vh; animation-delay: 1.5s; }
.bg-animated-dots .dot3 { background: radial-gradient(circle, #ffe066 60%, #fff200 100%); width: 24px; height: 24px; left: 40vw; top: 80vh; animation-delay: 2.5s; }
.bg-animated-dots .dot4 { background: radial-gradient(circle, #ff3c6a 60%, #0ff 100%); width: 14px; height: 14px; left: 80vw; top: 10vh; animation-delay: 3.2s; }
@keyframes dotMove {
  0% { transform: scale(1) translateY(0); opacity: 0.18; }
  100% { transform: scale(1.2) translateY(30px); opacity: 0.32; }
}

/* Shine effect overlay */
.bg-shine {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 1;
  background: linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 60%, rgba(255,255,255,0.18) 100%);
  mix-blend-mode: screen;
  animation: shineMove 4s linear infinite;
}
@keyframes shineMove {
  0% { background-position: -200vw 0; }
  100% { background-position: 200vw 0; }
}

/* Animated gradient glow */
.bg-gradient-glow {
  pointer-events: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  background: radial-gradient(ellipse at 60% 20%, #0ff3 0%, #232b38 80%), radial-gradient(ellipse at 20% 80%, #16a34a44 0%, #232b38 80%);
  animation: gradientGlowMove 8s ease-in-out infinite alternate;
}
@keyframes gradientGlowMove {
  0% { filter: blur(0px) brightness(1); }
  100% { filter: blur(4px) brightness(1.08); }
}

/* Touch effect for buttons */
.touch-effect {
  transition: box-shadow 0.2s, transform 0.2s;
}
.touch-effect.active {
  box-shadow: 0 0 24px #0ff8, 0 0 32px #16a34a88;
  transform: scale(1.06);
}

#tsparticles {
  position: fixed !important;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
} 