:root {
  --void: #06070d;
  --deep: #0c0307;
  --panel: rgba(10, 15, 28, 0.72);
  --panel-strong: rgba(16, 23, 41, 0.88);
  --text: #f6f2df;
  --muted: #93a4b8;
  --cyan: #ff3f4f;
  --lime: #ffb84a;
  --amber: #ffd166;
  --red: #ff2e63;
  --hot: #ff7a33;
  --gold: #ffd166;
  --line: rgba(255, 63, 79, 0.24);
  --glass: rgba(255, 255, 255, 0.07);
  --shadow: 0 0 38px rgba(255, 63, 79, 0.24), 0 28px 80px rgba(0, 0, 0, 0.64);
  --ui-title-size: clamp(30px, 3vw, 44px);
  --ui-title-line: 1.05;
  --ui-button-height: 44px;
  --ui-button-min-width: 0;
  --ui-button-padding: 11px 18px;
  --ui-button-radius: 999px;
  --ui-button-font-size: inherit;
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 184, 74, 0.48) rgba(255, 255, 255, 0.045);
}

*::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(6, 7, 12, 0.92);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 209, 102, 0.88), rgba(255, 75, 74, 0.78));
}

*::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(255, 226, 135, 0.98), rgba(255, 111, 74, 0.92));
}

html,
body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--void);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -3;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 63, 79, 0.3), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(255, 184, 74, 0.18), transparent 26%),
    radial-gradient(circle at 54% 38%, rgba(255, 46, 99, 0.13), transparent 22%),
    linear-gradient(130deg, #080305 0%, #1b0710 48%, #0c0307 100%);
  animation: breathe 9s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 63, 79, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 63, 79, 0.08) 1px, transparent 1px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px);
  background-size: 46px 46px, 46px 46px, 100% 4px;
  mask-image: radial-gradient(circle at center, black, transparent 86%);
  mix-blend-mode: screen;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(255, 209, 102, 0.04) 0 1px, transparent 1px);
  background-size: 17px 19px, 23px 29px;
  opacity: 0.8;
}

a,
button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  cursor: pointer;
}

button {
  border: 0;
}

.page {
  min-height: 100vh;
  padding: clamp(18px, 4vw, 56px);
}

.shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 36px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.seal {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 209, 102, 0.58);
  border-radius: 14px;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.08);
  box-shadow: inset 0 0 18px rgba(255, 209, 102, 0.1);
}

.brand-lockup span:last-child {
  color: rgba(248, 240, 216, 0.66);
  font-family: Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav button,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ui-button-height);
  min-width: var(--ui-button-min-width);
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: var(--ui-button-radius);
  padding: var(--ui-button-padding);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  font-size: var(--ui-button-font-size);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.nav button,
.ghost-btn {
  padding: 10px 14px;
}

.chip {
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
}

.nav button.active {
  border-color: rgba(255, 63, 79, 0.5);
  color: var(--cyan);
  background: rgba(255, 63, 79, 0.08);
}

.notice-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-width: 36px;
  min-height: 44px;
  height: 44px;
  padding: 0;
  color: #ffd766;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.notice-bell:hover {
  color: #ffeeb7;
  background: transparent;
}

.bell-glyph {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 21px;
  line-height: 1;
  transform-origin: 50% 12%;
  filter: drop-shadow(0 0 6px rgba(255, 215, 102, 0.42));
}

.notice-bell.has-unread .bell-glyph {
  animation: bellRing 1.9s ease-in-out infinite;
}

.notice-bell i {
  position: absolute;
  z-index: 2;
  top: 1px;
  right: 1px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  border: 2px solid #080912;
  border-radius: 999px;
  padding: 0 4px;
  color: #fff;
  background: #ff2f45;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 18px rgba(255, 47, 69, 0.78);
}

.link-button {
  padding: 0;
  color: var(--gold);
  background: transparent;
}

.primary-btn,
.nav .hot-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ui-button-height);
  min-width: var(--ui-button-min-width);
  border-radius: var(--ui-button-radius);
  padding: var(--ui-button-padding);
  color: #12050a;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--amber));
  font-size: var(--ui-button-font-size);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(255, 122, 51, 0.24);
}

button:disabled {
  cursor: not-allowed;
  filter: saturate(0.62);
  opacity: 0.68;
}

button[data-cooling="1"] {
  box-shadow: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px);
  gap: clamp(24px, 7vw, 92px);
  align-items: center;
  min-height: calc(100vh - 120px);
}

.home-hero {
  grid-template-columns: minmax(0, 820px);
  justify-content: start;
  min-height: calc(100vh - 150px);
}

.eyebrow {
  color: var(--cyan);
  font-family: Consolas, monospace;
  letter-spacing: 0.24em;
}

.hero-title,
.page-title {
  margin: 18px 0;
  font-size: clamp(52px, 9vw, 132px);
  line-height: 0.86;
  letter-spacing: -0.035em;
}

.hero-title .outline {
  display: block;
  letter-spacing: 0.015em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 209, 102, 0.52);
}

.zap {
  position: relative;
  display: block;
  letter-spacing: 0.025em;
  color: #fff2b5;
  text-shadow:
    0 0 12px rgba(255, 209, 102, 0.42),
    0 0 34px rgba(255, 184, 74, 0.28),
    0 8px 34px rgba(255, 63, 79, 0.16);
  animation: soft-title-glow 3.8s ease-in-out infinite;
}

.zap::after {
  content: "";
  position: absolute;
  inset: -0.08em -0.05em;
  z-index: -1;
  border-radius: 0.16em;
  background:
    radial-gradient(ellipse at 50% 58%, rgba(255, 209, 102, 0.24), transparent 62%),
    linear-gradient(90deg, transparent, rgba(255, 248, 201, 0.12), transparent);
  opacity: 0.45;
  filter: blur(12px);
  animation: soft-aura 3.8s ease-in-out infinite;
}

.slogan-marquee {
  position: relative;
  display: flex;
  gap: 48px;
  width: min(640px, 100%);
  margin-top: 20px;
  border-top: 1px solid rgba(255, 209, 102, 0.28);
  border-bottom: 1px solid rgba(255, 63, 79, 0.26);
  padding: 12px 0;
  overflow: hidden;
  color: rgba(248, 240, 216, 0.82);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.4;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.slogan-marquee span {
  min-width: max-content;
  animation: slogan-run 10s linear infinite;
}

.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.orbital {
  position: absolute;
  inset: 7vh 8vw;
  z-index: 0;
  border: 1px solid rgba(255, 63, 79, 0.12);
  border-radius: 999px;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 34px rgba(255, 63, 79, 0.08);
  pointer-events: none;
}

.orbital::before,
.orbital::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
  animation: orbit 8s linear infinite;
}

.orbital::before {
  left: 14%;
  top: 7%;
}

.orbital::after {
  right: 18%;
  bottom: 5%;
  animation-delay: -3s;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 440px);
  gap: clamp(18px, 5vw, 86px);
  align-items: center;
  width: 100%;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 56px);
}

.brand {
  position: relative;
  z-index: 2;
  max-width: 820px;
  min-width: 0;
  justify-self: center;
  transform: translateX(-5vw);
  animation: enterLeft 700ms ease-out both;
}

.topline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 63, 79, 0.34);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 63, 79, 0.06);
  box-shadow: 0 0 28px rgba(255, 63, 79, 0.12);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime);
  animation: blink 1.4s ease-in-out infinite;
}

.brand-title {
  position: relative;
  margin: 24px 0 16px;
  font-size: clamp(56px, 8vw, 118px);
  line-height: 0.92;
  letter-spacing: -0.1em;
  font-weight: 900;
}

.brand-title .thin {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 225, 139, 0.9);
  text-shadow: 0 0 20px rgba(255, 184, 74, 0.36), 0 0 48px rgba(255, 93, 38, 0.18);
}

.brand-title .hot {
  position: relative;
  display: inline-block;
  color: #ffe6a4;
  text-shadow:
    2px 0 rgba(255, 191, 73, 0.92),
    -2px 0 rgba(255, 74, 46, 0.68),
    0 0 22px rgba(255, 211, 106, 0.5),
    0 0 64px rgba(255, 139, 31, 0.32);
  animation: boltWarp 3.2s steps(1) infinite;
}

