:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #eef8ff;
  background: #020611;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

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

.page {
  min-height: 100vh;
  background: #020611;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: #06101f;
}

.hero:before {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url("/aicrafter-banner.jpg");
  background-position: center top;
  background-size: cover;
  content: "";
  opacity: 0.22;
}

.hero:after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 38vh;
  background: linear-gradient(180deg, rgba(2, 6, 17, 0), #020611);
  content: "";
}

.stars {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.75) 1px, rgba(255, 255, 255, 0) 2px),
    radial-gradient(circle, rgba(87, 236, 255, 0.55) 1px, rgba(87, 236, 255, 0) 2px);
  background-position: 0 0, 34px 52px;
  background-size: 92px 92px, 146px 146px;
  opacity: 0.52;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
}

.hero-shell {
  min-height: 720px;
  padding: 26px 0 72px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(38px, 6vh, 78px);
}

.topbar,
.brand,
.actions,
.card-head {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 20px;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(125, 245, 255, 0.44);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(44, 219, 255, 0.28);
}

.brand-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
}

.brand-subtitle {
  margin: 2px 0 0;
  color: #8da7ba;
  font-size: 12px;
}

.actions {
  gap: 10px;
}

.nav-link,
.button {
  border: 1px solid rgba(159, 221, 255, 0.24);
  border-radius: 999px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-link {
  min-width: 42px;
  padding: 10px 13px;
  color: #b7cedd;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 12px 17px;
  font-size: 14px;
  font-weight: 800;
}

.account-button {
  max-width: min(260px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-open {
  overflow: hidden;
}

.account-modal[hidden] {
  display: none;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: start end;
  padding: 82px 32px 24px;
}

.account-scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 17, 0.56);
  backdrop-filter: blur(8px);
}

.account-dialog {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  border: 1px solid rgba(145, 221, 255, 0.22);
  border-radius: 8px;
  background: rgba(9, 21, 40, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  padding: 22px;
}

.account-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.account-dialog h2 {
  margin: 16px 0 0;
  font-size: 34px;
  line-height: 1.08;
  letter-spacing: 0;
}

.account-email {
  margin: 8px 0 0;
  color: #a9c3d4;
  overflow-wrap: anywhere;
}

.account-close {
  background: transparent;
  cursor: pointer;
}

.account-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.account-tile {
  border: 1px solid rgba(159, 221, 255, 0.18);
  border-radius: 8px;
  padding: 15px;
  background: rgba(2, 6, 17, 0.42);
}

.account-tile dt {
  color: #8db4cf;
  font-size: 12px;
}

.account-tile dd {
  margin: 8px 0 0;
  color: #eef8ff;
  font-size: 22px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.account-actions form {
  margin: 0;
}

.account-actions .button {
  min-width: 124px;
}

.account-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.account-tab {
  border: 1px solid rgba(159, 221, 255, 0.2);
  border-radius: 999px;
  background: rgba(2, 6, 17, 0.36);
  color: #b7cedd;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  padding: 9px 12px;
}

.account-tab.is-active {
  border-color: rgba(90, 241, 255, 0.66);
  background: rgba(125, 246, 255, 0.14);
  color: #eef8ff;
}

.account-tab-panels {
  margin-top: 14px;
}

.account-tab-panel {
  display: none;
}

.account-tab-panel.is-active {
  display: block;
}

.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.billing-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.billing-option,
.billing-message,
.usage-list {
  border: 1px solid rgba(159, 221, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 17, 0.34);
}

.billing-option {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.billing-option p {
  margin: 0;
  color: #7df6ff;
  font-size: 12px;
  font-weight: 900;
}

.billing-option strong {
  color: #eef8ff;
  font-size: 20px;
}

.billing-option span,
.billing-note,
.billing-message p,
.usage-list span {
  color: #a9c3d4;
}

.billing-option .button {
  margin-top: 4px;
  min-height: 36px;
  padding: 9px 12px;
}

.billing-option .button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.billing-note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
}

.billing-message {
  padding: 16px;
}

.billing-message strong {
  color: #eef8ff;
}

.billing-message p {
  margin: 10px 0 0;
  line-height: 1.7;
}

.usage-list {
  display: grid;
}

.usage-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
}

.usage-list div + div {
  border-top: 1px solid rgba(159, 221, 255, 0.12);
}

.usage-list strong {
  color: #eef8ff;
}

.account-state {
  margin: 16px 0 0;
  color: #a9c3d4;
  line-height: 1.7;
}

.button:hover,
.nav-link:hover {
  border-color: rgba(109, 245, 255, 0.75);
}

.button-primary {
  border-color: rgba(90, 241, 255, 0.66);
  background: #7df6ff;
  color: #04101b;
  box-shadow: 0 0 32px rgba(71, 222, 255, 0.28);
}

.button-ghost {
  background: rgba(8, 18, 32, 0.72);
  color: #d8f4ff;
}

.hero-grid {
  display: grid;
  gap: 64px;
  align-items: center;
  padding: 0;
}

.hero-copy {
  align-self: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(94, 242, 255, 0.34);
  border-radius: 999px;
  background: rgba(7, 21, 38, 0.72);
  padding: 7px 12px;
  color: #8ff6ff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin: 24px 0 0;
  font-size: clamp(50px, 5.3vw, 92px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: #d8f4ff;
  font-size: clamp(24px, 2.4vw, 38px);
  font-weight: 900;
  line-height: 1.18;
}

.description {
  max-width: 760px;
  margin: 24px 0 0;
  color: #a9c3d4;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.mission-panel {
  position: relative;
  overflow: hidden;
  align-self: center;
  border: 1px solid rgba(130, 232, 255, 0.22);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.9);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

.panel-glow {
  position: absolute;
  top: -80px;
  right: -70px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(48, 235, 255, 0.14);
}

.panel-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  opacity: 0.84;
}

.panel-content {
  padding: 22px;
}

.panel-kicker {
  margin: 0;
  color: #7cf5ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-panel dl {
  margin: 14px 0 0;
}

.mission-panel dt {
  margin-top: 15px;
  color: #eef8ff;
  font-size: 13px;
  font-weight: 800;
}

.mission-panel dd {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
  color: #91aebe;
  font-size: 13px;
  line-height: 1.55;
}

.products {
  padding: 78px 0 92px;
}

.section-head {
  max-width: 720px;
}

.section-head h2 {
  margin: 18px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  gap: 16px;
  margin-top: 36px;
}

.product-card {
  display: block;
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid rgba(137, 218, 255, 0.16);
  border-radius: 8px;
  background: #091528;
  padding: 22px;
}

a.product-card {
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

a.product-card:hover {
  border-color: rgba(125, 246, 255, 0.48);
  box-shadow: 0 20px 70px rgba(40, 220, 255, 0.12);
  transform: translateY(-2px);
}

.product-card:after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  height: 1px;
  background: rgba(111, 241, 255, 0.46);
  content: "";
}

.product-orbit {
  position: absolute;
  top: -34px;
  right: -34px;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(113, 232, 255, 0.18);
  border-radius: 50%;
  color: rgba(147, 245, 255, 0.62);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.card-head {
  position: relative;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-card h3 {
  margin: 0;
  font-size: 22px;
}

.status {
  flex: 0 0 auto;
  border: 1px solid rgba(121, 242, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 224, 255, 0.08);
  padding: 6px 9px;
  color: #9cf7ff;
  font-size: 11px;
  font-weight: 800;
}

.product-card p {
  position: relative;
  margin: 28px 0 0;
  color: #a7bfce;
  font-size: 15px;
  line-height: 1.72;
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(68, 218, 255, 0.14), transparent 26%),
    #020611;
}

.admin-shell {
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.admin-brand {
  margin-bottom: 46px;
}

.admin-topbar {
  margin-bottom: 52px;
}

.admin-panel,
.admin-table-wrap {
  border: 1px solid rgba(159, 221, 255, 0.2);
  border-radius: 8px;
  background: rgba(9, 21, 40, 0.92);
}

.admin-panel {
  max-width: 680px;
  padding: 28px;
}

.admin-otp-panel {
  max-width: 560px;
}

.admin-otp-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.admin-otp-form label {
  color: #eef8ff;
  font-size: 13px;
  font-weight: 800;
}

.admin-otp-form input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(159, 221, 255, 0.28);
  border-radius: 999px;
  background: #020611;
  color: #eef8ff;
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 10px;
  outline: none;
  padding: 12px 22px;
  text-align: center;
}

.admin-otp-form input:focus {
  border-color: rgba(90, 241, 255, 0.72);
  box-shadow: 0 0 24px rgba(71, 222, 255, 0.2);
}

.admin-otp-form input:disabled,
.admin-otp-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.admin-panel h1,
.admin-header h1 {
  margin: 18px 0 0;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.admin-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-meta {
  display: grid;
  gap: 8px;
  color: #8db4cf;
  font-size: 13px;
  text-align: right;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

.admin-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.admin-section-nav button {
  border: 1px solid rgba(159, 221, 255, 0.24);
  border-radius: 999px;
  background: rgba(9, 21, 40, 0.72);
  color: #b7cedd;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 10px 13px;
}

.admin-section-nav button:hover,
.admin-section-nav button.is-active {
  border-color: rgba(90, 241, 255, 0.72);
  background: rgba(125, 246, 255, 0.14);
  color: #eef8ff;
}

.admin-search {
  border: 1px solid rgba(159, 221, 255, 0.18);
  border-radius: 8px;
  background: rgba(9, 21, 40, 0.72);
  margin-bottom: 18px;
  padding: 16px;
}

.admin-search label {
  display: block;
  color: #8ff6ff;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.admin-search div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-search input {
  flex: 1 1 280px;
  min-height: 42px;
  border: 1px solid rgba(159, 221, 255, 0.24);
  border-radius: 999px;
  background: #020611;
  color: #eef8ff;
  font: inherit;
  outline: none;
  padding: 10px 16px;
}

.admin-search input:focus {
  border-color: rgba(90, 241, 255, 0.72);
}

.admin-search p {
  margin: 12px 0 0;
  color: #8db4cf;
  font-size: 13px;
}

.admin-summary-compact {
  margin-top: 14px;
}

.admin-summary div {
  border: 1px solid rgba(159, 221, 255, 0.18);
  border-radius: 8px;
  background: rgba(9, 21, 40, 0.78);
  padding: 16px;
}

.admin-summary dt {
  color: #8db4cf;
  font-size: 12px;
}

.admin-summary dd {
  margin: 9px 0 0;
  color: #eef8ff;
  font-size: 22px;
  font-weight: 900;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-section {
  margin-top: 28px;
}

.admin-section[hidden] {
  display: none;
}

.admin-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.admin-section-head h2,
.admin-table-title h2 {
  margin: 12px 0 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: 0;
}

.admin-section-head p {
  max-width: 460px;
  margin: 0;
  color: #8db4cf;
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
}

.admin-table-title {
  padding: 16px 16px 0;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 2fr;
  gap: 12px;
}

.admin-status-grid div {
  border: 1px solid rgba(159, 221, 255, 0.18);
  border-radius: 8px;
  background: rgba(9, 21, 40, 0.78);
  padding: 16px;
}

.admin-status-grid dt {
  color: #8db4cf;
  font-size: 12px;
}

.admin-status-grid dd {
  margin: 9px 0 0;
  color: #eef8ff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.5;
}

.admin-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.admin-payments-table {
  table-layout: fixed;
  min-width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid rgba(159, 221, 255, 0.12);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #8ff6ff;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-table td {
  color: #d8f4ff;
  font-size: 13px;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-table td span {
  margin-top: 4px;
  color: #8db4cf;
}

.admin-payments-table th:nth-child(1),
.admin-payments-table td:nth-child(1),
.admin-payments-table th:nth-child(4),
.admin-payments-table td:nth-child(4),
.admin-payments-table th:nth-child(5),
.admin-payments-table td:nth-child(5) {
  white-space: nowrap;
}

.admin-payments-table th:nth-child(1),
.admin-payments-table td:nth-child(1) {
  width: 16%;
}

.admin-payments-table th:nth-child(2),
.admin-payments-table td:nth-child(2) {
  width: 15%;
}

.admin-payments-table th:nth-child(3),
.admin-payments-table td:nth-child(3) {
  width: 31%;
}

.admin-payments-table th:nth-child(4),
.admin-payments-table td:nth-child(4) {
  width: 7%;
}

.admin-payments-table th:nth-child(5),
.admin-payments-table td:nth-child(5) {
  width: 7%;
}

.admin-payments-table td:nth-child(3) span {
  overflow-wrap: anywhere;
}

.admin-payments-table th:nth-child(6),
.admin-payments-table td:nth-child(6) {
  width: 24%;
}

.credit-plus {
  color: #8ff6ff !important;
  font-weight: 900;
}

.credit-minus {
  color: #ffb4c2 !important;
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid rgba(159, 221, 255, 0.14);
  background: rgba(2, 6, 17, 0.94);
  color: #8db4cf;
  padding: 28px 0 34px;
}

.site-footer-compact {
  margin-top: 28px;
  padding: 22px 0;
}

.site-footer-inner {
  width: min(1440px, calc(100% - 64px));
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.site-footer-brand,
.site-footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
}

.site-footer-inner strong {
  color: #eef8ff;
}

.site-footer-brand strong {
  flex: 0 0 100%;
}

.site-footer-inner span,
.site-footer-inner p,
.site-footer-inner a {
  font-size: 13px;
  line-height: 1.6;
}

.site-footer-inner nav a {
  color: #d8f4ff;
  font-weight: 800;
}

.site-footer-inner nav a:hover {
  color: #7df6ff;
}

.site-footer-inner p {
  margin: 0;
}

.tool-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 12%, rgba(105, 243, 255, 0.13), transparent 28%),
    #020611;
}

.tool-hero {
  border-bottom: 1px solid rgba(159, 221, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(5, 16, 31, 0.96), rgba(2, 6, 17, 0.98)),
    url("/aicrafter-banner.jpg") center / cover;
}

.tool-shell {
  padding: 26px 0 70px;
}

.tool-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.tool-hero-grid {
  display: grid;
  gap: 28px;
  margin-top: 58px;
  align-items: stretch;
}

.tool-copy h1 {
  max-width: 860px;
  margin: 22px 0 0;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.05;
}

.tool-lead {
  max-width: 760px;
  margin: 24px 0 0;
  color: #b8d1df;
  font-size: 18px;
  line-height: 1.75;
}

.tool-notice {
  max-width: 760px;
  margin-top: 26px;
  border: 1px solid rgba(125, 246, 255, 0.2);
  border-radius: 8px;
  background: rgba(5, 12, 24, 0.76);
  padding: 16px;
}

.tool-notice strong,
.tool-notice span {
  display: block;
}

.tool-notice strong {
  color: #8ff6ff;
  font-size: 13px;
  text-transform: uppercase;
}

.tool-notice span {
  margin-top: 8px;
  color: #a9c3d4;
  line-height: 1.65;
}

.tool-runner {
  border: 1px solid rgba(137, 218, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 16, 30, 0.92);
  padding: 22px;
}

.tool-runner label {
  display: grid;
  gap: 9px;
  color: #8ff6ff;
  font-size: 13px;
  font-weight: 900;
}

.tool-runner input[type="url"],
.tool-runner input[type="password"] {
  width: 100%;
  border: 1px solid rgba(147, 218, 255, 0.26);
  border-radius: 8px;
  background: #020611;
  color: #eef8ff;
  font: inherit;
  min-height: 48px;
  padding: 0 14px;
}

.tool-runner input[type="password"] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 13px;
  letter-spacing: 0;
}

.tool-checkbox {
  grid-template-columns: auto 1fr;
  align-items: start;
  margin-top: 18px;
  color: #c7deeb !important;
  font-weight: 700 !important;
  line-height: 1.6;
}

.tool-checkbox input {
  margin-top: 4px;
}

.byok-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid rgba(125, 246, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 17, 0.58);
  padding: 16px;
}

.byok-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.byok-head label {
  display: block;
  color: #8ff6ff;
  font-size: 14px;
  font-weight: 900;
}

.byok-kicker {
  margin: 0 0 4px !important;
  color: #8da7ba !important;
  font-size: 12px !important;
  font-weight: 800;
  line-height: 1.2 !important;
  text-transform: uppercase;
}

.byok-head span {
  flex: 0 0 auto;
  border: 1px solid rgba(125, 246, 255, 0.22);
  border-radius: 999px;
  color: #8ff6ff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.byok-panel p {
  margin: 0 !important;
  color: #9ab6c8 !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
}

.tool-runner .button {
  width: 100%;
  margin-top: 22px;
}

.tool-runner .button:disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

.tool-runner p {
  margin: 16px 0 0;
  color: #8da7ba;
  font-size: 13px;
  line-height: 1.65;
}

.tool-result {
  margin-top: 20px;
  border: 1px solid rgba(125, 246, 255, 0.2);
  border-radius: 8px;
  background: rgba(2, 6, 17, 0.78);
  padding: 18px;
}

.tool-result-wide {
  margin-top: 24px;
}

.tool-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-result-head strong {
  color: #eef8ff;
  font-size: 16px;
}

.tool-result-head span {
  border: 1px solid rgba(125, 246, 255, 0.24);
  border-radius: 999px;
  color: #8ff6ff;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}

.tool-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tool-frame-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.tool-frame-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(137, 218, 255, 0.16);
  border-radius: 8px;
  background: rgba(5, 13, 26, 0.76);
}

.tool-frame-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020611;
  object-fit: cover;
}

.tool-frame-body {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.tool-frame-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tool-frame-meta strong {
  min-width: 0;
  color: #eef8ff;
  font-size: 14px;
}

.tool-frame-meta span {
  flex: 0 0 auto;
  border: 1px solid rgba(125, 246, 255, 0.22);
  border-radius: 999px;
  color: #8ff6ff;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.tool-result-card {
  min-width: 0;
  border: 1px solid rgba(137, 218, 255, 0.14);
  border-radius: 8px;
  background: rgba(5, 13, 26, 0.72);
  padding: 14px;
}

.tool-result-grid h3 {
  margin: 0 0 10px;
  color: #8ff6ff;
  font-size: 13px;
}

.tool-result-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: #d8f4ff;
  font-size: 14px;
  line-height: 1.55;
}

.tool-frame-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #d8f4ff;
  font-size: 13px;
  line-height: 1.45;
}

.tool-empty {
  margin: 0;
  color: #8da7ba;
  font-size: 13px;
}

.tool-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-chip-list span {
  max-width: 100%;
  border: 1px solid rgba(125, 246, 255, 0.18);
  border-radius: 999px;
  background: rgba(84, 228, 255, 0.08);
  color: #d8f4ff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  padding: 7px 10px;
  word-break: break-word;
}

.tool-result-note {
  border-top: 1px solid rgba(137, 218, 255, 0.14);
  padding-top: 14px;
}

.tool-section {
  padding: 72px 0 0;
}

.tool-type-grid {
  display: grid;
  gap: 16px;
  margin-top: 30px;
}

.tool-type-card {
  min-height: 180px;
  border: 1px solid rgba(137, 218, 255, 0.16);
  border-radius: 8px;
  background: #091528;
  padding: 22px;
}

.tool-type-card h3 {
  margin: 0;
  font-size: 24px;
}

.tool-type-card p {
  margin: 20px 0 0;
  color: #a9c3d4;
  line-height: 1.7;
}

.tool-plan {
  display: grid;
  gap: 24px;
  border: 1px solid rgba(137, 218, 255, 0.16);
  border-radius: 8px;
  background: rgba(9, 21, 40, 0.78);
  padding: 24px;
}

.tool-plan h2 {
  margin: 18px 0 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
}

.tool-plan p {
  max-width: 640px;
  margin: 18px 0 0;
  color: #a9c3d4;
  line-height: 1.7;
}

.tool-plan ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 22px;
  color: #d8f4ff;
  line-height: 1.7;
}

