:root {
  --bg: #ffffff; --text: #111111; --muted: #555; --surface: #f5f7fb;
  --primary: #2563eb; --accent: #14b8a6; --border: #e2e8f0;
}
.theme-dark { --bg:#0b0d12; --text:#e6e9ee; --muted:#97a3b6; --surface:#121521; --primary:#60a5fa; --accent:#22d3ee; --border:#202538; }
html,body { margin:0; padding:0; font-family: 'Ubuntu', system-ui, -apple-system, Segoe UI, Roboto, sans-serif; background: var(--bg); color: var(--text); }
.site-header, .site-footer { padding: 12px 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.site-footer { border-top: 1px solid var(--border); border-bottom: 0; margin-top: 40px; }
.brand a { font-weight:700; text-decoration:none; color:var(--text) }
.nav a { margin: 0 10px; color: var(--text); text-decoration: none; }
.nav .btn { padding: 6px 10px; border:1px solid var(--border); border-radius: 8px; background: var(--surface); }
.container { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
.card { background: var(--surface); border:1px solid var(--border); border-radius:12px; padding:16px; margin-bottom:16px; }
.grid { display:grid; gap:16px; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.hero { padding: 30px; border-radius: 16px; background: linear-gradient(180deg, var(--surface), transparent); border:1px solid var(--border); }
input, select, button, textarea { font: inherit; padding:9px 10px; border:1px solid var(--border); border-radius:8px; background: var(--bg); color: var(--text); }
button, .btn-primary { background: var(--primary); border-color: var(--primary); color: white; cursor: pointer; }
.muted { color: var(--muted); }
.flex { display:flex; gap:12px; align-items:center; }
.right { text-align:right; }
.danger { color: #dc2626; }
.success { color: #16a34a; }
.ad { margin: 12px 0; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* chat */
.chat-box { height: 60vh; overflow: auto; padding:12px; background: var(--surface); border:1px solid var(--border); border-radius:12px; }
.msg { padding:6px 8px; margin:6px 0; border-radius:10px; background: var(--bg); border:1px solid var(--border); }
.msg .meta { font-size: 12px; color: var(--muted); }

/* Turnstile container */
.cf-turnstile { margin-top: 10px; }



/* Cooldown modal */
.modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); z-index: 99997;
}
.modal.show { display: flex; }
.modal .box {
  width: min(720px, 92vw);
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
}
.modal .count { font-size: 28px; font-weight: 700; margin-bottom: 6px; text-align: center; }
.modal .ad { margin-top: 12px; }



