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

html,
body {
  height: 100%;
  background: #000;
  color: #e8d5a3;
  font-family: Georgia, "Times New Roman", serif;
}

/* Full-viewport black background */
.uc {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background: #000;
  display: flex;
  flex-direction: column;
}

.uc-hero {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  padding:
    max(1.25rem, env(safe-area-inset-top, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px))
    max(1.25rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-left, 0px));
}

.uc-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.uc-actions {
  position: absolute;
  left: 50%;
  bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.uc-login-btn {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(201, 162, 39, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: rgba(240, 215, 140, 0.28);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.62rem;
  font-family: system-ui, -apple-system, sans-serif;
  opacity: 0.45;
  transition: opacity 0.2s ease, color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.uc-login-btn:hover,
.uc-login-btn:focus-visible {
  opacity: 0.95;
  color: rgba(240, 215, 140, 0.85);
  border-color: rgba(201, 162, 39, 0.45);
  background: rgba(0, 0, 0, 0.55);
}

.uc-contact {
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid rgba(201, 162, 39, 0.2);
}

.uc-contact h2 {
  font-weight: 500;
  font-size: 1.35rem;
  color: #f3e6c0;
  margin-bottom: 0.35rem;
}

.uc-contact-lead {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  color: rgba(232, 213, 163, 0.7);
  margin-bottom: 1rem;
  line-height: 1.45;
}

.uc-contact-form {
  display: grid;
  gap: 0.75rem;
}

.uc-contact-form label {
  display: grid;
  gap: 0.3rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.78rem;
  color: rgba(232, 213, 163, 0.8);
}

.uc-contact-form input,
.uc-contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: #0a0a0a;
  color: #f3e6c0;
  font-size: 0.95rem;
  font-family: system-ui, -apple-system, sans-serif;
  border-radius: 0;
}

.uc-contact-form input:focus,
.uc-contact-form textarea:focus {
  outline: 1px solid #c9a227;
}

.uc-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.uc-contact-submit {
  border: 0;
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: #c9a227;
  color: #111;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.uc-contact-submit:hover {
  filter: brightness(1.05);
}

.uc-contact-alert {
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(180, 60, 60, 0.5);
  background: rgba(80, 20, 20, 0.45);
  color: #ffb4b4;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
}

.uc-contact-alert--ok {
  border-color: rgba(47, 158, 68, 0.5);
  background: rgba(20, 60, 30, 0.45);
  color: #b6f0c2;
}

.uc-honeypot {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

@media (max-width: 700px) {
  .uc-hero {
    padding:
      max(0.75rem, env(safe-area-inset-top, 0px))
      max(0.75rem, env(safe-area-inset-right, 0px))
      max(0.75rem, env(safe-area-inset-bottom, 0px))
      max(0.75rem, env(safe-area-inset-left, 0px));
  }

  .uc-actions {
    bottom: max(0.25rem, env(safe-area-inset-bottom, 0px));
  }

  .uc-login-btn {
    opacity: 0.35;
    font-size: 0.58rem;
  }

  .uc-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Auth */
.auth-body,
.admin-body,
.home-body {
  min-height: 100dvh;
  background: #000;
}

.auth-wrap,
.home-wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.auth-card {
  width: min(420px, 100%);
  display: grid;
  gap: 0.85rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: #0a0a0a;
}

.auth-brand {
  color: #c9a227;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.auth-card h1,
.admin-wrap h1,
.home-wrap h1 {
  font-weight: 500;
  font-size: 1.6rem;
  color: #f3e6c0;
}

.auth-sub,
.admin-sub,
.home-copy,
.admin-card-copy,
.admin-meta {
  color: rgba(232, 213, 163, 0.72);
  font-size: 0.95rem;
  line-height: 1.45;
  font-family: system-ui, -apple-system, sans-serif;
}

.auth-card label {
  display: grid;
  gap: 0.35rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.82rem;
  color: rgba(232, 213, 163, 0.8);
}

.auth-card input,
.auth-card textarea {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  background: #111;
  color: #f3e6c0;
  font-size: 1rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.auth-card input:focus,
.auth-card textarea:focus {
  outline: 1px solid #c9a227;
}

.auth-submit,
.admin-link-btn {
  border: 0;
  cursor: pointer;
  padding: 0.75rem 1rem;
  background: #c9a227;
  color: #111;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-submit:hover {
  filter: brightness(1.05);
}

.btn-warn { background: #a67c00; }
.btn-ok { background: #2f9e44; color: #fff; }

.auth-back {
  text-align: center;
  color: rgba(232, 213, 163, 0.7);
  text-decoration: none;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
}

.auth-alert {
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(180, 60, 60, 0.5);
  background: rgba(80, 20, 20, 0.45);
  color: #ffb4b4;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
}

.auth-alert--ok {
  border-color: rgba(47, 158, 68, 0.5);
  background: rgba(20, 60, 30, 0.45);
  color: #b6f0c2;
}

/* Admin */
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(201, 162, 39, 0.25);
}

.admin-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-user {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  color: rgba(232, 213, 163, 0.75);
}

.admin-link-btn {
  background: transparent;
  color: #c9a227;
  border: 1px solid rgba(201, 162, 39, 0.45);
  text-transform: none;
  letter-spacing: 0;
  padding: 0.4rem 0.7rem;
}

.admin-wrap {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  display: grid;
  gap: 1rem;
}

.admin-card {
  border: 1px solid rgba(201, 162, 39, 0.3);
  background: #0a0a0a;
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

.admin-card h2 {
  font-size: 1.15rem;
  font-weight: 500;
  color: #f3e6c0;
}

.uc-status {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.92rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(201, 162, 39, 0.25);
}

.uc-status.is-on {
  color: #f0d78c;
  background: rgba(166, 124, 0, 0.15);
}

.uc-status.is-off {
  color: #b6f0c2;
  background: rgba(47, 158, 68, 0.12);
}

.home-wrap {
  text-align: center;
  gap: 1rem;
}