.legal-page {
  background:
    radial-gradient(circle at 20% 10%, rgba(96, 238, 247, 0.12), transparent 28%),
    #020611;
}

.legal-shell {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 54px;
}

.legal-brand {
  margin-bottom: 48px;
}

.legal-header h1 {
  margin-top: 18px;
  font-size: clamp(38px, 6vw, 64px);
}

.legal-header span {
  display: block;
  margin-top: 16px;
  color: #8db4cf;
  font-size: 13px;
}

.legal-card {
  display: grid;
  gap: 26px;
  margin-top: 32px;
  border: 1px solid rgba(159, 221, 255, 0.2);
  border-radius: 8px;
  background: rgba(9, 21, 40, 0.88);
  padding: 26px;
}

.legal-card section + section {
  border-top: 1px solid rgba(159, 221, 255, 0.12);
  padding-top: 24px;
}

.legal-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
  line-height: 1.24;
}

.legal-card p {
  margin: 10px 0 0;
  color: #b9dcf2;
  font-size: 15px;
  line-height: 1.8;
}

.admin-row-action {
  min-height: 34px;
  padding: 8px 12px;
}

.admin-adjustments-wrap {
  margin-top: 16px;
}

.admin-adjust-modal[hidden] {
  display: none;
}

.admin-adjust-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-adjust-scrim {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 17, 0.72);
  backdrop-filter: blur(8px);
}

