/* =============================================================================
   NovaMine - Dark crypto theme
   ============================================================================= */

:root {
  --bg: #060a14;
  --bg-soft: #0a101f;
  --bg-card: #0d1428;
  --bg-card-2: #111a33;
  --border: #1c2b4f;
  --border-soft: #16203a;
  --text: #e8eefc;
  --text-dim: #9db0d4;
  --text-faint: #60708f;
  --accent: #22d3ee;
  --accent-2: #a78bfa;
  --accent-3: #34d399;
  --grad: linear-gradient(135deg, #22d3ee 0%, #818cf8 50%, #a78bfa 100%);
  --grad-btn: linear-gradient(135deg, #0ea5e9, #6366f1);
  --danger: #fb7185;
  --warn: #fbbf24;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(2, 8, 26, 0.6);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Consolas, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(600px 400px at 15% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
    radial-gradient(700px 500px at 90% 10%, rgba(167, 139, 250, 0.08), transparent 60%),
    radial-gradient(500px 500px at 50% 100%, rgba(52, 211, 153, 0.05), transparent 60%);
  pointer-events: none;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7dd3fc; }

img { max-width: 100%; display: block; }

/* Layout */
.container { width: min(1180px, 92%); margin: 0 auto; }
.section { padding: 56px 0; }
.section-sm { padding: 28px 0; }
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); }
.mono { font-family: var(--mono); }

h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 10, 20, 0.78);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand .logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(34, 211, 238, 0.35);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--text-dim);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); background: rgba(34, 211, 238, 0.08); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 1.1rem;
}
@media (max-width: 900px) {
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: rgba(6, 10, 20, 0.98);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 4%;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .hide-sm { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.94rem;
  border-radius: 10px;
  padding: 11px 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s, opacity 0.15s;
  text-decoration: none;
  line-height: 1.2;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 6px 20px rgba(67, 106, 245, 0.35);
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 26px rgba(67, 106, 245, 0.5); filter: brightness(1.08); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn-success {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #fff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}
.btn-danger {
  background: rgba(251, 113, 133, 0.12);
  color: var(--danger);
  border-color: rgba(251, 113, 133, 0.3);
}
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 7px 12px; font-size: 0.82rem; }

/* Cards */
.card {
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-pad-lg { padding: 32px; }
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.card-title { font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

/* Stat card */
.stat {
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 90px; height: 90px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.12), transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
}
.stat .label { color: var(--text-dim); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.stat .value { font-family: var(--mono); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-top: 6px; letter-spacing: -0.02em; }
.stat .sub { color: var(--text-faint); font-size: 0.82rem; margin-top: 4px; }
.stat.primary .value { color: var(--accent); }
.stat.success .value { color: var(--accent-3); }
.stat.violet .value { color: var(--accent-2); }

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 40px;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  color: var(--accent);
  background: rgba(34, 211, 238, 0.06);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero p.lead { color: var(--text-dim); max-width: 640px; margin: 18px auto 26px; font-size: 1.06rem; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239db0d4' viewBox='0 0 16 16'%3e%3cpath d='M8 11L3 6h10z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 5px; }
.error-text { font-size: 0.82rem; color: var(--danger); margin-top: 5px; }
.success-text { font-size: 0.82rem; color: var(--accent-3); margin-top: 5px; }

/* Auth card */
.auth-wrap { max-width: 440px; margin: 24px auto; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-soft); border: 1px solid var(--border-soft); border-radius: 10px; padding: 4px; margin-bottom: 22px; }
.auth-tabs button {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 9px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.auth-tabs button.active { background: var(--bg-card-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }

/* Claim button */
.claim-btn-wrap { text-align: center; margin: 8px 0 4px; }
.claim-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 18px 44px;
  border-radius: 16px;
  border: 1px solid rgba(34, 211, 238, 0.5);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(129, 140, 248, 0.18));
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 0 0 rgba(34, 211, 238, 0.4);
  position: relative;
}
.claim-btn:not(:disabled) { animation: breathe 2.4s ease-in-out infinite; }
.claim-btn:not(:disabled):hover { transform: translateY(-2px); }
.claim-btn:disabled { opacity: 0.75; cursor: not-allowed; animation: none; }
.claim-btn .pulse-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: ping 2s ease-out infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 0 30px rgba(34, 211, 238, 0.25); }
  50% { box-shadow: 0 0 46px rgba(34, 211, 238, 0.45); }
}

/* Progress / hash activity */
.hash-bars { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin: 14px 0; }
.hash-bars span {
  flex: 1;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(36, 105, 255, 0.35));
  min-height: 6px;
  transition: height 0.35s ease;
}
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
  overflow: hidden;
}
.progress .bar {
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.4s ease;
}
.progress.danger .bar { background: linear-gradient(90deg, #fb7185, #f43f5e); }

/* Table */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border-soft); background: var(--bg-card); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
thead th {
  text-align: left;
  padding: 12px 16px;
  color: var(--text-faint);
  font-weight: 600;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(34, 211, 238, 0.03); }
.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}
.tag-success { background: rgba(52, 211, 153, 0.12); color: var(--accent-3); }
.tag-warn { background: rgba(251, 191, 36, 0.12); color: var(--warn); }
.tag-danger { background: rgba(251, 113, 133, 0.12); color: var(--danger); }
.tag-info { background: rgba(34, 211, 238, 0.12); color: var(--accent); }
.tag-violet { background: rgba(167, 139, 250, 0.14); color: var(--accent-2); }