.brand-title .hot::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.1em;
  top: 42%;
  height: 0.22em;
  background: linear-gradient(90deg, transparent, #fff9c9 16%, #ffb319 38%, #ff3b18 58%, #fff8c4 74%, transparent);
  clip-path: polygon(0 55%, 13% 50%, 21% 8%, 32% 82%, 43% 28%, 54% 68%, 63% 16%, 74% 82%, 85% 36%, 100% 47%, 100% 78%, 0 84%);
  filter: blur(0.3px) drop-shadow(0 0 12px rgba(255, 207, 75, 0.95)) drop-shadow(0 0 28px rgba(255, 74, 24, 0.72));
  opacity: 0;
  pointer-events: none;
  animation: boltStrike 3.2s steps(1) infinite;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 620px);
  margin-top: 32px;
}

.metrics .metric {
  position: relative;
  min-height: 88px;
  padding: 16px;
  border: 1px solid rgba(255, 63, 79, 0.22);
  border-radius: 18px;
  background: rgba(8, 13, 26, 0.56);
  overflow: hidden;
  box-shadow: none;
}

.metrics .metric::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 63, 79, 0.13), transparent);
  transform: translateX(-100%);
  animation: scan 4.5s ease-in-out infinite;
}

.metrics .metric strong {
  display: block;
  color: var(--lime);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1;
}

.metrics .metric span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.login {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(255, 63, 79, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(19, 28, 48, 0.86), rgba(8, 12, 24, 0.86)),
    radial-gradient(circle at 20% 0%, rgba(255, 63, 79, 0.18), transparent 36%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: enterRight 700ms 90ms ease-out both;
}

.login::before {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--lime), transparent);
  animation: lineSweep 2.6s linear infinite;
}

.login-inner {
  position: relative;
  padding: 28px;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.brandmark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 184, 74, 0.42);
  border-radius: 17px;
  color: var(--lime);
  background: rgba(255, 184, 74, 0.08);
  box-shadow: inset 0 0 22px rgba(255, 184, 74, 0.1), 0 0 24px rgba(255, 184, 74, 0.14);
  font-weight: 900;
  font-size: 24px;
}

.card-title p {
  margin: 0 0 6px;
  color: var(--cyan);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.card-title h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.06em;
}

.login .field {
  display: block;
  margin-top: 16px;
}

.login .field label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.login .field label code {
  color: rgba(255, 63, 79, 0.78);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
}

.login .input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 63, 79, 0.24);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(2, 5, 12, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  font-size: 15px;
  transition: 180ms ease;
}

.login .input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(255, 63, 79, 0.12), 0 0 26px rgba(255, 63, 79, 0.14);
}

.options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.options a {
  color: var(--amber);
  text-decoration: none;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.submit {
  position: relative;
  width: 100%;
  min-height: var(--ui-button-height);
  border: 0;
  border-radius: var(--ui-button-radius);
  color: #071015;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  cursor: pointer;
  font-size: var(--ui-button-font-size);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 0 24px rgba(255, 63, 79, 0.26), 0 12px 28px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  transition: transform 180ms ease, filter 180ms ease;
}

.submit::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: translateX(-120%) skewX(-20deg);
  transition: 520ms ease;
}

.submit:hover {
  transform: translateY(-2px);
  filter: saturate(1.18);
}

.submit:hover::before {
  transform: translateX(120%) skewX(-20deg);
}

.quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.quick button {
  min-height: var(--ui-button-height);
  border: 1px solid rgba(255, 63, 79, 0.2);
  border-radius: var(--ui-button-radius);
  padding: var(--ui-button-padding);
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  cursor: pointer;
  font-size: var(--ui-button-font-size);
  transition: 180ms ease;
}

.quick button:hover {
  border-color: rgba(255, 184, 74, 0.42);
  color: var(--lime);
  background: rgba(255, 184, 74, 0.08);
}

.hint {
  margin: 18px 0 0;
  color: rgba(147, 164, 184, 0.78);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}

.ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 24px;
  height: 34px;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 63, 79, 0.2);
  color: rgba(246, 242, 223, 0.72);
  background: rgba(4, 6, 12, 0.78);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  white-space: nowrap;
}

.ticker-track {
  display: flex;
  gap: 24px;
  min-width: max-content;
  animation: marquee 24s linear infinite;
}

.ticker b {
  color: var(--lime);
  font-weight: 700;
}

.cyber-login-page {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  color: var(--text);
}

.cyber-login-page::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(100deg, rgba(255, 63, 79, 0.11), transparent 38%, rgba(255, 184, 74, 0.08) 72%, transparent),
    radial-gradient(circle at 74% 42%, rgba(255, 63, 79, 0.18), transparent 32%);
  mix-blend-mode: screen;
}

.cyber-entry-nav {
  position: fixed;
  top: clamp(18px, 3vw, 42px);
  right: clamp(28px, 5.6vw, 88px);
  z-index: 8;
  display: flex;
  gap: 10px;
  align-items: center;
}

.cyber-entry-nav a {
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(12px);
}

.cyber-entry-nav a:hover {
  border-color: rgba(255, 63, 79, 0.5);
  color: var(--cyan);
  background: rgba(255, 63, 79, 0.08);
}

.cyber-entry-nav .cyber-entry-hot {
  color: #071015;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  border-color: transparent;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(255, 122, 51, 0.24);
}

.cyber-orbital {
  position: absolute;
  inset: 7vh 8vw;
  z-index: 0;
  border: 1px solid rgba(255, 63, 79, 0.12);
  border-radius: 999px;
  transform: rotate(-8deg);
  box-shadow: inset 0 0 34px rgba(255, 63, 79, 0.08);
  pointer-events: none;
}

.cyber-orbital::before,
.cyber-orbital::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px var(--lime);
  animation: orbit 8s linear infinite;
}

.cyber-orbital::before {
  left: 14%;
  top: 7%;
}

.cyber-orbital::after {
  right: 18%;
  bottom: 5%;
  animation-delay: -3s;
  background: var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}

.cyber-stage {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(420px, 0.76fr) minmax(820px, 1.24fr);
  gap: clamp(22px, 3vw, 52px);
  align-items: center;
  width: 100%;
  height: 100vh;
  padding: clamp(58px, 7vh, 84px) clamp(72px, 6vw, 104px) clamp(52px, 7vh, 78px);
}

.cyber-brand {
  position: relative;
  z-index: 2;
  max-width: 600px;
  min-width: 0;
  justify-self: start;
  transform: translateX(24px);
  animation: enterLeft 700ms ease-out both;
}

.cyber-brand::after {
  content: "";
  position: absolute;
  left: -22px;
  top: 22px;
  bottom: -18px;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 63, 79, 0.88), rgba(255, 184, 74, 0.62), transparent);
  box-shadow: 0 0 22px rgba(255, 63, 79, 0.42);
}

.cyber-topline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(255, 63, 79, 0.34);
  border-radius: 999px;
  color: var(--cyan);
  background: rgba(255, 63, 79, 0.06);
  box-shadow: 0 0 28px rgba(255, 63, 79, 0.12);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cyber-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 16px var(--lime);
  animation: blink 1.4s ease-in-out infinite;
}

.cyber-title {
  position: relative;
  margin: 24px 0 16px;
  font-size: clamp(64px, 6.4vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-weight: 900;
  white-space: nowrap;
}

.cyber-title .cyber-thin {
  display: block;
  letter-spacing: 0.08em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 225, 139, 0.9);
  text-shadow: 0 0 20px rgba(255, 184, 74, 0.36), 0 0 48px rgba(255, 93, 38, 0.18);
}

.cyber-title .cyber-hot {
  display: inline-block;
  position: relative;
  letter-spacing: 0.035em;
  color: #ffe6a4;
  text-shadow:
    2px 0 rgba(255, 191, 73, 0.92),
    -2px 0 rgba(255, 74, 46, 0.68),
    0 0 22px rgba(255, 211, 106, 0.5),
    0 0 64px rgba(255, 139, 31, 0.32);
  animation: boltWarp 3.2s steps(1) infinite;
}