.admin-adjust-dialog {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid rgba(159, 221, 255, 0.24);
  border-radius: 8px;
  background: rgba(9, 21, 40, 0.98);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
  display: grid;
  gap: 14px;
  padding: 22px;
}

.admin-adjust-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.admin-adjust-head h2 {
  margin: 12px 0 0;
  font-size: 28px;
  line-height: 1.12;
}

.admin-adjust-dialog label {
  display: grid;
  gap: 8px;
  color: #8ff6ff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-adjust-dialog label[hidden] {
  display: none;
}

.admin-adjust-current {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.admin-adjust-current div {
  border: 1px solid rgba(159, 221, 255, 0.18);
  border-radius: 8px;
  background: rgba(2, 6, 17, 0.42);
  padding: 12px;
}

.admin-adjust-current span {
  display: block;
  color: #8db4cf;
  font-size: 12px;
  font-weight: 800;
}

.admin-adjust-current strong {
  display: block;
  margin-top: 6px;
  color: #eef8ff;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-adjust-dialog input,
.admin-adjust-dialog select,
.admin-adjust-dialog textarea {
  width: 100%;
  border: 1px solid rgba(159, 221, 255, 0.24);
  border-radius: 8px;
  background: #020611;
  color: #eef8ff;
  font: inherit;
  outline: none;
  padding: 12px 14px;
  text-transform: none;
}

.admin-adjust-dialog input,
.admin-adjust-dialog select {
  min-height: 44px;
}

.admin-adjust-dialog textarea {
  resize: vertical;
}

.admin-adjust-dialog input:focus,
.admin-adjust-dialog select:focus,
.admin-adjust-dialog textarea:focus {
  border-color: rgba(90, 241, 255, 0.72);
  box-shadow: 0 0 20px rgba(71, 222, 255, 0.16);
}

.admin-adjust-message {
  min-height: 20px;
  margin: 0;
  color: #8db4cf;
  font-size: 13px;
}

.admin-credit-preview {
  margin: -4px 0 0;
  border: 1px solid rgba(125, 246, 255, 0.24);
  border-radius: 8px;
  background: rgba(125, 246, 255, 0.08);
  color: #eef8ff;
  font-size: 14px;
  font-weight: 900;
  padding: 10px 12px;
}

.admin-credit-preview[hidden] {
  display: none;
}

.admin-adjust-message.is-error,
.admin-credit-preview.is-error {
  color: #ffb4c2;
}

.payment-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(96, 238, 247, 0.12), transparent 28%),
    linear-gradient(135deg, #020812 0%, #071527 52%, #050814 100%);
  color: #eef8ff;
  padding: 30px 0;
}

.payment-shell {
  width: min(100% - 40px, 720px);
  margin: 0 auto;
}

.payment-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 16px;
}