/* FAQ */
.faq-item { border: 1px solid var(--border-soft); border-radius: var(--radius-sm); background: var(--bg-card); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 16px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q .chev { transition: transform 0.2s; color: var(--text-faint); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 18px 16px; color: var(--text-dim); font-size: 0.94rem; }
.faq-item.open .faq-a { display: block; }

/* Footer */
.footer { border-top: 1px solid var(--border-soft); margin-top: 56px; padding: 42px 0 30px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-size: 0.85rem; color: var(--text); margin-bottom: 12px; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 8px; }
.footer ul a { color: var(--text-dim); font-size: 0.88rem; }
.footer ul a:hover { color: var(--accent); }
.footer .footnote { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--border-soft); color: var(--text-faint); font-size: 0.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* Toasts */
.toast-stack { position: fixed; bottom: 22px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, 90vw); }
.toast {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 13px 16px;
  box-shadow: var(--shadow);
  animation: toast-in 0.25s ease;
  font-size: 0.9rem;
}
.toast.success { border-left-color: var(--accent-3); }
.toast.error { border-left-color: var(--danger); }
.toast.warn { border-left-color: var(--warn); }
@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Misc */
.banner {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.07);
  color: #fde68a;
  font-size: 0.9rem;
  margin-bottom: 18px;
}
.banner.error { border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.07); color: #fecaca; }
.divider { height: 1px; background: var(--border-soft); margin: 20px 0; border: none; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.spacer { flex: 1; }
.text-center { text-align: center; }
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 20px; }
.mb-2 { margin-bottom: 12px; }
.hidden { display: none !important; }

/* Coin icons */
.coin { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.coin .ico { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 0.62rem; font-weight: 800; color: #fff; }
.ico-btc { background: #f7931a; }
.ico-ltc { background: #b8b8c2; color: #2f3340 !important; }
.ico-doge { background: #c2a633; }
.ico-usdt { background: #26a17b; }

/* Kbd / chips */
.chip { display: inline-block; background: var(--bg-soft); border: 1px solid var(--border-soft); color: var(--text-dim); border-radius: 8px; padding: 4px 10px; font-size: 0.78rem; font-family: var(--mono); }

/* Empty state */
.empty { text-align: center; padding: 40px 20px; color: var(--text-faint); }

/* Loading shimmer */
.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-2) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Print / small screen niceties */
@media (max-width: 560px) {
  .section { padding: 36px 0; }
  .card { padding: 18px; }
}