:root {
  --dark: #20262a;
  --panel: #1f2529;
  --panel-soft: #252c31;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --line: rgba(255, 255, 255, 0.78);
  --green: #149763;
  --gold: #d9a52f;
  --gold-strong: #f2c04d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(4, 8, 16, 0.78), rgba(4, 8, 16, 0.92)),
    url("/assets/banner-space-tech.jpg?v=20260629a") center top / cover fixed no-repeat,
    #07101d;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #202528;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-wrap {
  width: min(1120px, calc(100% - 32px));
  min-height: 80px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 0;
}

.brand span {
  color: var(--gold-strong);
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.site-nav-button {
  display: inline-flex;
  align-items: center;
  padding: 0;
  color: #fff;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
  cursor: pointer;
}

.site-nav-button::before {
  content: "";
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  margin-right: 8px;
  background: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 1.8 16.2 15.8H1.8L9 1.8Z' fill='none' stroke='white' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.site-nav-button:hover,
.site-nav-button:focus-visible {
  color: var(--gold-strong);
}
.site-nav a::before {
  content: "";
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.site-nav a:nth-child(2)::before {
  border-radius: 2px;
}

.site-nav a:nth-child(3)::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 18 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 1.8 16.2 15.8H1.8L9 1.8Z' fill='none' stroke='white' stroke-width='2.6' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
}

.auth-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.signup,
.login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
}

.signup {
  background: var(--gold);
  color: #fff;
}

.login {
  border: 1px solid #fff;
  color: #fff;
  background: transparent;
}

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

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

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 16, 18, 0.68);
  backdrop-filter: blur(4px);
}

.auth-dialog {
  position: relative;
  width: min(100%, 430px);
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #202528;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.register-dialog {
  width: min(100%, 470px);
}

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

.purchase-modal { overflow-y: auto; }
.payment-dialog {
  position: relative;
  width: min(100%, 410px);
  padding: 32px 32px 28px;
  border: 1px solid rgba(238, 124, 46, 0.62);
  border-radius: 14px;
  color: #fff;
  background: radial-gradient(circle at 50% 0, rgba(215, 94, 29, 0.2), transparent 52%), #120d0a;
  box-shadow: 0 24px 82px rgba(0, 0, 0, 0.52);
  text-align: center;
}

.payment-dialog h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
}

.payment-dialog p {
  margin: 10px auto 20px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}

.payment-qr {
  width: min(100%, 278px);
  display: block;
  margin: 0 auto;
  border: 8px solid #fff;
  border-radius: 8px;
  background: #fff;
}

.purchase-dialog {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 1320px);
  margin: auto;
  padding: 54px 58px 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: #fff;
  background: radial-gradient(circle at 50% 2%, rgba(217, 91, 28, 0.24), transparent 34%), #090807;
  box-shadow: 0 28px 110px rgba(0, 0, 0, 0.62);
}

.purchase-dialog::before {
  content: "";
  position: absolute;
  top: -42%;
  bottom: -42%;
  left: -34%;
  width: 18%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: skewX(-18deg) translateX(-140%);
  background: linear-gradient(90deg, transparent, rgba(255, 215, 167, 0.15), rgba(255, 255, 255, 0.36), rgba(255, 184, 112, 0.16), transparent);
  animation: purchase-sweep-light 6.8s ease-in-out infinite;
}

.purchase-dialog > :not(.auth-close) {
  position: relative;
  z-index: 1;
}

.purchase-dialog > .auth-close {
  z-index: 2;
}

@keyframes purchase-sweep-light {
  0%, 58% { opacity: 0; transform: skewX(-18deg) translateX(-140%); }
  64% { opacity: 0.72; }
  84% { opacity: 0.42; transform: skewX(-18deg) translateX(920%); }
  90%, 100% { opacity: 0; transform: skewX(-18deg) translateX(920%); }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-dialog::before { animation: none; }
}

.purchase-head { text-align: center; }
.purchase-head h2 { margin: 0; font-size: 34px; line-height: 1.25; }
.purchase-head p { margin: 12px 0 38px; color: rgba(255, 255, 255, 0.62); font-size: 16px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }

.pricing-card {
  position: relative;
  min-height: 570px;
  display: flex;
  flex-direction: column;
  padding: 48px 32px 34px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(21, 16, 13, 0.46);
}