.cyber-brand-copy {
  width: min(520px, 100%);
  margin: 18px 0 0;
  border-left: 1px solid rgba(255, 184, 74, 0.36);
  padding-left: 18px;
  color: rgba(246, 242, 223, 0.76);
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.9;
}

.cyber-title .cyber-hot::before {
  content: "";
  position: absolute;
  left: -0.08em;
  right: -0.1em;
  top: 42%;
  height: 0.22em;
  background: linear-gradient(90deg, transparent, #fff9c9 16%, #ffb319 38%, #ff3b18 58%, #fff8c4 74%, transparent);
  clip-path: polygon(0 55%, 13% 50%, 21% 8%, 32% 82%, 43% 28%, 54% 68%, 63% 16%, 74% 82%, 85% 36%, 100% 47%, 100% 78%, 0 84%);
  filter: blur(0.3px) drop-shadow(0 0 12px rgba(255, 207, 75, 0.95)) drop-shadow(0 0 28px rgba(255, 74, 24, 0.72));
  opacity: 0;
  pointer-events: none;
  animation: boltStrike 3.2s steps(1) infinite;
}

.cyber-rank-panel {
  position: relative;
  width: 100%;
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(255, 63, 79, 0.3);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(19, 28, 48, 0.82), rgba(8, 12, 24, 0.8)),
    radial-gradient(circle at 20% 0%, rgba(255, 184, 74, 0.14), transparent 38%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42), 0 0 36px rgba(255, 63, 79, 0.14);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.cyber-rank-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 63, 79, 0.13), transparent);
  transform: translateX(-100%);
  animation: scan 5.8s ease-in-out infinite;
  pointer-events: none;
}

.cyber-rank-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cyber-rank-head p {
  margin: 0 0 5px;
  color: var(--cyan);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.cyber-rank-head h2 {
  margin: 0;
  font-size: 22px;
}

.cyber-rank-head > span {
  border: 1px solid rgba(255, 184, 74, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--lime);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
}

.cyber-rank-slider {
  position: relative;
  z-index: 1;
  height: 198px;
  overflow: hidden;
}

.cyber-rank-zones {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.cyber-rank-zone {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.cyber-rank-zone-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cyber-rank-zone-title strong {
  color: var(--lime);
}

.cyber-rank-zone-title span {
  color: var(--muted);
  font-size: 12px;
}

.cyber-rank-page {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 6px;
  animation: rankPageA 9s ease-in-out infinite;
}

.cyber-rank-page + .cyber-rank-page {
  animation-name: rankPageB;
}

.cyber-rank-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  align-items: center;
  min-height: 34px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 5px 10px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.055), rgba(255, 63, 79, 0.035));
}

.cyber-rank-empty {
  display: grid;
  place-items: center;
  min-height: 148px;
  border: 1px dashed rgba(255, 184, 74, 0.24);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
}

.cyber-rank-row b {
  color: var(--lime);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 13px;
}

.cyber-rank-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cyber-rank-row em {
  color: var(--muted);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

.cyber-right-stack {
  display: grid;
  grid-template-columns: minmax(360px, 420px) minmax(380px, 460px);
  gap: 24px;
  align-items: start;
  justify-self: end;
  width: min(100%, 884px);
}

.cyber-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.cyber-tabs button {
  min-height: var(--ui-button-height);
  border-radius: var(--ui-button-radius);
  padding: var(--ui-button-padding);
  color: rgba(246, 242, 223, 0.66);
  background: transparent;
  font-size: var(--ui-button-font-size);
  line-height: 1;
}

.cyber-tabs .active {
  color: #071015;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  font-weight: 900;
}

.cyber-login-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  border: 1px solid rgba(255, 63, 79, 0.28);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(19, 28, 48, 0.86), rgba(8, 12, 24, 0.86)),
    radial-gradient(circle at 20% 0%, rgba(255, 63, 79, 0.18), transparent 36%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  animation: enterRight 700ms 90ms ease-out both;
}

.cyber-login-card::before {
  content: "";
  position: absolute;
  left: -30%;
  top: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--lime), transparent);
  animation: lineSweep 2.6s linear infinite;
}

.cyber-login-inner {
  position: relative;
  padding: 30px;
}

.cyber-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.cyber-brandmark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 184, 74, 0.42);
  border-radius: 17px;
  color: var(--lime);
  background: rgba(255, 184, 74, 0.08);
  box-shadow: inset 0 0 22px rgba(255, 184, 74, 0.1), 0 0 24px rgba(255, 184, 74, 0.14);
  font-weight: 900;
  font-size: 24px;
}

.cyber-card-title p {
  margin: 0 0 6px;
  color: var(--cyan);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
}

.cyber-card-title h2 {
  margin: 0;
  font-size: var(--ui-title-size);
  line-height: var(--ui-title-line);
  letter-spacing: 0;
}

.cyber-field {
  margin-top: 16px;
}

.cyber-field label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.cyber-field label code {
  color: rgba(255, 63, 79, 0.78);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
}

.cyber-input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid rgba(255, 63, 79, 0.24);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  background: rgba(2, 5, 12, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  font-size: 14px;
  transition: 180ms ease;
}

.password-reveal-wrap {
  position: relative;
}

.password-reveal-wrap .cyber-input {
  padding-right: 58px;
}

.password-reveal-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(255, 184, 74, 0.08);
  cursor: pointer;
  font-size: 0;
}

.password-reveal-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.password-reveal-btn.is-visible {
  color: var(--cyan);
  border-color: rgba(54, 245, 255, 0.34);
  background: rgba(54, 245, 255, 0.1);
}

.cyber-input::placeholder {
  color: rgba(147, 164, 184, 0.58);
}

.cyber-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(255, 63, 79, 0.12), 0 0 26px rgba(255, 63, 79, 0.14);
}

.cyber-secret-input {
  -webkit-text-security: disc;
  text-security: disc;
}

.cyber-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.cyber-options a {
  color: var(--amber);
  text-decoration: none;
}

.cyber-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.cyber-check input {
  width: 13px;
  height: 13px;
  min-height: 0;
  margin: 0;
  padding: 0;
  accent-color: var(--lime);
}

.cyber-submit {
  position: relative;
  width: 100%;
  margin-top: 0;
  min-height: var(--ui-button-height);
  border: 0;
  border-radius: var(--ui-button-radius);
  color: #071015;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  cursor: pointer;
  font-size: var(--ui-button-font-size);
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 0 24px rgba(255, 63, 79, 0.26), 0 12px 28px rgba(0, 0, 0, 0.42);
  overflow: hidden;
  transition: transform 180ms ease, filter 180ms ease;
}

.cyber-submit::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: translateX(-120%) skewX(-20deg);
  transition: 520ms ease;
}

.cyber-submit:hover {
  transform: translateY(-2px);
  filter: saturate(1.18);
}

.cyber-submit:hover::before {
  transform: translateX(120%) skewX(-20deg);
}

.cyber-hint {
  margin: 18px 0 0;
  color: rgba(147, 164, 184, 0.78);
  text-align: center;
  font-size: 12px;
  line-height: 1.7;
}

.cyber-ticker {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  gap: 24px;
  height: 34px;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid rgba(255, 63, 79, 0.2);
  color: rgba(246, 242, 223, 0.72);
  background: rgba(4, 6, 12, 0.78);
  font-family: Consolas, "Cascadia Mono", monospace;
  font-size: 12px;
  white-space: nowrap;
}

.cyber-ticker-track {
  display: flex;
  gap: 24px;
  min-width: max-content;
  animation: marquee 24s linear infinite;
}

.cyber-ticker b {
  color: var(--lime);
  font-weight: 700;
}

.lead {
  max-width: 640px;
  color: rgba(248, 240, 216, 0.72);
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions,
.actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.panel,
.card,
.metric,
.tool-card,
.admin-block {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(18, 24, 42, 0.86), rgba(7, 8, 16, 0.82));
  box-shadow: var(--shadow);
}

