.access-dialog {
  width: min(940px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  border: 1px solid #9eb9dd66;
  border-radius: 29px;
  color: #f2f6ff;
  background: var(--wf-night);
  box-shadow: 0 25px 90px #070c23ac;
}
.access-dialog::backdrop { background: #09142fb8; backdrop-filter: blur(8px); }
.access-dialog[open] { animation: access-in .42s cubic-bezier(.32,.08,.22,1); }
@keyframes access-in { from { opacity: 0; transform: translateY(22px) scale(.975); } }
.access-shell {
  position: relative;
  overflow: clip;
  background: radial-gradient(ellipse at 50% 34%, #0d2846, transparent 68%), var(--wf-night);
}
.access-close {
  position: absolute;
  z-index: 1;
  top: 13px;
  right: 13px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #a4bae65c;
  border-radius: 50%;
  background: #243554;
  color: white;
  font-size: 24px;
  cursor: pointer;
}
.access-stage { position: relative; overflow: hidden; }
.access-pane { padding: 12px clamp(13px, 4vw, 36px) 29px; width: 100%; }
.access-outgoing { position: absolute; inset: 0 auto auto 0; pointer-events: none; }
.access-dialog [hidden] { display: none !important; }
.access-heading { text-align: center; margin-bottom: 20px; }
.access-heading h2, .sales-pane h2 { color: #fff; font-size: clamp(1.45rem, 4vw, 2.2rem); letter-spacing: -.045em; }
.access-pane h2:focus { outline: none; }
.access-heading p:not(.access-sector), .sales-pane p { max-width: 55ch; margin: 6px auto 0; color: #d8e1f4; }
.access-heading .access-sector { color: #f3d49c; font-size: .82rem; font-weight: 760; margin-bottom: 5px; }
.access-grid { display: grid; gap: 15px; grid-template-columns: repeat(2, minmax(0,1fr)); }
.access-card {
  min-width: 0;
  border-radius: 25px;
  padding: 12px clamp(13px, 3vw, 24px) 18px;
  color: #22134d;
  border: 1px solid #fffc;
  background: radial-gradient(ellipse at 32% 4%, #fff 0%, #ede3ff 52%, #e4d3ff);
  box-shadow: inset 0 0 10px #fff, 0 7px 22px #08091883;
}
.official-card {
  color: #093a40;
  background: radial-gradient(ellipse at 32% 4%, #fff 0%, #d8f7f0 52%, #b9eee2);
}
.access-illustration { height: 107px; position: relative; display: grid; place-items: center; margin: auto; width: min(100%, 250px); }
.access-illustration img { width: 144px; height: 100%; object-fit: contain; }
.trial-duration {
  display: table;
  margin: 0 auto 9px;
  padding: 5px 11px;
  border: 1px solid white;
  border-radius: 9px;
  background: #f7f0ff;
  font-size: .76rem;
  font-weight: 800;
}
.access-card h3 { font-size: clamp(1.45rem, 3.8vw, 2.1rem); text-align: center; letter-spacing: -.045em; margin: 4px 0 7px; }
.access-card > p { text-align: center; margin: 0 auto 17px; max-width: 30ch; line-height: 1.4; }
.access-card form { display: grid; gap: 6px; margin-top: 10px; }
.access-card label { font-size: .82rem; font-weight: 700; }
.access-card input, .admin input {
  width: 100%;
  border: 1px solid #9886bb;
  border-radius: 11px;
  padding: 9px 12px;
  min-height: 41px;
  color: #161f3a;
  background: #ffffffc9;
  font: inherit;
}
.access-action, .access-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border-radius: 12px;
  min-height: 40px;
  padding: 9px 13px;
  text-align: center;
  text-decoration: none;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.access-action {
  border: 1px solid #ffffff78;
  color: white;
  background: linear-gradient(#813cd0, #49209e);
  box-shadow: 0 3px 9px #6639a84d, inset 0 1px 1px #ffffff75;
}
.access-secondary { border: 1px solid #bda6de; color: #392164; background: #f5edff; }
.access-action:hover, .access-secondary:hover { filter: brightness(1.09); }
.access-action:disabled, .access-secondary:disabled { opacity: .65; cursor: wait; }
.access-action:focus-visible, .access-secondary:focus-visible, .access-close:focus-visible, .access-card input:focus-visible {
  outline: 3px solid #2963b5;
  outline-offset: 2px;
}
.official-card .access-action, .sales-pane .access-action {
  background: linear-gradient(#088961, #075b49);
  box-shadow: 0 3px 9px #066b6745, inset 0 1px 1px #ffffff75;
}
.official-details-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  padding: 0;
  margin: 19px 0 0;
  list-style: none;
  font-size: .77rem;
  font-weight: 720;
}
.official-details-list li { padding: 5px 8px; border: 1px solid #64b8a572; border-radius: 8px; background: #ffffff5e; }
.access-feedback { font-size: .84rem; line-height: 1.4; margin-top: 8px; }
#continue-trial { margin-top: 8px; }
.sales-pane { text-align: center; display: grid; justify-items: center; gap: 13px; }
.sales-pane img { width: 168px; }
.sales-pane :is(.access-action,.access-secondary) { width: min(100%, 370px); }

.admin { color: #e6ebf5; background: #121b2d; min-height: 100vh; padding: 24px; }
.admin main { max-width: 1140px; margin: auto; }
.admin header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.admin h1 { color: white; }
.admin form { display: grid; max-width: 400px; gap: 10px; }
.admin .access-action { width: auto; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.admin-stats > div, .admin-issued { background: #23324d; border: 1px solid #3a4b6d; border-radius: 16px; padding: 16px; }
.admin-stats strong { display: block; color: #fff; font-size: 1.6rem; margin-top: 5px; }
.admin-table { overflow-x: auto; }
.admin table { border-collapse: collapse; width: 100%; min-width: 720px; }
.admin th, .admin td { padding: 10px; text-align: left; border-bottom: 1px solid #384764; }
.admin-issued { display: grid; gap: 12px; margin-bottom: 18px; }
.admin-issued output { letter-spacing: .08em; font: 750 1.2rem monospace; }
.admin-pagination { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.admin [hidden] { display: none !important; }
@media (max-width: 610px) {
  .access-grid { grid-template-columns: 1fr; }
  .access-dialog { border-radius: 20px; }
  .access-close { position: sticky; display: block; margin: 13px 13px -40px auto; right: auto; }
  .access-heading p:not(.access-sector) { font-size: .9rem; }
  .admin { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .access-dialog[open] { animation: none; } }