.pricing-card.featured { border-color: rgba(232, 105, 29, 0.92); background: linear-gradient(145deg, rgba(46, 48, 62, 0.92), rgba(24, 24, 31, 0.94)); }
.pricing-badge {
  position: absolute;
  top: -17px;
  left: 50%;
  transform: translateX(-50%);
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid rgba(255, 174, 93, 0.8);
  border-radius: 17px;
  color: #fff;
  background: #d96325;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.pricing-badge.value {
  color: #fff2d9;
  border-color: rgba(255, 202, 125, 0.86);
  background: #b94d1d;
}
.pricing-card h3 { margin: 0; text-align: center; font-size: 27px; line-height: 1.25; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin: 30px 0 36px; }
.price strong { color: #e56d2a; font-size: 44px; line-height: 1; }
.price span { color: rgba(255, 255, 255, 0.9); font-size: 18px; }
.pricing-card ul { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; font-size: 17px; line-height: 1.45; }
.pricing-card li { position: relative; padding-left: 31px; }
.pricing-card li::before { content: '✓'; position: absolute; left: 0; color: #e56d2a; font-weight: 900; }
.pricing-action { min-height: 52px; margin-top: auto; border-radius: 7px; color: #fff; background: #df6828; font-size: 18px; font-weight: 900; }
.pricing-action.secondary { background: #353944; }
.pricing-action:hover, .pricing-action:focus-visible { filter: brightness(1.12); }
.purchase-message { min-height: 22px; margin: 24px 0 0; color: #ffd1af; text-align: center; font-size: 14px; }
.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 24px;
  line-height: 1;
}

.auth-dialog-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
}

.auth-dialog-head p {
  margin: 8px 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 13px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(242, 192, 77, 0.9);
  box-shadow: 0 0 0 3px rgba(242, 192, 77, 0.2);
}

.code-row,
.verify-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.verify-row {
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: center;
}

.code-button {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 6px;
  color: #fff;
  background: var(--gold);
  font-weight: 800;
  white-space: nowrap;
}

.code-button:disabled,
.auth-submit:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.auth-submit {
  min-height: 42px;
  border-radius: 6px;
  color: #fff;
  background: var(--gold);
  font-weight: 900;
}

.auth-message {
  min-height: 20px;
  margin: 0;
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.auth-linkline {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-align: center;
}

.auth-linkline button {
  padding: 0;
  color: var(--gold-strong);
  background: transparent;
  font-weight: 800;
}

.profile-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 16px;
  padding: 16px;
  border: 1px solid rgba(242, 192, 77, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #202528;
  background: var(--gold-strong);
  font-weight: 900;
}

.profile-name-row,
.profile-summary strong,
.profile-summary span,
.profile-info-grid span,
.profile-info-grid strong {
  display: block;
}

.profile-name-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.profile-summary strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
}

.profile-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.profile-role-badge.vip {
  border-color: rgba(242, 192, 77, 0.5);
  color: var(--gold-strong);
  background: rgba(242, 192, 77, 0.14);
}

.profile-role-badge.admin {
  border-color: rgba(97, 208, 255, 0.46);
  color: #9fe8ff;
  background: rgba(97, 208, 255, 0.14);
}

.profile-summary span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  word-break: break-all;
}

.profile-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-info-grid article {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.profile-info-grid span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.profile-info-grid strong {
  margin-top: 5px;
  color: var(--gold-strong);
  font-size: 18px;
  line-height: 1.2;
}

.profile-note {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.7;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.profile-actions button {
  flex: 1;
}

.page-shell {
  position: relative;
  min-height: calc(100vh - 80px);
  background:
    linear-gradient(180deg, rgba(7, 13, 20, 0) 0%, rgba(7, 13, 20, 0.18) 54%, rgba(7, 13, 20, 0.42) 100%);
}

.hero-screen {
  position: relative;
  min-height: 700px;
  overflow: hidden;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  filter: saturate(1.12) brightness(0.98) contrast(1.08);
}

.hero-overlay {
  background:
    radial-gradient(circle at 72% 34%, rgba(242, 192, 77, 0.16), transparent 28%),
    linear-gradient(90deg, rgba(3, 8, 17, 0.72) 0%, rgba(3, 8, 17, 0.44) 46%, rgba(3, 8, 17, 0.3) 100%),
    linear-gradient(180deg, rgba(3, 8, 17, 0.04) 0%, rgba(3, 8, 17, 0.2) 52%, rgba(3, 8, 17, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 50px 0 70px;
  text-align: center;
}

.hero-content h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  color: var(--gold-strong);
  font-size: clamp(54px, 6.2vw, 82px);
  font-weight: 900;
  line-height: 1.12;
  -webkit-text-stroke: 1px rgba(31, 37, 41, 0.68);
  paint-order: stroke fill;
  text-shadow:
    0 2px 0 rgba(31, 37, 41, 0.5),
    0 8px 24px rgba(31, 37, 41, 0.45);
}

.hero-content > p {
  position: relative;
  display: inline-block;
  margin: 12px 0 46px;
  color: var(--gold-strong);
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 900;
  -webkit-text-stroke: 0.7px rgba(31, 37, 41, 0.72);
  paint-order: stroke fill;
  text-shadow:
    0 1px 0 rgba(31, 37, 41, 0.7),
    0 5px 16px rgba(31, 37, 41, 0.42);
}

.hero-content h1::after,
.hero-content > p::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: transparent;
  pointer-events: none;
  background:
    linear-gradient(105deg, transparent 0%, transparent 34%, rgba(255, 255, 255, 0.96) 48%, rgba(255, 230, 158, 0.9) 52%, transparent 66%, transparent 100%);
  background-size: 260% 100%;
  background-position: 160% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: title-sheen 3.8s ease-in-out infinite;
  text-shadow: none;
}

.hero-content > p::after {
  animation-delay: 0.55s;
}

@keyframes title-sheen {
  0%,
  34% {
    background-position: 160% 0;
    opacity: 0;
  }
  46% {
    opacity: 1;
  }
  72%,
  100% {
    background-position: -80% 0;
    opacity: 0;
  }
}

.cursor-star {
  position: fixed;
  z-index: 99;
  width: var(--star-size, 7px);
  height: var(--star-size, 7px);
  left: 0;
  top: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.4);
  animation: cursor-star-fade 760ms ease-out forwards;
}

.cursor-star::before,
.cursor-star::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 230, 158, 0.94);
  box-shadow: 0 0 10px rgba(242, 192, 77, 0.78);
  transform: translate(-50%, -50%);
}

.cursor-star::after {
  width: 2px;
  height: 100%;
}

@keyframes cursor-star-fade {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.35) rotate(0deg);
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--star-dx, 0px)), calc(-50% + var(--star-dy, -22px))) scale(1.15) rotate(85deg);
  }
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 24px;
  align-items: stretch;
  min-width: 0;
}