.login-card {
  padding: 28px;
}

.login-card h2 {
  margin: 8px 0 4px;
  font-size: 34px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.tabs button {
  min-height: var(--ui-button-height);
  border-radius: var(--ui-button-radius);
  padding: var(--ui-button-padding);
  color: rgba(248, 240, 216, 0.66);
  background: transparent;
  font-size: var(--ui-button-font-size);
  line-height: 1;
}

.tabs .active {
  color: #12050a;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
  font-weight: 900;
}

.field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.field span {
  color: rgba(248, 240, 216, 0.68);
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(54, 245, 255, 0.2);
  border-radius: 15px;
  padding: 0 15px;
  color: var(--text);
  outline: none;
  background: rgba(4, 7, 14, 0.82);
  font-size: 13px;
}

textarea {
  min-height: 90px;
  padding-top: 12px;
  resize: vertical;
}

.style-field textarea {
  min-height: 96px;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.12);
}

.grid {
  display: grid;
  gap: 18px;
}

.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.side-rail {
  position: sticky;
  top: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(18, 24, 42, 0.92), rgba(7, 8, 16, 0.86));
  box-shadow: var(--shadow);
}

.side-rail h2 {
  margin: 8px 0 18px;
}

.side-menu {
  display: grid;
  gap: 10px;
}

.side-menu button {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  min-height: var(--ui-button-height);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--ui-button-radius);
  padding: 12px;
  color: var(--text);
  text-align: left;
  background: rgba(255, 255, 255, 0.045);
}

.side-menu button span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: #12050a;
  background: linear-gradient(135deg, var(--cyan), var(--gold));
  font-weight: 900;
}

.side-menu button small {
  color: rgba(248, 240, 216, 0.58);
  line-height: 1.35;
}

.side-menu button.active {
  border-color: rgba(255, 209, 102, 0.48);
  background: rgba(255, 209, 102, 0.1);
}

.work-surface {
  min-width: 0;
}

.small-title {
  font-size: clamp(42px, 6vw, 86px);
}

.two-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tool-card,
.metric,
.admin-block {
  padding: 24px;
}

.tool-card h3 {
  margin: 14px 0 8px;
  font-size: 27px;
}

.tool-card p,
.muted,
.metric span,
td {
  color: rgba(248, 240, 216, 0.66);
  line-height: 1.65;
}

.metric strong {
  display: block;
  margin: 8px 0;
  color: var(--gold);
  font-family: Consolas, monospace;
  font-size: 44px;
}

.package-row,
.tool-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.contact-grid {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
}

.contact-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 184, 74, 0.14), transparent 34%),
    rgba(2, 4, 10, 0.78);
  backdrop-filter: blur(16px);
}

.contact-dialog {
  position: relative;
  width: min(900px, calc(100vw - 48px));
  border: 1px solid rgba(255, 184, 74, 0.28);
  border-radius: 30px;
  padding: 30px;
  background:
    linear-gradient(145deg, rgba(18, 24, 40, 0.96), rgba(7, 8, 16, 0.98)),
    radial-gradient(circle at top right, rgba(255, 63, 79, 0.16), transparent 42%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
}

.contact-dialog h2 {
  margin: 8px 0 10px;
  font-size: clamp(30px, 4vw, 52px);
}

.contact-close {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--paper);
  background: rgba(255, 255, 255, 0.06);
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 150px;
  border: 1px dashed rgba(255, 184, 74, 0.5);
  border-radius: 22px;
  background: rgba(255, 184, 74, 0.08);
  color: var(--muted);
  text-align: center;
}

.qr-box img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 16px;
}

.price {
  color: var(--gold);
  font-family: Consolas, monospace;
  font-size: 24px;
  font-weight: 900;
}

.result-box {
  min-height: 110px;
  margin: 16px 0 0;
  padding: 16px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid rgba(54, 245, 255, 0.18);
  border-radius: 18px;
  color: #dffcff;
  background: rgba(2, 6, 12, 0.72);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 10px;
  text-align: left;
}

th {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.admin-form .wide {
  grid-column: span 4;
}

.upload-field {
  position: relative;
  display: grid;
  gap: 5px;
  align-items: center;
  min-height: 82px;
  border: 1px dashed rgba(255, 209, 102, 0.34);
  border-radius: 20px;
  padding: 14px 18px 14px 64px;
  color: rgba(248, 240, 216, 0.78);
  background:
    radial-gradient(circle at 22px 24px, rgba(255, 184, 74, 0.32), transparent 18px),
    linear-gradient(135deg, rgba(255, 184, 74, 0.08), rgba(255, 63, 79, 0.05)),
    rgba(2, 6, 12, 0.72);
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.upload-field::before {
  content: "+";
  position: absolute;
  left: 22px;
  top: 50%;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 50%;
  color: var(--gold);
  transform: translateY(-50%);
}

.upload-field:hover {
  border-color: rgba(255, 209, 102, 0.7);
  box-shadow: 0 0 34px rgba(255, 184, 74, 0.12);
  transform: translateY(-1px);
}

.upload-field span {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.upload-field strong {
  color: var(--text);
  font-size: 16px;
}

.upload-field em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.upload-field input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.quota-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 209, 102, 0.18), transparent 32%),
    rgba(3, 4, 9, 0.72);
  backdrop-filter: blur(12px);
}

.quota-dialog {
  width: min(360px, calc(100vw - 48px));
  border: 1px solid rgba(255, 209, 102, 0.38);
  border-radius: 22px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(255, 75, 74, 0.12), rgba(255, 209, 102, 0.1)),
    rgba(14, 18, 32, 0.94);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5), 0 0 60px rgba(255, 184, 74, 0.14);
  text-align: center;
}

.quota-dialog h2 {
  margin: 6px 0 10px;
  color: var(--cream);
  font-size: clamp(20px, 2.3vw, 28px);
  line-height: 1.15;
}

.quota-dialog p:not(.eyebrow) {
  margin: 0 auto 18px;
  max-width: 280px;
  font-size: 13px;
  color: rgba(248, 240, 216, 0.68);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  max-width: min(420px, calc(100vw - 44px));
  border: 1px solid rgba(255, 209, 102, 0.32);
  border-radius: 18px;
  padding: 14px 16px;
  color: var(--text);
  background: rgba(10, 15, 28, 0.95);
  box-shadow: var(--shadow);
}

.notice-overlay {
  position: fixed;
  inset: 0;
  z-index: 18;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(4, 5, 10, 0.68);
  backdrop-filter: blur(10px);
}

