@font-face {
  font-family: BeVietnam;
  src: url("/assets/BeVietnamPro-Regular.ttf");
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #101117;
  color: #e9e7f0;
  font:
    14px BeVietnam,
    system-ui,
    sans-serif;
}
a {
  color: #b9a2fa;
}
main {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 24px;
}
h1 {
  font-size: 25px;
}
h2 {
  font-size: 18px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.7;
}
.muted,
small {
  color: #aaa3b7;
}
.bar,
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bar {
  margin-bottom: 18px;
}
.push {
  margin-left: auto;
}
.card {
  border: 1px solid #30313e;
  background: #191a23;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 16px;
}
.grid > .card {
  margin: 0;
}
.price {
  font-size: 23px;
  font-weight: 600;
}
.badge {
  padding: 3px 10px;
  border-radius: 20px;
  background: #302641;
  color: #c6b3fc;
}
button,
input,
select,
textarea {
  font: inherit;
  border: 1px solid #3e3b4b;
  border-radius: 8px;
  padding: 10px 12px;
  background: #14151b;
  color: inherit;
}
button {
  cursor: pointer;
}
button:hover {
  border-color: #a78bfa;
}
button.primary {
  background: #a78bfa;
  color: #171121;
  border-color: transparent;
}
button.danger {
  color: #ffaba2;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
label {
  display: grid;
  gap: 7px;
  margin: 12px 0;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
}
textarea {
  min-height: 100px;
}
input[type="checkbox"] {
  margin-right: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
td,
th {
  border-bottom: 1px solid #30313e;
  padding: 12px;
  text-align: left;
  vertical-align: top;
  max-width: 330px;
  overflow-wrap: anywhere;
}
th {
  color: #b5adbf;
}
.table-wrap {
  overflow: auto;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: 12px system-ui;
  background: #101117;
  padding: 12px;
  border-radius: 8px;
}
dialog {
  background: #191a23;
  color: #e9e7f0;
  border: 1px solid #786398;
  border-radius: 16px;
  width: min(780px, 95vw);
  max-height: 90vh;
  padding: 24px;
  position: relative;
}
.dialog-dismiss {
  position: absolute;
  top: 16px;
  right: 16px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: #aaa3b7;
}
dialog::backdrop {
  background: #0009;
}
.qr {
  width: 240px;
  max-width: 100%;
  background: white;
  border-radius: 10px;
}
form {
  max-width: 550px;
}
.key {
  font-family: monospace;
  font-size: 18px;
  letter-spacing: 1px;
}
.hidden {
  display: none !important;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
footer {
  max-width: 1200px;
  padding: 20px 24px;
  margin: 20px auto;
  color: #a29cac;
  font-size: 12px;
}
:focus-visible {
  outline: 2px solid #c9b5ff;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  header {
    padding: 14px;
    gap: 10px;
  }
  main {
    padding: 0 14px;
  }
  .card {
    padding: 16px;
  }
  table {
    font-size: 11px;
  }
}

/* Shared DubiSub pricing direction: violet focus, quiet surfaces, clear terms. */
.portal-title {
  color: #c3bbd2;
  font-size: 13px;
  white-space: nowrap;
}
#identity {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tabs {
  gap: 5px;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  background: #191a23;
  border: 1px solid #30313e;
  border-radius: 13px;
}
.tabs button {
  background: transparent;
  border-color: transparent;
  color: #b9b3c4;
  min-height: 40px;
}
.tabs button[aria-current="page"] {
  color: #f3edff;
  background: #322843;
  border-color: #55416f;
}
.pricing-overview {
  border: 0;
  padding: 12px 0 0;
  margin: 0;
  background: transparent;
}
.pricing-intro {
  margin-bottom: 23px;
}
.pricing-intro h1 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.8px;
  margin: 5px 0 10px;
}
.pricing-intro p {
  color: #aaa3b7;
  margin: 0;
  max-width: 750px;
}
.catalog-status {
  color: #b9b0cb;
  font-size: 12px;
  padding: 12px 16px;
  background: #211d2c;
  border: 1px solid #393044;
  border-radius: 11px;
  margin: 16px 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 23px 20px 20px;
  border: 1px solid #373442;
  border-radius: 19px;
  background: linear-gradient(160deg, #1c1c26, #17181f);
}
.pricing-card.featured {
  border-color: #8462bf;
  background: linear-gradient(158deg, #302340, #1d1c2a 70%);
}
.pricing-card.owned {
  border-color: #b397e6;
}
.plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan-heading h2 {
  font-size: 21px;
  margin: 0;
  font-weight: 600;
}
.plan-badge {
  background: #3b2d50;
  border-radius: 20px;
  padding: 4px 8px;
  color: #d2bcfa;
  font-size: 11px;
}
.plan-description {
  color: #aaa3b7;
  min-height: 39px;
  margin: 14px 0;
  font-size: 13px;
}
.plan-price {
  margin: 0 0 19px;
}
.plan-price strong {
  display: block;
  font-size: clamp(25px, 2.5vw, 29px);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.8px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.plan-price span {
  display: block;
  color: #aaa3b7;
  margin-top: 3px;
  font-size: 12px;
}
.plan-action {
  width: 100%;
  min-height: 44px;
  border-radius: 12px;
  font-weight: 600;
}
.plan-action:disabled {
  opacity: 1;
  color: #a49cab;
  background: #25232d;
  border-color: #38333f;
}
.plan-benefits {
  list-style: none;
  padding: 20px 0 0;
  margin: 20px 0 0;
  border-top: 1px solid #3a3347;
  display: grid;
  gap: 13px;
}
.plan-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  line-height: 1.6;
}
.plan-benefits svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 3px;
  color: #ba9bf5;
}
.plan-footnote {
  margin: auto 0 0;
  padding-top: 26px;
  color: #a59bad;
  font-size: 11px;
  line-height: 1.7;
}
.pricing-terms {
  color: #aaa3b7;
  font-size: 12px;
  line-height: 1.8;
  padding: 16px 2px 0;
  margin-bottom: 0;
}
@media (max-width: 1040px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-card {
    padding: 24px;
  }
}
@media (max-width: 580px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card {
    padding: 24px;
  }
  .portal-title {
    display: none;
  }
  .plan-description {
    min-height: 0;
  }
  .tabs {
    width: 100%;
  }
  .tabs button {
    padding: 8px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .plan-action {
    transition:
      background 140ms ease,
      border-color 140ms ease;
  }
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #e9e7f0;
  font-size: 20px;
  font-weight: 600;
  white-space: nowrap;
}
.brand-accent {
  color: #b291fa;
}
