:root {
  color-scheme: dark;
  --bg: #0b0716;
  --surface: #141021;
  --surface2: #1c172b;
  --line: #342b45;
  --ink: #f7f2e8;
  --muted: #9d95aa;
  --gold: #f6b13c;
  --gold2: #ffe0a0;
  --red: #ff766d;
  --green: #71d49c;
}
* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(
      circle at 14% -10%,
      rgba(246, 177, 60, 0.14),
      transparent 30%
    ),
    radial-gradient(
      circle at 95% 20%,
      rgba(128, 78, 170, 0.1),
      transparent 27%
    ),
    var(--bg);
  font-family: "Segoe UI", sans-serif;
}
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
}
.shell {
  position: relative;
  width: min(1380px, calc(100% - 44px));
  margin: auto;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.identity {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.identity img {
  width: 44px;
  height: 44px;
}
.identity span {
  display: flex;
  flex-direction: column;
}
.identity small,
.tag {
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.identity strong {
  font:
    700 17px/1.25 Georgia,
    serif;
}
.masthead nav {
  display: flex;
  gap: 8px;
}
.masthead nav a {
  padding: 9px 12px;
  color: var(--muted);
  border-radius: 8px;
  text-decoration: none;
  font-size: 12px;
}
.masthead nav a:hover {
  color: var(--ink);
  background: var(--surface);
}
h1 {
  margin: 8px 0 10px;
  font:
    700 clamp(31px, 4vw, 55px)/0.98 Georgia,
    serif;
  letter-spacing: -0.035em;
}
h2 {
  font:
    700 15px Georgia,
    serif;
}
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 45px;
  align-items: center;
  padding: 44px 0 30px;
}
.hero-panel > div > p {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.6;
}
.create-card {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  padding: 18px;
  border: 1px solid #4b3d27;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(246, 177, 60, 0.1),
    rgba(255, 255, 255, 0.025)
  );
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}
.create-card .button {
  grid-column: 1/-1;
}
.form-stack {
  display: grid;
  gap: 13px;
}
.form-stack label,
.create-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
input,
select {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  border: 1px solid #493f5a;
  border-radius: 8px;
  outline: 0;
  background: #0e0a19;
  font:
    500 12px "Segoe UI",
    sans-serif;
}
input:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(246, 177, 60, 0.1);
}
.button {
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  font:
    750 10px "Segoe UI",
    sans-serif;
  letter-spacing: 0.04em;
  cursor: pointer;
  text-decoration: none;
}
.button.primary {
  color: #201404;
  background: var(--gold);
}
.button.primary:hover {
  background: var(--gold2);
}
.button.quiet {
  color: var(--ink);
  border-color: #443a55;
  background: #1b1628;
}
.button.warning {
  color: #1f1203;
  background: #e99a2f;
}
.button.danger {
  color: #ffd9d6;
  border-color: #683b43;
  background: #3a1d25;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 10px 0 34px;
}
.stats article {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(20, 16, 33, 0.8);
}
.stats small {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.15em;
}
.stats strong {
  display: block;
  margin-top: 7px;
  font:
    700 28px Georgia,
    serif;
}
.license-section {
  padding-bottom: 45px;
}
.section-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}
.search {
  display: flex;
  gap: 7px;
  width: min(420px, 100%);
}
.search button {
  padding: 0 15px;
  color: var(--gold);
  border: 1px solid #4b3d27;
  border-radius: 8px;
  background: #1b1522;
  cursor: pointer;
}
.license-grid {
  display: grid;
  gap: 9px;
}
.license-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 4px 13px 13px 4px;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.012)
  );
}
.license-row.banned {
  border-left-color: var(--red);
}
.license-row.expired {
  border-left-color: #887f91;
}
.license-title {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-bottom: 7px;
}
.license-title strong {
  font-size: 13px;
}
.pill {
  padding: 4px 7px;
  color: #092014;
  border-radius: 99px;
  background: var(--green);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}