.notice-dialog {
  width: min(860px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 8px;
  padding: 24px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(16, 20, 34, 0.98), rgba(7, 8, 15, 0.98)),
    radial-gradient(circle at top right, rgba(255, 63, 79, 0.12), transparent 40%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
}

.notice-dialog-head,
.notice-item-head,
.notice-actions,
.notice-admin-card-head,
.notice-admin-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.notice-dialog h2 {
  margin: 4px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

.notice-close {
  border: 1px solid rgba(255, 209, 102, 0.25);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

.notice-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding-right: 8px;
  overflow-y: auto;
}

.notice-item {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.notice-item.unread {
  border-color: rgba(255, 63, 79, 0.45);
  background: rgba(255, 63, 79, 0.08);
}

.notice-dot {
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.notice-item.unread .notice-dot {
  background: #ff2f45;
  box-shadow: 0 0 14px rgba(255, 47, 69, 0.74);
}

.notice-item strong {
  color: var(--cream);
  font-size: 17px;
}

.notice-item em,
.notice-admin-card-head em {
  border: 1px solid rgba(255, 209, 102, 0.26);
  border-radius: 8px;
  padding: 4px 8px;
  color: var(--gold);
  background: rgba(255, 209, 102, 0.08);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.notice-item p {
  margin: 8px 0 10px;
  color: rgba(248, 240, 216, 0.78);
  line-height: 1.75;
}

.notice-item time,
.notice-admin-card-head span {
  color: var(--muted);
  font-size: 12px;
}

.notice-empty {
  margin: 0;
  border: 1px dashed rgba(255, 209, 102, 0.22);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

.notice-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.notice-form textarea,
.notice-admin-card textarea {
  min-height: 118px;
  resize: vertical;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cream);
}

.inline-check input {
  width: auto;
}

.notice-admin-list {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-bottom: 32px;
}

.notice-admin-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.notice-admin-card-head {
  align-items: flex-start;
  margin-bottom: 14px;
}

.notice-admin-card-head strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cream);
  font-size: 17px;
}

.notice-admin-actions {
  justify-content: flex-end;
  margin-top: 14px;
  padding-bottom: 8px;
}

.notice-admin-card textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@keyframes bellRing {
  0%, 42%, 100% { transform: rotate(0); }
  46% { transform: rotate(-9deg); }
  50% { transform: rotate(8deg); }
  54% { transform: rotate(-5deg); }
  58% { transform: rotate(3deg); }
}

@keyframes breathe {
  from { transform: scale(1); filter: saturate(1); }
  to { transform: scale(1.04); filter: saturate(1.18); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.32; }
}

@keyframes boltWarp {
  0%, 78%, 100% { transform: none; filter: none; }
  79% { transform: skewX(-10deg) translateX(-5px); filter: brightness(1.4); }
  80% { transform: skewX(8deg) translateX(7px) scaleY(0.95); }
  81% { transform: skewX(-4deg) translateX(-2px) scaleY(1.04); }
  82% { transform: none; filter: brightness(1.12); }
}

@keyframes boltStrike {
  0%, 78%, 83%, 100% { opacity: 0; transform: translateX(-14px) scaleX(0.72); }
  79% { opacity: 1; transform: translateX(-2px) scaleX(1.08); }
  80% { opacity: 0.45; transform: translateX(10px) scaleX(0.92); }
  81% { opacity: 0.9; transform: translateX(4px) scaleX(1); }
}

@keyframes scan {
  0%, 55% { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}

@keyframes lineSweep {
  from { transform: translateX(0); }
  to { transform: translateX(260%); }
}

@keyframes orbit {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(34px, 18px); }
  50% { transform: translate(10px, 46px); }
  75% { transform: translate(-28px, 20px); }
}

@keyframes enterLeft {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: translateX(24px); }
}

@keyframes enterRight {
  from { opacity: 0; transform: translateX(22px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rankPageA {
  0%, 44% { opacity: 1; transform: translateY(0); }
  50%, 94% { opacity: 0; transform: translateY(-10px); pointer-events: none; }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes rankPageB {
  0%, 44% { opacity: 0; transform: translateY(10px); pointer-events: none; }
  50%, 94% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); pointer-events: none; }
}

@keyframes soft-title-glow {
  0%, 100% {
    color: #fff2b5;
    filter: brightness(1);
    text-shadow:
      0 0 12px rgba(255, 209, 102, 0.38),
      0 0 34px rgba(255, 184, 74, 0.24),
      0 8px 34px rgba(255, 63, 79, 0.14);
  }
  50% {
    color: #fff8d6;
    filter: brightness(1.1);
    text-shadow:
      0 0 18px rgba(255, 238, 171, 0.58),
      0 0 46px rgba(255, 184, 74, 0.38),
      0 10px 40px rgba(255, 63, 79, 0.2);
  }
}

@keyframes soft-aura {
  0%, 100% { opacity: 0.32; transform: scale(0.98); }
  50% { opacity: 0.68; transform: scale(1.02); }
}

@keyframes slogan-run {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 48px)); }
}

@media (max-width: 980px) {
  .cyber-stage {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .cyber-brand {
    max-width: none;
    transform: none;
  }

  .cyber-brand::after {
    display: none;
  }

  .cyber-rank-panel {
    display: none;
  }

  .cyber-right-stack,
  .cyber-login-card {
    grid-template-columns: 1fr;
    max-width: none;
    width: 100%;
    transform: none;
  }

  .stage {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 22px;
  }

  .brand {
    max-width: none;
    transform: none;
  }

  .metrics {
    display: none;
  }

  .login {
    max-width: none;
  }

  .hero,
  .app-layout,
  .tool-grid,
  .two-grid,
  .metric-grid,
  .admin-form,
  .ai-config-cards,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .admin-form .wide {
    grid-column: auto;
  }

  .ai-config-cards .admin-form {
    grid-template-columns: 1fr;
  }

  .ai-config-runtime,
  .ai-config-actions {
    grid-column: auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.app-page {
  padding: 22px;
  height: 100vh;
  overflow: hidden;
}

.admin-page {
  height: 100vh;
  overflow: hidden;
}

.wide-shell {
  width: min(1680px, 100%);
  height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-page .wide-shell {
  height: calc(100vh - 44px);
  min-height: 0;
}

.app-page .topbar {
  margin-bottom: 28px;
}

.app-page .app-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.app-page .side-rail {
  position: static;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(18, 25, 43, 0.92), rgba(9, 11, 20, 0.96)),
    radial-gradient(circle at top left, rgba(255, 184, 74, 0.14), transparent 42%);
}

.app-page .work-surface {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 10px;
  padding-bottom: 34px;
  overscroll-behavior: contain;
}

.market-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.market-head .small-title {
  margin: 8px 0 10px;
  font-size: var(--ui-title-size);
  line-height: var(--ui-title-line);
  letter-spacing: 0;
}

.market-head .lead {
  max-width: 820px;
  font-size: clamp(15px, 1.2vw, 19px);
  line-height: 1.65;
}

.market-badge {
  border: 1px solid rgba(255, 184, 74, 0.36);
  border-radius: 999px;
  color: var(--gold);
  padding: 10px 16px;
  background: rgba(255, 184, 74, 0.07);
  white-space: nowrap;
}

.tool-market-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: 42px;
}

.market-card {
  min-height: 286px;
  border: 1px solid rgba(255, 184, 74, 0.22);
  border-radius: 28px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(18, 24, 40, 0.94), rgba(8, 10, 18, 0.98)),
    radial-gradient(circle at 15% 0%, rgba(255, 63, 79, 0.16), transparent 36%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  gap: 18px;
}

.market-card-copy {
  min-height: 116px;
}

.market-card h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: clamp(20px, 1.35vw, 25px);
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.market-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.market-card-top,
.market-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.market-card-foot {
  margin-top: auto;
  justify-content: flex-start;
}

.balance-pill {
  min-width: max-content;
  border: 1px solid rgba(255, 184, 74, 0.22);
  border-radius: 999px;
  padding: 8px 11px;
  color: rgba(248, 240, 216, 0.7);
  background: rgba(255, 184, 74, 0.055);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.market-card-top strong,
.market-card-foot span {
  color: var(--gold);
  font-size: 14px;
}

.market-card-foot .balance-pill {
  color: rgba(248, 240, 216, 0.7);
  font-size: 12px;
}

.quota-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(255, 184, 74, 0.16);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 184, 74, 0.075), rgba(255, 63, 79, 0.045));
}

.quota-strip span {
  min-width: 0;
  color: rgba(248, 240, 216, 0.64);
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
}

.quota-strip b {
  color: var(--gold);
  font-size: 15px;
  margin-right: 3px;
}

@media (max-width: 1320px) {
  .tool-market-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .tool-market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.package-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.package-strip span {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
}

.tool-detail-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.tool-detail-aside,
.tool-runner,
.admin-console,
.admin-block {
  border: 1px solid rgba(255, 184, 74, 0.2);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgba(18, 24, 40, 0.94), rgba(8, 10, 18, 0.98)),
    radial-gradient(circle at top right, rgba(255, 63, 79, 0.12), transparent 40%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.tool-detail-aside {
  position: static;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 26px 28px 42px 26px;
}

.tool-detail-aside h1 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  margin: 22px 0 14px;
}

.tool-runner {
  height: 100%;
  overflow-y: auto;
  padding: 30px;
}

.tool-form h2 {
  font-size: var(--ui-title-size);
  line-height: var(--ui-title-line);
  margin: 8px 0 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.form-grid label,
.question-row {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.form-grid input,
.question-row select {
  width: 100%;
  border: 1px solid rgba(54, 245, 255, 0.22);
  border-radius: 16px;
  background: rgba(3, 8, 16, 0.72);
  color: var(--paper);
  padding: 14px 16px;
}

.question-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.question-row {
  grid-template-columns: minmax(0, 1fr) 160px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.large-result {
  min-height: 280px;
  margin-top: 22px;
  white-space: pre-wrap;
}

.image-tool-form {
  position: relative;
  overflow: hidden;
}

.image-tool-form::after {
  content: "";
  position: absolute;
  right: 26px;
  top: 24px;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.35), transparent 68%);
  filter: blur(10px);
  pointer-events: none;
}

.cooldown-note {
  display: inline-flex;
  margin-left: 14px;
  color: rgba(246, 242, 223, 0.58);
  font-size: 13px;
}

.image-result-card {
  display: block;
  white-space: normal;
}

.paid-image-form {
  display: grid;
  gap: 12px;
}

.paid-image-form h2 {
  margin: 2px 0 6px;
  font-size: clamp(22px, 2vw, 26px);
  line-height: 1.12;
}

.paid-image-form > .muted {
  margin: 0 0 4px;
}

.image-control-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.image-control-row {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.image-control-row > span {
  flex: 0 0 66px;
  color: rgba(246, 242, 223, 0.72);
  font-size: 13px;
}

.segmented-options {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.ratio-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(56px, 1fr));
  max-width: 230px;
}

.segmented-options label {
  position: relative;
  display: inline-flex;
  min-width: 56px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 8px;
  color: rgba(246, 242, 223, 0.72);
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  font-size: 13px;
  transition: 0.18s ease;
}

.segmented-options input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.segmented-options label:has(input:checked) {
  color: var(--gold);
  border-color: rgba(255, 209, 102, 0.62);
  background: rgba(255, 184, 74, 0.12);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255, 184, 74, 0.16);
}

.image-asset-list {
  display: grid;
  gap: 10px;
}

.image-asset-row {
  display: grid;
  grid-template-columns: auto minmax(112px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.image-preview-strip {
  display: grid;
  min-height: 56px;
  align-items: center;
  padding: 8px;
  border: 1px dashed rgba(255, 209, 102, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.image-preview-strip figure {
  position: relative;
  width: 72px;
  height: 54px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.22);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.image-preview-strip img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: rgba(0, 0, 0, 0.22);
}

.image-preview-strip figcaption {
  position: absolute;
  right: 4px;
  bottom: 4px;
  min-width: 28px;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #05070e;
  background: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.image-preview-strip span {
  color: var(--muted);
  font-size: 13px;
}

.image-upload-zone {
  position: relative;
  display: flex;
  gap: 10px;
  min-height: 56px;
  align-items: center;
  width: 132px;
  max-width: 100%;
  border: 1px dashed rgba(255, 209, 102, 0.42);
  border-radius: 8px;
  padding: 9px 14px;
  background:
    linear-gradient(135deg, rgba(255, 184, 74, 0.08), rgba(54, 245, 255, 0.045)),
    rgba(255, 255, 255, 0.025);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.image-upload-zone::before {
  content: attr(data-upload-label) "：";
  position: static;
  color: rgba(246, 242, 223, 0.72);
  font-size: 13px;
}

.image-upload-zone::after {
  display: none;
}

.image-upload-zone:hover {
  border-color: rgba(255, 209, 102, 0.72);
  box-shadow: 0 0 38px rgba(255, 184, 74, 0.12);
  transform: translateY(-1px);
}

.image-upload-zone span {
  display: none;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}

.image-upload-zone strong {
  color: var(--gold);
  font-size: 13px;
  line-height: 1.35;
}

.image-upload-zone em {
  display: none;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
}

.image-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.image-add-asset {
  justify-self: start;
  min-height: var(--ui-button-height);
  min-width: var(--ui-button-min-width);
  padding: var(--ui-button-padding);
  border: 1px dashed rgba(255, 209, 102, 0.42);
  border-radius: var(--ui-button-radius);
  color: var(--gold);
  background: rgba(255, 184, 74, 0.07);
  cursor: pointer;
  font-size: var(--ui-button-font-size);
  font-weight: 800;
  line-height: 1;
}

.image-add-asset:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.gold-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--ui-button-height);
  min-width: var(--ui-button-min-width);
  border-radius: var(--ui-button-radius);
  padding: var(--ui-button-padding);
  border: 1px solid rgba(255, 209, 102, 0.58);
  color: #05070e;
  background: linear-gradient(135deg, #ffd166, #ffb84a);
  box-shadow: 0 10px 24px rgba(255, 184, 74, 0.18);
  font-size: var(--ui-button-font-size);
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.tiny-note {
  font-size: 13px;
  line-height: 1.7;
}

.image-generate-btn {
  width: auto;
}

.tool-action-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: min(390px, 100%);
}

.tool-action-row .primary-btn {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}

.tool-reset-btn {
  flex: 0 0 110px;
  min-width: 110px;
  min-height: var(--ui-button-height);
  border-radius: var(--ui-button-radius);
  padding: var(--ui-button-padding);
  font-size: var(--ui-button-font-size);
}

.image-set-card {
  display: grid;
  gap: 12px;
}

.image-set-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.image-set-head h3 {
  margin: 4px 0 0;
  font-size: clamp(22px, 2vw, 30px);
}

.image-set-head span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.image-set-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.image-set-item {
  --image-aspect-ratio: 1 / 1;
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(0, 0, 0, 0.16);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.image-set-item img {
  display: block;
  width: 100%;
  aspect-ratio: var(--image-aspect-ratio);
  height: auto;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.24);
  cursor: zoom-in;
}

.image-failed-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: var(--image-aspect-ratio);
  place-items: center;
  gap: 8px;
  padding: 18px;
  color: rgba(248, 240, 216, 0.7);
  background:
    linear-gradient(145deg, rgba(255, 63, 79, 0.14), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.28);
  text-align: center;
}

.image-failed-placeholder strong {
  color: #ff6a72;
  font-size: 18px;
}

.image-failed-placeholder span {
  max-width: 22ch;
  font-size: 12px;
  line-height: 1.5;
}

.image-set-card.ratio-1-1 .image-set-item {
  --image-aspect-ratio: 1 / 1;
}

.image-set-card.ratio-3-4 .image-set-item {
  --image-aspect-ratio: 3 / 4;
}

.image-set-card.ratio-4-3 .image-set-item {
  --image-aspect-ratio: 4 / 3;
}

.image-set-card.ratio-9-16 .image-set-item {
  --image-aspect-ratio: 9 / 16;
}

.image-set-card.ratio-16-9 .image-set-item {
  --image-aspect-ratio: 16 / 9;
}

.image-set-item figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: static;
  padding: 10px;
  border-top: 1px solid rgba(255, 209, 102, 0.16);
  font-size: 12px;
  background: rgba(5, 9, 18, 0.96);
}

.image-set-item figcaption span {
  min-width: 0;
  overflow: hidden;
  color: rgba(246, 242, 223, 0.74);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-download-btn {
  min-height: var(--ui-button-height);
  min-width: var(--ui-button-min-width);
  padding: var(--ui-button-padding);
  border-radius: var(--ui-button-radius);
}

.image-history-panel {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 209, 102, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 184, 74, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.025);
}

.image-history-panel:empty {
  display: none;
}

.image-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.image-history-item {
  display: grid;
  grid-template-columns: 112px 82px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: var(--ui-button-height);
  padding: 8px 10px;
  border: 1px solid rgba(255, 209, 102, 0.14);
  border-radius: var(--ui-button-radius);
  color: rgba(246, 242, 223, 0.72);
  background: rgba(0, 0, 0, 0.16);
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.image-history-item:hover {
  border-color: rgba(255, 209, 102, 0.34);
  transform: translateY(-1px);
}

.image-history-item b {
  color: var(--gold);
}

.image-history-item em {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
}

.image-result-frame img {
  cursor: zoom-in;
}

.image-lightbox-tools {
  position: fixed;
  right: 28px;
  top: 28px;
  z-index: 2;
  display: flex;
  gap: 10px;
  align-items: center;
}

.image-lightbox button {
  min-height: var(--ui-button-height);
  min-width: var(--ui-button-min-width);
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: var(--ui-button-radius);
  padding: var(--ui-button-padding);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: var(--ui-button-font-size);
}

.image-lightbox-zoom {
  min-width: 52px;
  color: #101010;
  background: linear-gradient(135deg, #ff4b51 0%, #ffd166 100%);
  box-shadow: 0 16px 34px rgba(255, 184, 74, 0.24);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.image-lightbox figure {
  display: grid;
  gap: 12px;
  width: min(92vw, 1280px);
  max-height: 90vh;
  margin: 0;
}

.image-lightbox-stage {
  display: grid;
  width: 100%;
  height: min(82vh, 860px);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.2);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.36);
  cursor: zoom-in;
  touch-action: none;
}

.image-lightbox-stage.is-zoomed {
  cursor: grab;
}

.image-lightbox-stage.is-zoomed:active {
  cursor: grabbing;
}

.image-lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 8px;
  object-fit: contain;
  transform-origin: center;
  transition: transform 160ms ease;
  user-select: none;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

.image-lightbox figcaption {
  color: rgba(246, 242, 223, 0.72);
  text-align: center;
}

.image-result-frame {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 184, 74, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(255, 63, 79, 0.12), rgba(8, 12, 24, 0.88));
  box-shadow: inset 0 0 38px rgba(255, 184, 74, 0.08);
}

.image-tool-runner .image-result-frame {
  min-height: min(62vh, 720px);
}

.image-result-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.image-tool-runner .image-result-frame img {
  min-height: min(62vh, 720px);
}

.cosmic-placeholder {
  display: grid;
  place-items: center;
  min-height: 320px;
  color: var(--gold);
  font-family: Consolas, monospace;
  letter-spacing: 0.22em;
}

.image-result-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  border-left: 1px solid rgba(255, 209, 102, 0.18);
  padding-left: 22px;
}

.image-result-copy h3 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
}

.image-result-copy p {
  margin: 0;
  color: rgba(246, 242, 223, 0.72);
  line-height: 1.8;
}

.signal-loader {
  display: grid;
  place-items: center;
  min-height: 360px;
  gap: 22px;
  text-align: center;
  white-space: normal;
}

.signal-orbit {
  position: relative;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 74, 0.12), transparent 58%);
  box-shadow: 0 0 60px rgba(255, 63, 79, 0.22), inset 0 0 34px rgba(255, 209, 102, 0.08);
  animation: signal-spin 2.8s linear infinite;
}

