/* ============================================================
   style.css — Tampilan Faucet
   ============================================================ */

/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #f7931a;   /* warna utama (oranye Bitcoin) */
  --primary-d: #d97a0e;
  --bg:        #0f1117;
  --bg2:       #1a1d27;
  --bg3:       #22263a;
  --text:      #e2e8f0;
  --muted:     #8892a4;
  --border:    #2d3348;
  --success:   #22c55e;
  --danger:    #ef4444;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,0,0,.45);
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Navbar ---- */
.navbar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar .logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar nav a {
  color: var(--muted);
  margin-left: 20px;
  font-size: .9rem;
  transition: color .2s;
}
.navbar nav a:hover { color: var(--text); text-decoration: none; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.page-wrap {
  flex: 1;
  padding: 32px 0 48px;
}

/* ---- Hero / Claim Box ---- */
.hero {
  text-align: center;
  padding: 20px 0 32px;
}
.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.hero h1 span { color: var(--primary); }
.hero p { color: var(--muted); font-size: 1rem; }

/* ---- Card ---- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

/* ---- Claim Form ---- */
.claim-card {
  max-width: 520px;
  margin: 0 auto;
}
.claim-card .reward-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(247,147,26,.12);
  color: var(--primary);
  border: 1px solid rgba(247,147,26,.3);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 500;
}
.form-group input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.form-group input:focus { border-color: var(--primary); }
.form-group input::placeholder { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 8px;
  padding: 13px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  width: 100%;
}
.btn-primary:hover { background: var(--primary-d); }
.btn-primary:active { transform: scale(.98); }
.btn-primary:disabled {
  background: var(--bg3);
  color: var(--muted);
  cursor: not-allowed;
}

/* hCaptcha centering */
.h-captcha { display: flex; justify-content: center; margin-bottom: 16px; }

/* ---- Alert / Notice ---- */
.alert {
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 16px;
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.alert-danger  { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-info    { background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3); color: #93c5fd; }

/* ---- Stats Row ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.stat-card .value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
}
.stat-card .label { font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* ---- Ad Placeholder ---- */
.ad-wrap {
  text-align: center;
  margin: 20px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- Table ---- */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
}
th, td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
tr:hover td { background: var(--bg3); }
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-success { background: rgba(34,197,94,.15); color: #86efac; }
.badge-danger  { background: rgba(239,68,68,.15);  color: #fca5a5; }
.badge-pending { background: rgba(250,204,21,.15); color: #fde68a; }

/* ---- Cooldown Timer ---- */
.cooldown-box {
  text-align: center;
  padding: 20px;
}
.cooldown-box .timer {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.cooldown-box p { color: var(--muted); margin-top: 6px; font-size: .9rem; }

/* ---- Referral Box ---- */
.referral-box {
  display: flex;
  gap: 10px;
  align-items: center;
}
.referral-box input {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: .85rem;
}
.btn-copy {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: .85rem;
  white-space: nowrap;
  transition: background .2s;
}
.btn-copy:hover { background: var(--border); }

/* ---- Footer ---- */
footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 20px;
  color: var(--muted);
  font-size: .82rem;
}
footer a { color: var(--muted); }

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero h1 { font-size: 1.5rem; }
  .stats-row { grid-template-columns: 1fr; }
  .card { padding: 20px 16px; }
  .referral-box { flex-direction: column; }
}

/* ---- Admin ---- */
.admin-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 32px 16px;
}
.admin-table th { background: var(--bg3); }
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