.quick-grid article,
.tool-grid article {
  min-width: 0;
  min-height: 124px;
  padding: 18px 20px;
  border-radius: 5px;
  background: rgba(31, 37, 41, 0.98);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.quick-grid h2,
.tool-grid h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.quick-grid p,
.tool-grid p {
  margin: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.toolbar-showcase {
  position: relative;
  z-index: 2;
  width: min(100% - 48px, 820px);
  margin: -20px auto 36px;
  padding: 7px;
  border: 1px solid rgba(244, 192, 58, 0.54);
  border-radius: 8px;
  background: rgba(6, 11, 17, 0.72);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.toolbar-showcase img {
  width: 100%;
  display: block;
  border-radius: 4px;
  image-rendering: auto;
}
.feature-panel {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 46px;
  padding: 36px 30px 38px;
  border-radius: 5px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 14, 24, 0.9), rgba(30, 37, 41, 0.84)),
    url("/assets/banner-space-tech.jpg?v=20260629a") center / cover no-repeat;
  border: 1px solid rgba(242, 192, 77, 0.16);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.feature-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 12%, rgba(242, 192, 77, 0.18), transparent 28%),
    radial-gradient(circle at 16% 72%, rgba(83, 208, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(3, 8, 17, 0.2), rgba(3, 8, 17, 0.62));
}

.feature-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 22%, #000 80%, transparent);
}

.panel-head {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto 28px;
}

.panel-head h2 {
  margin: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1.25;
}

.panel-head p {
  margin: 10px 0 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.tool-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
  min-width: 0;
}

.tool-grid article {
  min-height: 176px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(10, 17, 24, 0.72);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(3px);
}


.icon {
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 5px;
  font-size: 17px;
  font-weight: 900;
}