.signal-orbit span {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.9);
}

.signal-orbit span:nth-child(1) { left: 50%; top: -7px; }
.signal-orbit span:nth-child(2) { right: 9px; bottom: 24px; background: var(--cyan); }
.signal-orbit span:nth-child(3) { left: 11px; bottom: 24px; background: var(--hot); }

.signal-copy strong {
  color: var(--text);
  font-size: clamp(24px, 3vw, 38px);
}

.signal-copy p {
  color: rgba(246, 242, 223, 0.58);
}

.signal-bar {
  width: min(520px, 86%);
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 209, 102, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.signal-bar i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--amber));
  box-shadow: 0 0 28px rgba(255, 184, 74, 0.48);
  animation: signal-scan 1.35s ease-in-out infinite;
}

@keyframes signal-spin {
  to { transform: rotate(360deg); }
}

@keyframes signal-scan {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

.metric.compact {
  margin: 22px 0;
}

.growth-console {
  display: grid;
  gap: 22px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 4px 10px 28px 0;
}

.growth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: start;
  min-height: 260px;
  border: 1px solid rgba(255, 184, 74, 0.2);
  border-radius: 34px;
  padding: clamp(28px, 4vw, 54px);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 184, 74, 0.22), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(255, 63, 79, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(17, 22, 38, 0.86), rgba(5, 6, 13, 0.96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  overflow: visible;
}

.growth-hero-compact {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 136px;
  padding: 20px 28px;
  align-items: center;
}

.personal-hero {
  border-radius: 28px;
}

.personal-hero-copy {
  min-width: 0;
}

.wallet-hero-stack {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(260px, 320px);
  gap: 14px;
  align-items: stretch;
}

.wallet-hero-card {
  align-self: center;
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 102px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 184, 74, 0.12), rgba(255, 63, 79, 0.08));
}

