/* Minimal white/gray theme (keeps existing class names) */

:root{
  --bg:#ffffff;
  --text:#111827;      /* gray-900 */
  --muted:#6b7280;     /* gray-500 */
  --line:#e5e7eb;      /* gray-200 */
  --card:#f9fafb;      /* gray-50 */
  --danger:#ef4444;    /* red-500 */
  --ok:#22c55e;        /* green-500 */
  --warn:#f59e0b;      /* amber-500 */
  --shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
  --r:18px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  min-height:100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:var(--text);
  line-height:1.55;
  text-align:center;
  background:
    radial-gradient(1200px 600px at 10% 0%, #f3f4f6 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 10%, #f3f4f6 0%, transparent 55%),
    var(--bg);
}

.wrap{ max-width: 980px; margin:0 auto; padding: 34px 18px 60px; }

/* Top section */
.hero{
  border:1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  background: rgba(249,250,251,0.85);
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap:16px;
  position:relative;
  overflow:hidden;
}

.hero:before{
  content:"";
  position:absolute;
  inset:-40% -40% auto auto;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle at 30% 30%, rgba(17,24,39,0.14), transparent 60%);
  transform: rotate(12deg);
  pointer-events:none;
}

.brand{ position:relative; }
.brand h1{ margin:0 0 8px; font-size: 26px; letter-spacing:-0.2px; }
.brand p{ margin:0 auto; max-width: 78ch; color:var(--muted); }

.stats{
  display:grid;
  grid-template-columns: 1fr;
  gap: 12px;
  position:relative;
}

@media (min-width: 820px){
  .stats{ grid-template-columns: 1fr 1fr; }
}

.stat{
  background: rgba(255,255,255,0.75);
  border:1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.label{ font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.value{ font-size: 16px; font-weight: 800; }
.value small{ font-size: 12px; color: var(--muted); font-weight: 650; }

/* Main cards */
.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 16px;
}

.card{
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  background: rgba(249,250,251,0.85);
  overflow:hidden;
  position:relative;
}

.hd{
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 10px;
}

.hd strong{ font-size: 14px; letter-spacing: .4px; }

.pill{
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  color: #374151; /* gray-700 */
}

.bd{ padding: 18px; position:relative; }

.input{
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  color: var(--text);
  outline: none;
  text-align: center;
}

.input:focus{
  border-color: #d1d5db; /* gray-300 */
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.btn{
  appearance:none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

.btn:hover{ transform: translateY(-1px); border-color: #d1d5db; background:#fff; }
.btn:active{ transform: translateY(0px); }
.btn:disabled{ opacity: .55; cursor:not-allowed; }

.hr{ height: 1px; background: var(--line); margin: 14px 0; }
.note{ font-size: 12px; line-height: 1.5; color: var(--muted); max-width: 80ch; margin: 0 auto; }
.mono{ font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

.timerBox{
  display:flex;
  flex-direction:column;
  gap: 10px;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px dashed rgba(17,24,39,.18);
  background: rgba(255,255,255,0.75);
  max-width: 700px;
  margin: 0 auto;
}

@media (min-width: 700px){
  .timerBox{ flex-direction: row; justify-content: space-between; }
}

.timerBox b{ font-size: 18px; }

.alert{
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  font-size: 13px;
  max-width: 760px;
  margin: 0 auto;
}

.alert.ok{ border-color: rgba(34,197,94,.35); }
.alert.err{ border-color: rgba(239,68,68,.35); }
.alert.warn{ border-color: rgba(245,158,11,.35); }

.small{ font-size: 12px; color: var(--muted); }

.ads{
  display:grid;
  gap: 12px;
  justify-items:center;
  padding: 18px;
}

.footer{
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
  text-align:center;
}

a.link{ color: var(--text); text-decoration:none; border-bottom: 1px dashed rgba(17,24,39,0.25); }
a.link:hover{ border-bottom-color: rgba(17,24,39,0.55); }
