@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600&family=Manrope:wght@500;600&display=swap");

:root {
  --bg: #071422;
  --ink: #f4f7fb;
  --muted: #9aafc3;
  --teal: #7eecd4;
  --line: rgba(148, 196, 214, 0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
body {
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  background:
    radial-gradient(ellipse 42% 36% at 78% 42%, rgba(32, 120, 130, 0.45), transparent 70%),
    radial-gradient(ellipse 36% 28% at 18% 78%, rgba(20, 70, 120, 0.28), transparent 70%),
    linear-gradient(180deg, #07111e 0%, #0a1a2c 50%, #071422 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 78%);
}
.lang-bar {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5;
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 16, 28, 0.72);
  backdrop-filter: blur(10px);
}
.lang-btn {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8ea4b8;
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.lang-btn.is-active {
  background: rgba(126, 236, 212, 0.16);
  color: #e8fff9;
}
.lang-btn:hover { color: #d5e7f2; }
main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 16px 32px;
  text-align: center;
  gap: 18px;
}
.brand {
  width: min(168px, 46vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 0 18px rgba(126, 236, 212, 0.18));
}
.brand-name {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 500;
  font-size: clamp(36px, 10vw, 72px);
  letter-spacing: -0.04em;
  line-height: 1;
}
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 22px;
  border: 1px solid rgba(126, 236, 212, 0.28);
  border-radius: 999px;
  color: #d5e7f2;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(8, 28, 40, 0.45);
}
.soon i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 1; }
}

.admin-body { overflow: auto; }
main.admin-wrap {
  display: block;
  width: min(1180px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 0 48px;
  text-align: left;
  gap: 0;
}
.admin-kicker {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.admin-wrap h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 48px;
  font-weight: 500;
}
.admin-card, .admin-top, .stats, .search, .table-wrap {
  border: 1px solid var(--line);
  background: rgba(8, 22, 38, 0.55);
  border-radius: 16px;
}
.admin-card {
  width: min(420px, 100%);
  margin: 12vh auto 0;
  padding: 28px 22px;
}
.admin-card .lead {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.admin-card label, .search {
  display: block;
  color: #8ea4b8;
  font-size: 12px;
}
.admin-card input, .search input, .admin-wrap button {
  width: 100%;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(4, 12, 22, 0.65);
  color: var(--ink);
  font: inherit;
}
.admin-card input, .search input { padding: 12px 14px; }
.admin-wrap button {
  width: auto;
  padding: 10px 16px;
  background: rgba(126, 236, 212, 0.14);
  cursor: pointer;
}
.admin-error { color: #ffb4b4; font-size: 13px; }
.admin-top, .stats { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-top, .stats, .search { margin-top: 16px; padding: 16px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; overflow: hidden; }
.stats article { padding: 16px; }
.stats article + article { border-left: 1px solid var(--line); }
.stats b { display: block; font-size: 28px; font-weight: 600; }
.stats span, .table-wrap span, .empty { color: #8ea4b8; font-size: 12px; }
.table-wrap { margin-top: 12px; overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 860px; }
th, td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
th { color: #8ea4b8; font-weight: 600; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.empty { text-align: center; padding: 28px; }

@media (max-width: 720px) {
  .lang-bar {
    top: 12px;
    right: 12px;
    left: 12px;
    justify-content: center;
  }
  .lang-btn { flex: 1; padding: 0 8px; font-size: 11px; }
  .brand { width: min(140px, 48vw); }
  .soon { min-height: 38px; font-size: 13px; padding: 0 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats article:nth-child(3) { border-left: 0; }
  .stats article:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .admin-wrap h1 { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .soon i { animation: none !important; }
}