.benefit-hero-card {
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.16), rgba(7, 11, 22, 0.78));
}

.wallet-hero-card span,
.wallet-hero-card em {
  color: rgba(248, 240, 216, 0.66);
  font-style: normal;
}

.wallet-hero-card strong {
  color: var(--gold);
  font-family: Consolas, monospace;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.growth-title {
  margin: 8px 0 10px;
  color: var(--text);
  font-size: var(--ui-title-size);
  line-height: var(--ui-title-line);
  letter-spacing: 0;
  font-weight: 950;
}

.personal-hero .growth-title {
  font-size: var(--ui-title-size);
  line-height: var(--ui-title-line);
  letter-spacing: 0;
}

.growth-benefit-line {
  margin: 0;
  white-space: nowrap;
  line-height: 1.45;
  position: relative;
  z-index: 1;
}

.growth-score {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(160deg, rgba(255, 63, 79, 0.12), rgba(255, 184, 74, 0.1)),
    rgba(255, 255, 255, 0.045);
}

.growth-score::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed rgba(255, 209, 102, 0.22);
  border-radius: 24px;
}

.growth-score span,
.growth-score em {
  color: rgba(248, 240, 216, 0.66);
  font-style: normal;
}

.growth-score strong {
  color: var(--gold);
  font-family: Consolas, monospace;
  font-size: 72px;
  line-height: 0.9;
}

.growth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 22px;
}

.wallet-ledger {
  margin-top: 22px;
}

.profile-card {
  min-height: auto;
}

.profile-card-head {
  align-items: center;
  margin-bottom: 20px;
}

.profile-account-pill {
  max-width: 100%;
  border: 1px solid rgba(54, 245, 255, 0.28);
  border-radius: 18px;
  padding: 10px 14px;
  color: var(--cyan);
  background: rgba(54, 245, 255, 0.07);
  font-family: Consolas, monospace;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.profile-form {
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(160px, 1fr)) auto;
  align-items: end;
}

.profile-form .primary-btn {
  align-self: end;
}

.profile-password-wrap input {
  width: 100%;
  padding-right: 58px;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
  border-color: rgba(54, 245, 255, 0.2);
  box-shadow: none;
}

.profile-password-reveal:focus {
  outline: none;
  box-shadow: none;
}

.wallet-filter {
  margin: 14px 0 18px;
}

.wallet-filter .primary-btn,
.invite-filter .primary-btn,
.notice-search-form .primary-btn {
  justify-self: start;
  align-self: end;
  width: auto;
}

.wallet-admin-search {
  grid-template-columns: minmax(280px, 340px) auto;
  align-items: end;
}

.wallet-search-btn {
  justify-self: start;
  align-self: end;
  width: auto;
  min-width: var(--ui-button-min-width);
}

.wallet-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(104px, 1fr));
  gap: 10px;
  justify-self: end;
  align-items: center;
  width: min(100%, 280px);
}

.wallet-row-btn {
  width: 100%;
  min-width: 0;
}

.invite-filter {
  margin: 14px 0 18px;
}

.invite-list {
  display: grid;
  gap: 12px;
}

.invite-item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.invite-item div {
  display: grid;
  gap: 6px;
}

.invite-item span {
  color: var(--muted);
  font-size: 13px;
}

.invite-item strong {
  color: var(--text);
}

