/* halotypay faucet v9 — professional dark theme, original design.
 * Near-black navy background, gold accent for money and calls to
 * action, green for success. No frameworks, no copied theme. */
:root {
  --bg: #0a0e1a;
  --bg-soft: #0e1424;
  --card: #121a2e;
  --card-2: #0d1322;
  --line: #232c44;
  --line-2: #2c3854;
  --text: #e9edf5;
  --muted: #9aa5ba;
  --dim: #7c8699;
  --gold: #f5b301;
  --gold-2: #f7931a;
  --green: #22c55e;
  --red: #f87171;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.38);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 1em 3em; }
.wrap.wide { max-width: 1060px; }
.wrap.narrow { max-width: 520px; }
a { color: var(--gold); }
a:hover { color: #ffd34d; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }

/* Sticky glass header */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(10,14,26,.9);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1060px; margin: 0 auto; padding: .75em 1em;
  display: flex; align-items: center; justify-content: space-between; gap: 1em; flex-wrap: wrap; }
.nav-logo { font-weight: 800; font-size: 1.15em; color: #fff; text-decoration: none; letter-spacing: -.01em; }
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 1.1em; flex-wrap: wrap; align-items: center; }
.nav-links a { color: #c3cad9; text-decoration: none; font-size: .92em; font-weight: 600; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }

/* Hero */
.hero { text-align: center; padding: 3em 1em 2em;
  background: radial-gradient(700px 300px at 50% -60px, rgba(247,147,26,.3), transparent 70%); }
.hero h1 { font-size: 2.5em; margin: 0 0 .25em; line-height: 1.12; letter-spacing: -.02em; }
.hero h1 span { background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-2));
  background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  color: transparent; animation: shine 5s linear infinite; }
.sub { color: var(--muted); margin: 0 auto; max-width: 600px; font-size: 1.05em; }
.section-sub { color: var(--muted); margin: -.4em 0 1em; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em;
  max-width: 680px; margin: 1.8em auto 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9em .4em; }
.stat strong { display: block; font-size: 1.5em; color: var(--gold); line-height: 1.2; }
.stat span { font-size: .82em; color: var(--dim); }
.stats { color: var(--gold); font-weight: 600; margin: 1em 0 0; font-size: .95em; }
h1 { font-size: 1.9em; margin: .4em 0 .15em; letter-spacing: -.01em; }
h2 { font-size: 1.25em; margin: 0 0 .8em; }
h3 { font-size: 1.05em; margin: 1.2em 0 .5em; }

/* Cards, forms, buttons */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4em; margin-bottom: 1.1em; box-shadow: var(--shadow); animation: fadeUp .45s ease both; }
label { display: block; font-weight: 600; margin-bottom: .4em; }
input[type=text], input[type=password], input[type=number], input[type=email], textarea, select {
  width: 100%; padding: .75em; border: 1px solid var(--line-2); border-radius: 10px;
  font-size: 1em; margin-bottom: 1em; background: var(--card-2); color: var(--text); }
textarea { font-family: ui-monospace, monospace; font-size: .9em; }
button, a.btn { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #111;
  border: 0; border-radius: 10px; padding: .85em 1.5em; font-size: 1em;
  font-weight: 800; cursor: pointer; box-shadow: 0 4px 16px rgba(247,147,26,.3);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease; }