.banned .pill {
  color: #2a0806;
  background: var(--red);
}
.expired .pill {
  color: #1b1720;
  background: #a9a1b0;
}
.key {
  padding: 0;
  color: var(--gold2);
  border: 0;
  background: transparent;
  font:
    700 14px Consolas,
    monospace;
  cursor: pointer;
}
.details {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 15px;
  margin-top: 13px;
}
.details span {
  color: #dad4df;
  font-size: 10px;
}
.details small {
  display: block;
  margin-bottom: 3px;
  color: #81798c;
  font-size: 7px;
  letter-spacing: 0.1em;
}
.actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}
.actions form {
  display: flex;
  gap: 5px;
}
.days {
  width: 68px;
  padding: 9px 6px;
}
.empty {
  padding: 50px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.empty strong,
.empty span {
  display: block;
}
.empty span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}
.flash {
  margin: 20px 0;
  padding: 12px 15px;
  color: #bdf3d3;
  border: 1px solid #34644b;
  border-radius: 10px;
  background: #12291d;
  font-size: 12px;
}
.flash.error {
  color: #ffd1cd;
  border-color: #673941;
  background: #30171e;
}
.auth-card {
  width: min(500px, 100%);
  margin: 9vh auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(20, 16, 33, 0.88);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35);
}
.auth-intro {
  margin-bottom: 22px;
}
.auth-intro h1 {
  font-size: 37px;
}
.auth-intro p {
  color: var(--muted);
  line-height: 1.55;
}
.program-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  padding: 38px 0 25px;
}
.program-hero p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.55;
}
.program-account {
  min-width: 250px;
  padding: 15px;
  border: 1px solid #4b3d27;
  border-radius: 12px;
  background: rgba(246, 177, 60, 0.08);
}
.program-account small,
.program-account strong,
.program-account span {
  display: block;
}
.program-account small {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.program-account strong {
  margin: 6px 0;
  font:
    700 15px Georgia,
    serif;
}
.program-account span {
  color: var(--muted);
  font-size: 10px;
}
.program-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px 12px 0 0;
  background: var(--surface);
}
.program-toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}
.program-toolbar input[type="number"] {
  width: 62px;
  padding: 7px;
}
.program-toolbar .toolbar-check input {
  width: auto;
}
.live-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  font-size: 11px;
  font-weight: 700;
}
.live-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(113, 212, 156, 0.1);
}
.viewer-shell {
  position: relative;
  height: min(74vh, 880px);
  min-height: 570px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  background: #fff;
}
.viewer-shell iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.viewer-loading {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  background: #100c1b;
  transition: opacity 0.25s;
}
.viewer-loading.hidden {
  opacity: 0;
  pointer-events: none;
}
.viewer-loading img {
  width: 56px;
  animation: pulse 1.2s ease-in-out infinite;
}
.viewer-loading span {
  font-size: 11px;
  letter-spacing: 0.08em;
}
@keyframes pulse {
  50% {
    transform: scale(0.92);
    opacity: 0.65;
  }
}
.browser-note {
  display: flex;
  gap: 18px;
  margin: 14px 0 35px;
  padding: 15px 17px;
  border: 1px solid #3b3448;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}
.browser-note strong {
  white-space: nowrap;
  color: var(--gold);
  font-size: 11px;
}
.browser-note p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}
.footer {
  display: flex;
  justify-content: space-between;
  padding: 20px 0 30px;
  color: #6f6878;
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.08em;
}
.footer a {
  color: #9f8a62;
  text-decoration: none;
}
@media (max-width: 900px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .license-row {
    grid-template-columns: 1fr;
  }
  .actions {
    justify-content: flex-start;
  }
  .details {
    grid-template-columns: repeat(2, 1fr);
  }
  .program-hero {
    grid-template-columns: 1fr;
  }
  .program-account {
    min-width: 0;
  }
  .viewer-shell {
    height: 70vh;
  }
  .browser-note {
    display: block;
  }
  .browser-note strong {
    display: block;
    margin-bottom: 6px;
  }
}
@media (max-width: 600px) {
  .shell {
    width: min(100% - 24px, 1380px);
  }
  .masthead {
    padding: 15px 0;
  }
  .identity strong {
    font-size: 14px;
  }
  .hero-panel {
    padding-top: 28px;
  }
  .create-card {
    grid-template-columns: 1fr;
  }
  .stats {
    gap: 7px;
  }
  .stats article {
    padding: 13px;
  }
  .section-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .license-row {
    padding: 14px;
  }
  .details {
    grid-template-columns: 1fr 1fr;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .actions form,
  .actions .button {
    width: 100%;
  }
  .auth-card {
    margin: 5vh auto;
    padding: 21px;
  }
  .program-toolbar {
    align-items: stretch;
  }
  .program-toolbar > * {
    justify-content: center;
  }
  .live-indicator {
    width: 100%;
    margin: 0;
  }
  .viewer-shell {
    min-height: 500px;
  }
  .external {
    text-align: center;
  }
}

.client-login {
  color: var(--muted);
  font-size: 9px;
}

.password-mini {
  width: 105px;
  padding: 9px 7px;
}

.create-card small {
  color: #776f82;
  font-size: 8px;
  letter-spacing: 0;
  text-transform: none;
}

.credentials-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  gap: 70px;
  align-items: center;
  min-height: 70vh;
  padding: 45px 0;
}