.growth-card {
  position: relative;
  min-height: 260px;
  border: 1px solid rgba(255, 184, 74, 0.2);
  border-radius: 32px;
  padding: 28px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 209, 102, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(18, 24, 40, 0.92), rgba(8, 10, 18, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.growth-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -100px;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  border: 1px solid rgba(255, 63, 79, 0.2);
}

.growth-card-kicker {
  color: var(--cyan);
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.28em;
}

.growth-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.growth-card-head h2 {
  margin: 10px 0 0;
  font-size: var(--ui-title-size);
  line-height: var(--ui-title-line);
  letter-spacing: 0;
}

.referral-card p {
  max-width: 680px;
  color: rgba(248, 240, 216, 0.68);
  line-height: 1.8;
}

.ref-code {
  display: inline-flex;
  margin: 16px 0 18px;
  padding: 14px 20px;
  border: 1px solid rgba(255, 184, 74, 0.42);
  border-radius: 18px;
  color: #ffd166;
  font-family: Consolas, monospace;
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: 0.16em;
  background:
    linear-gradient(90deg, rgba(255, 63, 79, 0.1), rgba(255, 184, 74, 0.12)),
    rgba(255, 184, 74, 0.06);
  box-shadow: inset 0 0 28px rgba(255, 184, 74, 0.08);
}

.copy-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.copy-line input {
  width: 100%;
  border-color: rgba(255, 184, 74, 0.2);
  color: rgba(248, 240, 216, 0.9);
  background: rgba(3, 6, 12, 0.78);
}

.referral-copy-btn {
  justify-self: start;
  width: 160px;
  min-width: 160px;
}

.growth-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.growth-metrics div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.045);
}

.growth-metrics span {
  color: rgba(248, 240, 216, 0.58);
}

.growth-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-family: Consolas, monospace;
  font-size: 42px;
}

.growth-ledger,
.referral-admin-panel {
  border: 1px solid rgba(255, 184, 74, 0.18);
  border-radius: 32px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(18, 24, 40, 0.9), rgba(8, 10, 18, 0.98)),
    radial-gradient(circle at 8% 0%, rgba(255, 63, 79, 0.12), transparent 34%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.growth-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.growth-section-head h2 {
  margin: 6px 0 8px;
  font-size: var(--ui-title-size);
  line-height: var(--ui-title-line);
  letter-spacing: 0;
}

.growth-section-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 184, 74, 0.28);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--gold);
  background: rgba(255, 184, 74, 0.07);
  line-height: 1;
  white-space: nowrap;
}

.referral-admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.referral-audit-card {
  border: 1px solid rgba(255, 184, 74, 0.16);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 209, 102, 0.1), transparent 28%),
    rgba(255, 255, 255, 0.04);
}

.audit-card-top,
.audit-card-metrics {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.audit-card-top strong {
  display: block;
  font-size: 18px;
}

.audit-card-top code {
  color: var(--gold);
  letter-spacing: 0.08em;
}

.audit-card-top span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #12050a;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--amber));
  font-weight: 900;
}

.audit-card-metrics {
  justify-content: flex-start;
  margin: 18px 0;
}

.audit-card-metrics b {
  min-width: 110px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.audit-card-metrics em {
  display: block;
  color: var(--gold);
  font-style: normal;
  font-family: Consolas, monospace;
  font-size: 30px;
}

.audit-card-metrics span,
.referral-audit-card p {
  color: rgba(248, 240, 216, 0.62);
}

.admin-console {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.admin-page .admin-console {
  overflow: hidden;
}

.admin-menu {
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.admin-menu h1 {
  margin: 8px 0 24px;
  font-size: var(--ui-title-size);
  line-height: var(--ui-title-line);
  letter-spacing: 0;
}

.admin-menu button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 184, 74, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--paper);
  text-align: left;
  cursor: pointer;
}

.admin-menu button.active {
  border-color: rgba(255, 184, 74, 0.88);
  color: #0b0710;
  background:
    linear-gradient(90deg, #ff3f4f 0%, #ff8a33 54%, #ffd766 100%);
  box-shadow:
    0 0 0 1px rgba(255, 215, 102, 0.3) inset,
    0 14px 34px rgba(255, 92, 50, 0.28);
  font-weight: 900;
}

.admin-panel {
  padding: 28px;
  overflow: auto;
  min-height: 0;
}

.admin-block h2,
.admin-subcard-head strong,
.growth-card h2,
.growth-ledger h2,
.referral-admin-panel h2 {
  font-size: var(--ui-title-size);
  line-height: var(--ui-title-line);
  letter-spacing: 0;
}

.admin-page .admin-panel {
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 140px;
  overscroll-behavior: contain;
  min-width: 0;
}

.admin-form.separated {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-subcard {
  position: relative;
  margin-top: 18px;
  border: 1px solid rgba(255, 184, 74, 0.16);
  border-radius: 24px;
  padding: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 100% 0%, rgba(255, 184, 74, 0.08), transparent 34%);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.admin-subcard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 63, 79, 0.18), transparent 32%, rgba(54, 245, 255, 0.1));
  opacity: 0.35;
}

.admin-subcard-query {
  border-color: rgba(54, 245, 255, 0.16);
  background:
    linear-gradient(145deg, rgba(10, 16, 30, 0.72), rgba(255, 255, 255, 0.018)),
    radial-gradient(circle at 0% 0%, rgba(54, 245, 255, 0.07), transparent 34%);
}

.admin-subcard-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-subcard-head span {
  color: var(--danger);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.admin-subcard-head strong {
  color: var(--paper);
  font-size: 20px;
}

.admin-subcard .admin-form,
.admin-subcard .config-list {
  position: relative;
  z-index: 1;
}

.ai-config-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ai-config-cards .admin-subcard {
  margin-top: 0;
}

.ai-config-cards .admin-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-config-runtime,
.ai-config-actions {
  grid-column: 1 / -1;
}

.ai-config-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 4px;
}

.audit-filter-form {
  margin: 16px 0 22px;
}

.audit-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 12px 0 24px;
  color: var(--muted);
}

.config-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.config-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.config-card-head,
.config-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.config-card-head {
  margin-bottom: 14px;
}

.config-card-head strong {
  font-size: var(--ui-title-size);
  line-height: var(--ui-title-line);
  letter-spacing: 0;
}

.compact-form {
  margin: 0;
}

.config-field {
  display: grid;
  gap: 8px;
}

.config-field span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.config-actions {
  justify-content: flex-end;
  margin-top: 14px;
}

.status-online,
.status-offline {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.status-online {
  color: var(--cyan);
  background: rgba(54, 245, 255, 0.1);
}

.status-offline {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.danger-btn {
  border-color: rgba(255, 63, 79, 0.45);
  color: #ff7d86;
}

.restore-btn {
  border-color: rgba(54, 245, 255, 0.45);
  color: var(--cyan);
}

.credit-detail-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.credit-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.credit-detail-card div {
  display: grid;
  gap: 5px;
}

.credit-detail-card span {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .app-page {
    padding: 14px;
  }

  .app-page .app-layout,
  .tool-detail-layout,
  .admin-console,
  .growth-hero,
  .wallet-hero-stack,
  .growth-grid,
  .profile-form,
  .referral-admin-grid,
  .form-grid,
  .image-control-group,
  .question-row,
  .image-result-card,
  .credit-detail-card,
  .invite-item {
    grid-template-columns: 1fr;
  }

  .app-page .side-rail,
  .tool-detail-aside {
    position: static;
    min-height: auto;
  }

  .market-head,
  .market-card-top,
  .market-card-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .quota-strip {
    grid-template-columns: 1fr;
  }

  .tool-market-grid {
    grid-template-columns: 1fr;
  }

  .image-set-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-menu {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .image-result-copy {
    border-left: 0;
    border-top: 1px solid rgba(255, 209, 102, 0.18);
    padding-left: 0;
    padding-top: 18px;
  }
}

@media (max-width: 620px) {
  .cyber-stage {
    padding: 14px;
  }

  .cyber-title {
    font-size: 50px;
  }

  .cyber-login-inner {
    padding: 22px;
  }

  .cyber-ticker {
    display: none;
  }

  .cyber-entry-nav {
    left: 14px;
    right: 14px;
    justify-content: center;
  }

  .stage {
    padding: 14px;
  }

  .brand-title {
    font-size: 50px;
  }

  .image-set-grid {
    grid-template-columns: 1fr;
  }

  .login-inner {
    padding: 22px;
  }

  .ticker {
    display: none;
  }
}