.payment-brand {
  margin-bottom: 0;
}

.payment-cancel {
  flex: 0 0 auto;
}

.payment-card {
  border: 1px solid rgba(111, 219, 255, 0.24);
  border-radius: 8px;
  background: rgba(8, 23, 42, 0.92);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 30px;
}

.payment-card h1 {
  margin: 20px 0 10px;
  font-size: clamp(34px, 7vw, 62px);
  line-height: 0.95;
}

.payment-summary {
  color: #b9dcf2;
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 22px;
}

.payment-widget-box {
  overflow: hidden;
  border-radius: 8px;
  margin-top: 14px;
}

.payment-submit,
.payment-home {
  width: 100%;
  margin-top: 18px;
  justify-content: center;
}

@media (min-width: 780px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.28fr) minmax(360px, 0.72fr);
    align-items: center;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tool-hero-grid {
    grid-template-columns: minmax(0, 1.24fr) minmax(360px, 0.76fr);
  }

  .tool-type-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tool-plan {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
    align-items: start;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 1160px);
  }

  .hero-shell {
    padding-top: 20px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .actions .button {
    flex: 1 1 150px;
  }

  .hero-grid {
    padding-top: 54px;
  }

  .tool-shell {
    padding-top: 20px;
  }

  .tool-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .tool-hero-grid {
    margin-top: 42px;
  }

  .tool-result-grid {
    grid-template-columns: 1fr;
  }

  .tool-frame-gallery {
    grid-template-columns: 1fr;
  }

  .card-head {
    flex-direction: column;
  }

  .account-modal {
    place-items: start center;
    padding: 72px 14px 18px;
  }

  .account-dialog {
    width: min(100%, 520px);
    padding: 18px;
  }

  .account-summary-grid,
  .billing-grid,
  .billing-grid.compact {
    grid-template-columns: 1fr;
  }

  .usage-list div {
    display: grid;
    gap: 6px;
  }

  .admin-shell {
    width: min(100% - 28px, 1440px);
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-meta {
    text-align: left;
  }

  .admin-summary {
    grid-template-columns: 1fr;
  }

  .admin-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-section-head p {
    text-align: left;
  }

  .admin-status-grid {
    grid-template-columns: 1fr;
  }
}
