/* ─── Mining Calculator Styles ─── */
:root {
  --bg-primary: #141410;
  --bg-secondary: #1a1a16;
  --bg-tertiary: #1e1e1a;
  --bg-elevated: #252520;
  --border: #2a2a24;
  --border-light: #3a3a30;
  --text-primary: #e8dcc8;
  --text-secondary: #8a8a7a;
  --text-muted: #6a6a5a;
  --text-dim: #4a4a3a;
  --accent-gold: #c9a84c;
  --accent-gold-light: #e8c95a;
  --accent-green: #6abf5e;
  --accent-red: #d4644a;
  --accent-blue: #8a8aff;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--bg-primary); color: var(--text-primary); font-family: var(--sans); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* Select dropdown styling */
select option { background: var(--bg-primary); color: var(--text-secondary); }
select optgroup { background: var(--bg-secondary); color: var(--text-muted); font-style: normal; }

/* ─── Title shimmer ─── */
.title-shimmer {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--text-primary) 0%,
    var(--accent-gold-light) 20%,
    #fff 40%,
    var(--accent-gold-light) 60%,
    var(--text-primary) 80%,
    var(--text-primary) 100%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 6s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(201, 168, 76, 0.2));
}

@keyframes title-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ─── Tooltip modal ─── */
.cf-tooltip-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cf-tooltip-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 24px;
  max-width: 420px;
  width: 90%;
  font-family: var(--mono);
  color: var(--text-primary);
}

.cf-tooltip-modal h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

.cf-tooltip-modal p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.cf-tooltip-modal button {
  margin-top: 16px;
  padding: 6px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  color: var(--text-secondary);
  font-family: var(--mono);
  font-size: 10px;
  cursor: pointer;
}

/* ─── Footer bar ─── */
.footer-bar {
  margin-top: 48px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-shimmer {
  display: inline-block;
  background: linear-gradient(
    90deg,
    var(--text-muted) 0%,
    var(--accent-gold-light) 25%,
    #fff 50%,
    var(--accent-gold-light) 75%,
    var(--text-muted) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
  text-shadow: none;
  filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.3));
}

@keyframes shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