.credentials-copy > p {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
}

.security-points {
  display: grid;
  gap: 10px;
  margin-top: 25px;
}

.security-points span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #d9d3df;
  font-size: 12px;
}

.security-points i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--gold);
  border: 1px solid #564527;
  border-radius: 9px;
  font-size: 8px;
  font-style: normal;
}

.credentials-card {
  display: grid;
  gap: 14px;
  padding: 25px;
  border: 1px solid #4d402b;
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(246, 177, 60, 0.09),
    rgba(20, 16, 33, 0.94)
  );
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.3);
}

.credentials-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.credentials-card small {
  color: #7f778a;
  font-size: 9px;
  line-height: 1.5;
}

.credentials-state {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.credentials-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.credentials-state.ready i {
  background: var(--green);
}

.monitor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  min-height: 650px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  overflow: hidden;
  background: #100c1b;
}

.snapshot-card {
  position: relative;
  min-height: 650px;
  overflow: auto;
  background: #ebe8e0;
}

.snapshot-card > img {
  display: block;
  width: 100%;
  min-height: 100%;
  object-fit: contain;
  object-position: top center;
}

.products-card {
  padding: 18px;
  border-left: 1px solid var(--line);
  background: var(--surface);
  overflow: auto;
}

.products-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.products-head small,
.products-head strong {
  display: block;
}

.products-head small {
  color: var(--gold);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.products-head strong {
  margin-top: 3px;
  font:
    700 25px Georgia,
    serif;
}

.products-head time {
  color: var(--muted);
  font-size: 8px;
}

.new-alert {
  margin: 12px 0;
  padding: 10px;
  color: #0c2116;
  border-radius: 8px;
  background: var(--green);
  font-size: 10px;
  font-weight: 800;
}

.products-list {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.products-list > p {
  color: var(--muted);
  font-size: 10px;
}

.product-item {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #332c40;
  border-radius: 8px;
  background: #100c1a;
}

.product-item code {
  color: var(--gold);
  font-size: 9px;
}

.product-item span {
  color: #ddd7e2;
  font-size: 10px;
  line-height: 1.35;
}

.live-indicator i.working {
  background: var(--gold);
}

.live-indicator i.failed {
  background: var(--red);
}

.settings-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 2px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.settings-divider::after {
  flex: 1;
  height: 1px;
  background: var(--line);
  content: "";
}

.notification-toggle {
  display: flex !important;
  align-items: flex-start;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #100c1a;
  cursor: pointer;
}

.notification-toggle input {
  width: 17px !important;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--gold);
}

.notification-toggle span,
.notification-toggle strong,
.notification-toggle small {
  display: block;
}

.notification-toggle strong {
  color: var(--text);
  font-size: 11px;
}

.notification-toggle small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.sound-test {
  justify-self: start;
}

.sound-feedback {
  min-height: 14px;
  margin-top: -6px;
  color: var(--green);
  font-size: 9px;
}

.client-browser-hero {
  border-bottom-color: var(--gold);
}

.browser-steps {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.browser-steps article {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.browser-steps article > span {
  color: var(--gold);
  font: 700 32px/1 Georgia, serif;
  opacity: .68;
}

.browser-steps h2 {
  margin: 0 0 7px;
  font: 700 21px Georgia, serif;
}

.browser-steps p {
  max-width: 720px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.license-copy {
  display: flex;
  align-items: center;
  gap: 9px;
}

.license-copy code {
  padding: 11px 13px;
  color: var(--gold);
  border: 1px dashed #69522c;
  border-radius: 7px;
  background: #100c1a;
  letter-spacing: .08em;
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 14px;
  padding: 15px 18px;
  border-left: 3px solid var(--green);
  background: rgba(79, 197, 135, .07);
}

.privacy-note i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(79, 197, 135, .09);
}

.privacy-note strong,
.privacy-note p {
  display: block;
  margin: 0;
}

.privacy-note p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 950px) {
  .credentials-wrap,
  .monitor-grid {
    grid-template-columns: 1fr;
  }
  .products-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
