:root {
  --bg: linear-gradient(180deg, #f8fafc 0%, #eef6ff 100%);
  --surface: rgba(255, 255, 255, 0.7);
  --border: rgba(255, 255, 255, 0.4);
  --text: #0f172a;
  --text-muted: #475569;
  --accent: #14b8a6;
  --accent-hover: #0f766e;
  --accent-light: rgba(20, 184, 166, 0.12);
  --radius: 22px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  --input-bg: rgba(255, 255, 255, 0.4);
  --input-focus-bg: rgba(255, 255, 255, 0.6);
  --notice-bg: rgba(255, 193, 7, 0.08);
  --notice-border: rgba(255, 193, 7, 0.25);
  --hero-glow: rgba(20, 184, 166, 0.15);
}

[data-theme="dark"] {
  --bg: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  --surface: rgba(30, 41, 59, 0.75);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --accent: #2dd4bf;
  --accent-hover: #5eead4;
  --accent-light: rgba(45, 212, 191, 0.1);
  --input-bg: rgba(30, 41, 59, 0.55);
  --input-focus-bg: rgba(30, 41, 59, 0.8);
  --notice-bg: rgba(255, 193, 7, 0.05);
  --notice-border: rgba(255, 193, 7, 0.15);
  --hero-glow: rgba(45, 212, 191, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  animation: fadePage .5s ease;
}

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

/* ===== BACKGROUND BLURS ===== */
.bg-blur {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: .25;
  pointer-events: none;
}

.blur1 {
  background: #14b8a6;
  top: -80px;
  left: -80px;
}

.blur2 {
  background: #3b82f6;
  bottom: -100px;
  right: -80px;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .header {
  background: rgba(15, 23, 42, 0.45);
}

.logo {
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.logo span {
  color: white;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  padding: .2rem .7rem;
  border-radius: 30px;
  font-size: .8rem;
}

.theme-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: .25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-btn:hover {
  transform: rotate(10deg) scale(1.05);
}

/* ===== LAYOUT ===== */
.container {
  max-width: 520px;
  margin: auto;
  padding: 1rem;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}

/* ===== HERO CARD ===== */
.hero-card {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  background: var(--hero-glow);
  border-radius: 50%;
  top: -60px;
  right: -60px;
  filter: blur(40px);
  pointer-events: none;
}

.badge {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.hero-card h1 {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: .5rem;
  position: relative;
  z-index: 1;
}

.subtitle {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}

.stats-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.4rem;
  position: relative;
  z-index: 1;
}

.stat h3 {
  font-size: 1.7rem;
  font-weight: 900;
}

.stat span {
  font-size: .75rem;
  color: var(--text-muted);
}

/* ===== CRYPTO ICONS ===== */
.crypto-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
  position: relative;
  z-index: 1;
}

.crypto-icon {
  background: rgba(255, 255, 255, 0.55);
  padding: .5rem .9rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .4rem;
  animation: float 4s ease-in-out infinite;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: .25s ease;
}

/* Staggered animation delays */
.crypto-icon:nth-child(1) {
  animation-delay: 0s;
}

.crypto-icon:nth-child(2) {
  animation-delay: 0.6s;
}

.crypto-icon:nth-child(3) {
  animation-delay: 1.2s;
}

.crypto-icon:nth-child(4) {
  animation-delay: 1.8s;
}

.crypto-icon:nth-child(5) {
  animation-delay: 2.4s;
}

.crypto-icon:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(20, 184, 166, .15);
}

[data-theme="dark"] .crypto-icon {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* ===== NOTICE CARD ===== */
.notice-card {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
}

.notice-title {
  font-weight: 800;
  margin-bottom: .9rem;
}

.notice-item {
  display: flex;
  gap: .7rem;
  margin-bottom: .8rem;
  font-size: .9rem;
  line-height: 1.5;
}

.notice-item i {
  color: #f59e0b;
  margin-top: .15rem;
  flex-shrink: 0;
}

/* ===== INPUT & BUTTON ===== */
.input-group {
  margin-bottom: 1rem;
}

.input-group label {
  display: block;
  font-weight: 700;
  margin-bottom: .5rem;
}

.input-group input {
  width: 100%;
  padding: 1rem;
  border-radius: 16px;
  border: 2px solid transparent;
  background: var(--input-bg);
  color: var(--text);
  outline: none;
  font-size: .95rem;
  transition: .25s;
  box-shadow: inset 0 0 0 1px var(--border);
}

.input-group input::placeholder {
  color: #64748b;
  opacity: 1;
}

[data-theme="dark"] .input-group input::placeholder {
  color: #cbd5e1;
  opacity: 1;
}

.input-group input:focus {
  border-color: var(--accent);
  background: var(--input-focus-bg);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .15);
}

.faucetpay-link {
  display: inline-block;
  margin-top: .5rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: .85rem;
  transition: .2s;
}

.faucetpay-link:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

.btn-claim {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #14b8a6, #0f766e);
  border: none;
  border-radius: 18px;
  color: white;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: .25s;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .6rem;
  box-shadow: 0 12px 30px rgba(20, 184, 166, .35);
}

.btn-claim:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(20, 184, 166, .45);
}

.btn-claim:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 6px 15px rgba(20, 184, 166, .2);
}

.btn-claim:disabled:hover {
  transform: none;
  box-shadow: 0 6px 15px rgba(20, 184, 166, .2);
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .8rem;
}

.feature {
  text-align: center;
  padding: 1.2rem .8rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: .25s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.feature i {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: .5rem;
}

.feature h4 {
  margin-bottom: .3rem;
}

.feature p {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ===== TRUST BOX ===== */
.trust-box {
  text-align: center;
  margin-top: 1.2rem;
}

.trust-box h3 {
  margin-bottom: .4rem;
}

.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: 1rem;
}

.trust-items div {
  background: rgba(255, 255, 255, 0.55);
  padding: .7rem 1rem;
  border-radius: 14px;
  font-size: .85rem;
  font-weight: 700;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: .25s ease;
}

.trust-items div:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(20, 184, 166, .15);
}

[data-theme="dark"] .trust-items div {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== FAQ ===== */
.faq-title {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.faq-item {
  margin-bottom: .7rem;
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
}

.faq-question {
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-question i {
  transition: transform .3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 1.2rem;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.5;
}

.faq-item.active .faq-answer {
  padding-bottom: 1rem;
  max-height: 200px;
}

/* ===== FOOTER ===== */
.footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-muted);
  font-size: .85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: .8rem;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: .2s;
}

.footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  width: calc(100% - 2rem);
  max-width: 420px;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 16px;
  margin-bottom: .7rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  transform: translateY(-20px);
  opacity: 0;
  transition: .3s;
  pointer-events: auto;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.success i {
  color: #10b981;
}

.toast.warning {
  border-left: 4px solid #f59e0b;
}

.toast.warning i {
  border-left: 4px solid #f59e0b;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.error i {
  color: #ef4444;
}

/* ===== RESPONSIVE ===== */
@media(max-width:480px) {
  .hero-card h1 {
    font-size: 1.8rem;
  }
  
  .stats-row {
    gap: 1rem;
  }
  
  .features-grid {
    gap: .6rem;
  }
  
  .feature {
    padding: 1rem .5rem;
  }
  
  .crypto-icons {
    gap: .4rem;
  }
  
  .crypto-icon {
    padding: .4rem .7rem;
    font-size: .78rem;
  }
}