:root {
  --bg: #070b14;
  --bg-2: #0a1220;
  --surface: rgba(15, 25, 42, 0.86);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.105);
  --text: #f4f7fb;
  --muted: #aab6c8;
  --gold: #d7ad4a;
  --gold-2: #f1d27d;
  --green: #52d273;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.36);
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100dvh;
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 50% -18%, rgba(215, 173, 74, 0.20), transparent 34%),
    radial-gradient(circle at 100% 12%, rgba(72, 117, 255, 0.12), transparent 28%),
    linear-gradient(180deg, var(--bg-2), var(--bg) 58%);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.entry-shell {
  min-height: 100dvh;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 20px;
}

.entry-card {
  align-self: center;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.brand {
  text-align: center;
  padding: 22px 8px 14px;
}

.brand-logo {
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.brand-logo span { display: none; }
.brand-logo--fallback span {
  display: block;
  color: var(--gold-2);
  font-weight: 900;
  font-size: 28px;
  letter-spacing: -0.05em;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 82px);
  line-height: .9;
  letter-spacing: -0.075em;
}

.subtitle {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
}

.status-card {
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(82, 210, 115, .22);
  background: rgba(82, 210, 115, .09);
  color: #d9ffe3;
  font-size: 13px;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(82,210,115,.12);
  flex: 0 0 auto;
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.access-card {
  position: relative;
  min-height: 132px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.access-card:hover,
.access-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(215, 173, 74, .42);
  background: rgba(18, 31, 52, .94);
  outline: none;
}

.access-card--admin {
  background: linear-gradient(135deg, rgba(215,173,74,.18), rgba(15,25,42,.88) 46%);
}

.access-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.10);
  color: var(--gold-2);
}

.access-icon svg {
  width: 27px;
  height: 27px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.access-content strong {
  display: block;
  font-size: clamp(19px, 3vw, 26px);
  letter-spacing: -0.04em;
}

.access-content small {
  display: block;
  max-width: 390px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.access-action {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(215,173,74,.14);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.entry-footer {
  display: flex;
  justify-content: center;
  gap: 10px 18px;
  flex-wrap: wrap;
  color: rgba(244,247,251,.48);
  font-size: 12px;
}

@media (min-width: 720px) {
  .entry-card { padding: 34px; }
  .access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .access-card {
    min-height: 260px;
    grid-template-columns: 1fr;
    align-items: start;
  }
  .access-action { justify-self: start; margin-top: 12px; }
}

@media (max-width: 440px) {
  .entry-shell { padding-left: 12px; padding-right: 12px; }
  .entry-card { padding: 14px; border-radius: 26px; }
  .brand { padding-top: 18px; }
  .brand-logo { width: 78px; height: 78px; border-radius: 24px; }
  .access-card {
    grid-template-columns: 48px 1fr;
    min-height: 118px;
    padding: 14px;
  }
  .access-icon { width: 48px; height: 48px; border-radius: 16px; }
  .access-action { grid-column: 2; width: fit-content; margin-top: 4px; }
}