.grid-icon {
  border: 0;
  background:
    linear-gradient(#fff, #fff) 0 0 / 8px 8px,
    linear-gradient(#fff, #fff) 13px 0 / 8px 8px,
    linear-gradient(#fff, #fff) 26px 0 / 8px 8px,
    linear-gradient(#fff, #fff) 0 13px / 8px 8px,
    linear-gradient(#fff, #fff) 13px 13px / 8px 8px,
    linear-gradient(#fff, #fff) 26px 13px / 8px 8px,
    linear-gradient(#fff, #fff) 0 26px / 8px 8px,
    linear-gradient(#fff, #fff) 13px 26px / 8px 8px,
    linear-gradient(#fff, #fff) 26px 26px / 8px 8px;
  background-repeat: no-repeat;
}

.columns-icon,
.doc-icon,
.ruler-icon,
.chip-icon {
  position: relative;
}

.columns-icon::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-left: 5px solid #fff;
  border-right: 5px solid #fff;
  box-shadow: 10px 0 0 #fff;
}

.doc-icon::before {
  content: "";
  position: absolute;
  inset: 4px 7px;
  border: 2px solid #fff;
  border-top-width: 5px;
}

.ruler-icon::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 24px;
  border-left: 5px solid #fff;
  border-bottom: 3px solid #fff;
}

.chip-icon::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 3px solid #fff;
  border-radius: 4px;
  box-shadow:
    -9px 0 0 -6px #fff,
    9px 0 0 -6px #fff,
    0 -9px 0 -6px #fff,
    0 9px 0 -6px #fff;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 28px 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: #202528;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.site-footer strong,
.site-footer span {
  display: inline;
}

.site-footer strong {
  color: #fff;
  font-size: inherit;
}

.footer-contact,
.footer-records {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  align-items: center;
  font-size: 13px;
  line-height: 1.7;
}

.footer-records {
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 900px) {
  .nav-wrap {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px 0;
  }

  .site-nav,
  .auth-actions {
    justify-content: center;
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    gap: 12px 20px;
  }

  .site-nav a {
    font-size: 15px;
    white-space: nowrap;
  }

  .quick-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .purchase-dialog { width: min(100%, 700px); padding: 46px 28px 30px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { min-height: 0; }

  .tool-grid .ai-card {
    grid-column: auto;
  }

  .site-footer,
  .footer-records {
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .nav-wrap {
    width: min(100% - 28px, 390px);
  }

  .brand {
    justify-content: center;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .hero-screen {
    min-height: 0;
  }

  .hero-content {
    width: min(100% - 48px, 320px);
    padding: 46px 0 44px;
  }

  .hero-content h1 {
    max-width: 100%;
    font-size: 31px;
    line-height: 1.18;
  }

  .hero-content > p {
    max-width: 292px;
    margin: 12px auto 34px;
    font-size: 15px;
    line-height: 1.58;
    overflow-wrap: anywhere;
  }

  .quick-grid {
    width: min(100%, 280px);
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }

  .quick-grid article {
    width: 100%;
    max-width: 100%;
    padding: 20px 18px;
  }

  .quick-grid h2,
  .tool-grid h3 {
    font-size: 24px;
  }

  .quick-grid p,
  .tool-grid p {
    max-width: 244px;
    margin-left: auto;
    margin-right: auto;
    font-size: 13px;
    line-height: 1.65;
  }

  .quick-grid article,
  .tool-grid article {
    min-height: auto;
  }

  .toolbar-showcase {
    width: min(100% - 32px, 520px);
    margin: -6px auto 26px;
    padding: 4px;
  }
  .feature-panel {
    width: min(100% - 48px, 300px);
    margin-bottom: 28px;
    padding: 28px 18px 30px;
  }

  .panel-head h2 {
    font-size: 25px;
  }

  .panel-head p {
    font-size: 14px;
    line-height: 1.65;
  }

  .tool-grid {
    width: min(100%, 252px);
    margin-left: auto;
    margin-right: auto;
    gap: 16px;
  }

  .tool-grid article {
    width: 100%;
    max-width: 100%;
    padding: 22px 16px;
  }

  .profile-info-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions {
    flex-direction: column;
  }

  .site-footer {
    padding-top: 24px;
    padding-bottom: 26px;
  }
}

.profile-role-badge.permanent {
  border-color: rgba(255, 220, 110, 0.72);
  color: #ffe69a;
  background: rgba(255, 206, 76, 0.2);
}