:root {
  --bg: #0f1115;
  --surface: #1a1d24;
  --text: #f4f4f5;
  --muted: #9a9ea8;
  --accent: #e8c468;
  --border: #2a2d36;
  --error: #e5686b;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

main {
  text-align: center;
  padding: 2rem;
}

.brand {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 3rem;
}

.countdown {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 90px;
}

.unit span {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  line-height: 1;
}

.unit label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.expired-label {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.price {
  font-size: clamp(3rem, 10vw, 5.5rem);
  font-weight: 700;
  color: var(--accent);
}

.hidden { display: none !important; }

.corner-btn {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
}

.corner-btn:hover { border-color: var(--accent); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.modal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  width: min(320px, 90vw);
  position: relative;
}

.modal-content h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

input {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

button {
  font-family: inherit;
}

#login-form button, #admin-panel button {
  background: var(--accent);
  color: #1a1508;
  border: none;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.link-btn {
  background: none !important;
  border: none;
  color: var(--muted) !important;
  font-weight: 400 !important;
  padding: 0 !important;
  text-decoration: underline;
  cursor: pointer;
}

.error {
  color: var(--error);
  font-size: 0.85rem;
  margin: 0;
}

.admin-panel {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
  width: min(260px, 90vw);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.admin-row input {
  flex: 1;
}

#admin-message {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