a.btn { display: inline-block; text-decoration: none; padding: .7em 1.3em; }
button:hover:not(:disabled), a.btn:hover { transform: translateY(-1px); filter: brightness(1.08); color: #111; }
button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
button.btn-ghost, a.btn.btn-ghost { background: #1d2740; color: var(--text); box-shadow: none; }
button.btn-ghost:hover, a.btn.btn-ghost:hover { color: #fff; }
.result { font-weight: 600; min-height: 1.5em; }
.result.ok { color: var(--green); }
.result.bad { color: var(--red); }
.rules, .small { color: var(--dim); font-size: .9em; }
.notice { background: #2a2105; border: 1px solid #8a6d00; border-radius: 10px;
  padding: .7em 1em; color: #ffd970; }
.notice.ok { background: #0d2a18; border-color: #1d6b3a; color: #7de2a0; }
.maintenance-banner { text-align: center; font-weight: 700; }

/* Banner slots + honest test placeholders */
.ad-slot { border: 1px dashed var(--line-2); border-radius: 12px; padding: .5em;
  margin: 1em auto; background: var(--card-2); text-align: center; overflow: hidden; }
.ad-label { display: block; font-size: .7em; letter-spacing: .12em;
  text-transform: uppercase; color: #64748b; margin-bottom: .4em; }
.ad-placeholder { display: flex; align-items: stretch; padding: 0; }
.ad-placeholder-link { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .25em; width: 100%; height: 100%; text-decoration: none; color: var(--dim);
  background: repeating-linear-gradient(45deg, #0d1322, #0d1322 14px, #111a2e 14px, #111a2e 28px); }
.ad-placeholder-link:hover { color: var(--gold); }
.ad-placeholder-label { font-weight: 800; letter-spacing: .08em; font-size: .95em; color: var(--muted); }
.ad-placeholder-sub { font-size: .78em; }

/* Timers + progress */
.timer-row { margin: 1em 0; }
.timer-bar { height: 12px; background: #1d2740; border-radius: 6px; overflow: hidden; }
.timer-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--gold-2), var(--gold));
  transition: width .4s ease; }
.timer-text { display: block; margin-top: .5em; font-weight: 700; color: var(--gold); }

/* Coin picker */
.coin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .6em; margin-bottom: 1em; }
.coin-card { display: flex; flex-direction: column; align-items: center; gap: .15em;
  background: var(--card-2); border: 2px solid var(--line); border-radius: 14px;
  padding: .8em .5em; cursor: pointer; text-align: center; margin: 0;
  transition: border-color .15s, box-shadow .15s, transform .2s; }
.coin-card input { position: absolute; opacity: 0; pointer-events: none; }
.coin-card.selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(245,179,1,.35), 0 4px 18px rgba(247,147,26,.25); }
.coin-card:hover { transform: translateY(-3px); }
.coin-icon { width: 44px; height: 44px; }
.coin-nm { font-size: .85em; color: #c3cad9; }
.coin-code { font-size: .8em; color: var(--dim); }
.coin-rw { font-size: .9em; font-weight: 800; color: var(--gold); }

/* Task / video cards */
.links-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .8em; }
.link-card { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 1em; display: flex; flex-direction: column; gap: .5em; margin: 0;
  color: var(--text); text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.link-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,.35); border-color: var(--line-2); color: var(--text); }
.link-card .btn { margin-top: auto; text-align: center; }
.link-head { display: flex; align-items: center; gap: .6em; }
.link-head .coin-icon { width: 32px; height: 32px; }
.link-meta { color: #c3cad9; margin: 0; font-size: .95em; }
.badge { display: inline-block; background: #1d2740; color: var(--gold); border: 1px solid var(--line-2);
  border-radius: 999px; padding: .1em .7em; font-size: .78em; font-weight: 700; }

/* Category filter */
.filter-bar { display: flex; gap: .4em; flex-wrap: wrap; margin-bottom: 1em; }
.filter-link { display: inline-block; background: #1d2740; color: #c3cad9;
  border: 1px solid var(--line); border-radius: 999px; padding: .35em .9em;
  font-size: .85em; font-weight: 600; text-decoration: none; }
.filter-link.active { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #111; border-color: transparent; }

/* Ways-to-earn grid */
.earn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; margin-bottom: 1.1em; }
.earn-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1em .6em; text-align: center; text-decoration: none; color: var(--text);
  display: flex; flex-direction: column; gap: .2em; transition: transform .2s, border-color .2s; }
.earn-card:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--text); }
.earn-icon { font-size: 1.6em; }
.earn-card strong { color: #fff; }
.earn-card span:last-child { font-size: .82em; color: var(--dim); }

/* Payouts feed */
.feed { display: flex; flex-direction: column; gap: .4em; }
.feed-item { display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: .6em .9em; }
.feed-user { font-weight: 700; }
.feed-amount { color: var(--green); font-weight: 800; }
.feed-time { color: var(--dim); font-size: .9em; }

/* Viewer (task + video pages) */
.viewer { margin: 1em 0; }
.viewer-frame { width: 100%; height: 62vh; min-height: 380px; border: 1px solid var(--line-2);
  border-radius: 12px; background: #fff; }
.video-frame { background: #000; }

/* Dashboard balance cards */
.balance-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .7em; }
.balance-card { background: var(--card-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 1em; display: flex; flex-direction: column; gap: .25em; align-items: flex-start; }
.balance-card .coin-icon { width: 36px; height: 36px; }
.bal-amount { font-size: 1.35em; font-weight: 800; color: var(--gold); }

/* Tables (responsive: horizontal scroll on small screens) */
.table-wrap { overflow-x: auto; margin: 0 -0.2em; }
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid var(--line); padding: .5em .6em; text-align: left; word-break: break-word; }
th { color: var(--muted); font-size: .9em; }

/* Admin tabs */
.tabs { display: flex; gap: .4em; flex-wrap: wrap; margin: 1em 0; }
.tab-link { display: inline-block; background: #1d2740; color: #c3cad9;
  border: 1px solid var(--line); border-radius: 999px; padding: .4em .9em;
  font-size: .85em; font-weight: 600; text-decoration: none; transition: color .2s, background .2s; }
.tab-link.active { background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #111; border-color: transparent; }

/* Auth pages */
.auth-card { max-width: 480px; margin: 2em auto 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2em 0 1em; text-align: center; }
.site-footer .wrap { padding-bottom: 1em; }

/* Motion */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shine { to { background-position: 200% center; } }

@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .earn-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 1.9em; }
  .nav-links { gap: .6em; }
  .viewer-frame { height: 52vh; min-height: 300px; }
}
