
:root{--bg:#0d1117;--card:#0f1724;--accent:#f6b93b;--muted:#98a0b3;--text:#e6eef8}*{box-sizing:border-box}body{margin:0;font-family:Inter,Segoe UI,Roboto,system-ui,Arial;background:linear-gradient(180deg,#071827 0%, #0f2a3a 100%);color:var(--text)}.logo-container{display:flex;align-items:center;gap:12px;margin-bottom:12px;justify-content:center}.site-logo{width:46px;height:46px;border-radius:50%;filter:drop-shadow(0 6px 18px rgba(255,215,0,0.18))}.site-title{font-weight:700;background:linear-gradient(90deg,#FFD700,#FF8C00);-webkit-background-clip:text;-webkit-text-fill-color:transparent;font-size:1.4rem}.container.auth-container{width:100%;max-width:420px;padding:28px;background:rgba(255,255,255,0.03);border-radius:12px;margin:40px auto;box-shadow:0 12px 30px rgba(2,8,23,0.6)}h2{margin:0 0 8px;text-align:center}.subtitle{color:var(--muted);text-align:center;margin-bottom:14px}.auth-form{display:flex;flex-direction:column;gap:10px}.auth-form label{font-size:0.85rem;color:var(--muted)}.auth-form input{padding:10px;border-radius:8px;border:none;background:rgba(255,255,255,0.03);color:var(--text)}.btn{background:linear-gradient(90deg,#2563eb,#3b82f6);border:none;color:white;padding:12px;border-radius:10px;font-weight:700;cursor:pointer}.wallet-btn{background:linear-gradient(90deg,#059669,#10b981)}.divider{text-align:center;padding:12px 0;color:var(--muted);font-weight:700}.message{min-height:20px;color:#ffb3b3;font-size:0.95rem}.ticker-container{width:100%;padding:10px 0;background:#08121a;overflow:hidden}.ticker-content{display:inline-block;animation:ticker 20s linear infinite;padding-left:100%}.ticker-item{display:inline-flex;align-items:center;gap:8px;margin:0 30px;color:var(--text)}.dashboard{width:95%;max-width:980px;margin:30px auto;display:flex;flex-direction:column;gap:18px}.dashboard-header{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px}.profile-controls{display:flex;gap:12px;align-items:center}.wallet-address{background:#071827;padding:8px 12px;border-radius:10px;font-family:monospace}.card{background:rgba(255,255,255,0.02);padding:16px;border-radius:12px}.referral-input{display:flex;gap:10px;margin-top:10px}.referral-input input{flex:1;padding:10px;border-radius:8px;border:none;background:#08121a;color:var(--text)}.referral-input button{padding:10px 14px;border-radius:8px;border:none;background:var(--accent);color:#000;font-weight:700;cursor:pointer}.stats{display:flex;gap:12px;margin-top:14px;flex-wrap:wrap}.stat-card{flex:1;min-width:150px;background:rgba(255,255,255,0.02);padding:12px;border-radius:10px;text-align:center}.stat-card h3{margin:0;color:var(--accent);font-size:1.4rem}.about img{width:140px;height:140px;border-radius:12px;object-fit:cover;display:block;margin:12px auto}.toast-container{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:8px;align-items:center;z-index:9999}.toast{padding:12px 20px;border-radius:14px;backdrop-filter:blur(12px);background:rgba(255,255,255,0.04);color:var(--text);opacity:0;transform:scale(0.95);transition:opacity 0.28s,transform 0.28s}.toast.show{opacity:1;transform:scale(1)}.toast.success{background:linear-gradient(90deg, rgba(0,255,150,0.06), rgba(0,200,120,0.06));box-shadow:0 0 20px rgba(0,255,150,0.08);color:#b7ffd9}.toast.error{background:linear-gradient(90deg, rgba(255,80,80,0.06), rgba(255,40,40,0.06));box-shadow:0 0 20px rgba(255,80,80,0.08);color:#ffd8d8}.toast.info{background:linear-gradient(90deg, rgba(60,140,255,0.06), rgba(40,100,255,0.06));box-shadow:0 0 20px rgba(60,140,255,0.08);color:#d6ecff}@media(max-width:720px){.container.auth-container{margin:20px;padding:18px}.dashboard{width:94%}}@keyframes ticker{0%{transform:translateX(0)}100%{transform:translateX(-100%)}}
/* === Tiered Alignment Fix for Dashboard Elements === */
.quick-insights {
  position: fixed;
  bottom: 20px;
  right: 25px;
  z-index: 10;
}

.scroll-to-top,
#scrollTopBtn {
  position: fixed;
  bottom: 90px;
  right: 25px;
  z-index: 20;
}

.presale-airdrop-buttons,
.airdrop-presale-redirect {
  position: fixed;
  bottom: 150px;
  right: 25px;
  z-index: 30;
}
/* === End Tiered Alignment Fix === */

/* === Force Airdrop & Presale buttons to top-right (stacked) === */
/* Container for buttons if exists */
.presale-airdrop-buttons, .airdrop-presale-redirect, .cta-section {
  position: fixed !important;
  top: 20px !important;
  right: 25px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
  z-index: 60 !important;
  align-items: flex-end !important;
}

/* Fallback selectors for buttons */
button[id*="airdrop"], button[id*="presale"], .join-airdrop, .buy-presale, #joinAirdropBtn, #buyPresaleBtn {
  position: relative !important;
  margin: 0 !important;
}

/* Slight size tweak to ensure they don't overlap other top-right elements */
@media (max-width: 600px) {
  .presale-airdrop-buttons, .airdrop-presale-redirect, .cta-section {
    top: 10px !important;
    right: 10px !important;
  }
}
/* === End top-right tweak === */

/* ===========================================
   Phase 5 Step 6 - Mobile-First Optimization
   =========================================== */

@media (max-width: 768px) {
  body {
    font-size: 15px;
    line-height: 1.6;
    padding: 0;
    margin: 0;
  }

  header, footer, nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .container, .content, main, section {
    width: 95%;
    margin: 0 auto;
    padding: 10px;
  }

  h1, h2, h3, h4 {
    font-size: 1.6rem;
    text-align: center;
  }

  .btn, button, .cta {
    padding: 12px 18px;
    font-size: 14px;
    width: 100%;
    border-radius: 8px;
  }

  img, video, iframe {
    max-width: 100%;
    height: auto;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  /* Dashboard cards and stats layout */
  .dashboard-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .wallet-connect-btn, .token-stat-card {
    width: 100%;
  }
}
