/* ── Prismo Faucet — Light cream theme matching prismo.technology ── */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #f9f3dc;
  --bg-card: #ffffff;
  --bg-card-alt: #faf6e8;
  --text-primary: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #888888;
  --accent-red: #ea431e;
  --accent-green: #00b13e;
  --accent-blue: #0ba1ea;
  --accent-yellow: #fab600;
  --border: #e5dfc8;
  --border-light: #efe9d2;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── Header / Nav ── */
.nav {
  width: 100%;
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
}

.nav-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-primary); }

.nav-badge {
  background: var(--accent-red);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ── Main layout ── */
.main {
  width: 100%;
  max-width: 560px;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Hero section ── */
.hero {
  text-align: center;
  margin-bottom: 8px;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-red);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.hero p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Faucet info bar ── */
.info-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.info-item {
  flex: 1;
  min-width: 120px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}

.info-item .label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.info-item .value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* ── Tier tabs ── */
.tier-tabs {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 4px;
  gap: 4px;
}

.tier-tab {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tier-tab:hover { color: var(--text-primary); }

.tier-tab.active {
  background: var(--text-primary);
  color: #fff;
}

.tier-tab .tier-amount {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
  opacity: 0.7;
}

.tier-tab.active .tier-amount { opacity: 0.8; }

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

/* ── Form ── */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-card-alt);
  transition: border-color 0.2s;
  outline: none;
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--accent-red); }

/* ── Captcha ── */
.captcha-container {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* ── Buttons ── */
.btn {
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent-red);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #d43a18;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 67, 30, 0.3);
}

.btn-microsoft {
  background: var(--text-primary);
  color: #fff;
  margin-bottom: 16px;
}

.btn-microsoft:hover:not(:disabled) {
  background: #333;
  transform: translateY(-1px);
}

.btn-microsoft svg {
  width: 18px;
  height: 18px;
}

/* ── Auth user banner ── */
.auth-user {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #edf9f0;
  border: 1px solid #b8e6c4;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--accent-green);
  font-weight: 500;
}

.auth-user.visible { display: flex; }

.auth-user .user-email {
  flex: 1;
  color: var(--text-primary);
  font-weight: 600;
}

.auth-user .sign-out {
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: underline;
}

/* ── Status messages ── */
.status {
  display: none;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

.status.visible { display: block; }

.status.success {
  background: #edf9f0;
  border: 1px solid #b8e6c4;
  color: #0a7a2e;
}

.status.error {
  background: #fdf0ed;
  border: 1px solid #f5c2b6;
  color: #c62e10;
}

.status.loading {
  background: #eef6fd;
  border: 1px solid #b8d9f2;
  color: #0968a8;
}

.status a {
  color: inherit;
  font-weight: 600;
}

/* ── Footer ── */
.footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover { color: var(--accent-red); }

/* ── Loading spinner ── */
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 480px) {
  .main { padding: 24px 16px 60px; }
  .hero h1 { font-size: 26px; }
  .card { padding: 20px; }
  .info-item { min-width: 100px; }
  .nav { padding: 16px; }
}
