:root {
  --black: #171717;
  --white: #f7f7f7;
  --green: #17f700;
  --soft: rgba(247, 247, 247, 0.72);
  --muted: rgba(247, 247, 247, 0.45);
  --panel: rgba(23, 23, 23, 0.72);
  --panel-2: rgba(247, 247, 247, 0.055);
  --line: rgba(247, 247, 247, 0.16);
  --line-strong: rgba(247, 247, 247, 0.34);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--black);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  font-family: "Noto Sans SC", system-ui, sans-serif;
  background: var(--black);
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

.liquid-field {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--black);
  pointer-events: none;
}

#flowCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.mouse-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(23, 247, 0, 0.12) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s;
}

.mouse-glow.active {
  opacity: 1;
}

.app-shell {
  min-height: 100vh;
  padding: 0;
}

.hero-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2.5rem;
  pointer-events: none;
}

.hero-header > * {
  pointer-events: auto;
}

.hero-logo {
  opacity: 0;
  animation: fadeSlideIn 0.8s 0.2s ease both;
}

.hero-logo svg {
  display: block;
}

.hero-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  animation: fadeSlideIn 0.8s 0.4s ease both;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1.6rem;
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.02rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta:hover {
  color: var(--black);
  background: var(--white);
  box-shadow: 0 0 40px rgba(23, 247, 0, 0.25);
}

.hero-cta:hover .cta-arrow {
  transform: translateX(4px);
}

.cta-arrow {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.auth-screen {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.auth-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 6rem 4rem;
}

.hero-spin-text {
  position: absolute;
  left: 6vw;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  animation: fadeIn 1s 0.6s ease both;
}

.spin-svg {
  width: clamp(90px, 10vw, 130px);
  height: clamp(90px, 10vw, 130px);
  animation: spinSlow 20s linear infinite;
}

.hero-geo {
  position: absolute;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  animation: fadeSlideIn 1s 0.8s ease both;
}

.geo-svg {
  width: clamp(180px, 22vw, 320px);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.08));
}

.hero-footer {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 0.4rem;
  justify-items: center;
  opacity: 0;
  animation: fadeIn 1s 1.2s ease both;
}

.hero-hint {
  margin: 0;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
}

.hero-hint-sub {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.3rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(1.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroTextEnter {
  from { opacity: 0; transform: translateY(3rem) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

.hero-copy,
.hero-header,
.auth-card,
.rail,
.stage {
  position: relative;
  z-index: 1;
}

.hero-copy {
  text-align: center;
  opacity: 0;
  animation: heroTextEnter 1s 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.kicker {
  margin: 0 0 0.3rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 1.65rem;
  line-height: 1;
}

.hero-copy h2 {
  display: grid;
  gap: 0;
  margin: 0;
  font-size: clamp(5rem, 11vw, 12rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-line {
  display: block;
  color: var(--white);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.hero-line:hover {
  transform: skewX(-3deg) scale(1.02);
}

.hero-line.green {
  color: var(--green);
  text-shadow: 0 0 80px rgba(23, 247, 0, 0.3);
}

.hero-line em {
  font-style: normal;
  color: var(--green);
  text-shadow: 0 0 80px rgba(23, 247, 0, 0.3);
}

h3 {
  margin-bottom: 0;
  font-size: 1.55rem;
  line-height: 1.16;
}

h4 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.hero-stats span {
  position: relative;
  display: grid;
  gap: 0.45rem;
  min-height: 7rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 247, 247, 0.055);
  color: var(--soft);
}

.hero-stats span::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(23, 247, 0, 0.16), transparent);
  transform: translateX(-120%);
  content: "";
  animation: cardSweep 4.2s ease-in-out infinite;
}

.hero-stats span:nth-child(2)::after {
  animation-delay: -1.4s;
}

.hero-stats span:nth-child(3)::after {
  animation-delay: -2.8s;
}

.hero-stats b {
  color: var(--white);
  font-size: 2rem;
}

@keyframes cardSweep {
  45%,
  100% {
    transform: translateX(120%);
  }
}

.auth-card,
.rail,
.view-panel,
.composer,
.result-panel,
.balance-panel,
.profile-card,
.payment-box,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(23, 23, 23, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 2rem;
  width: min(430px, calc(100vw - 2rem));
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: rgba(247, 247, 247, 0.06);
  font-size: 1.35rem;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.segment {
  min-height: 2.7rem;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.segment.active {
  color: var(--black);
  background: var(--green);
}

label,
.package-field {
  display: grid;
  gap: 0.5rem;
  color: var(--soft);
  font-size: 0.85rem;
  font-weight: 800;
}

.inline-code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.captcha-button {
  min-height: 2.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
  background: rgba(247, 247, 247, 0.055);
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  background: rgba(247, 247, 247, 0.085);
  outline: none;
}

input,
select {
  min-height: 2.9rem;
  padding: 0 0.9rem;
}

option {
  color: var(--black);
}

textarea {
  min-height: 15.5rem;
  resize: vertical;
  padding: 1rem;
  line-height: 1.7;
}

input::placeholder,
textarea::placeholder {
  color: rgba(247, 247, 247, 0.34);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.22rem rgba(23, 247, 0, 0.14);
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-text {
  position: relative;
  min-height: 2.9rem;
  overflow: hidden;
  border-radius: 8px;
  font-weight: 900;
}

.primary-button {
  border: 0;
  color: var(--black);
  background: var(--green);
  box-shadow: 0 0 32px rgba(23, 247, 0, 0.22);
}

.primary-button::after,
.secondary-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(247, 247, 247, 0.42), transparent);
  transform: translateX(-120%);
  content: "";
  transition: transform 0.5s ease;
}

.primary-button:hover::after,
.secondary-button:hover::after {
  transform: translateX(120%);
}

.primary-button.wide {
  width: 100%;
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.secondary-button,
.ghost-button,
.icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--white);
  background: rgba(247, 247, 247, 0.055);
  text-decoration: none;
}

.secondary-button {
  padding: 0 1rem;
}

.ghost-button,
.icon-text {
  min-height: 2.25rem;
  padding: 0 0.8rem;
  font-size: 0.82rem;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.6;
}

.workspace {
  display: grid;
  grid-template-columns: 17.5rem minmax(0, 1fr);
  gap: 1.2rem;
  min-height: calc(100vh - 4rem);
}

.mobile-top {
  display: none;
}

.rail {
  position: sticky;
  top: 2rem;
  display: flex;
  height: calc(100vh - 4rem);
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.1rem;
}

.nav-stack {
  display: grid;
  gap: 0.55rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--soft);
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.nav-item span {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--green);
}

.nav-item.active {
  border-color: rgba(23, 247, 0, 0.42);
  color: var(--white);
  background: rgba(23, 247, 0, 0.1);
}

.balance-panel {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.balance-panel p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.balance-panel strong {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: 2.6rem;
  line-height: 1;
}

.balance-panel small {
  color: var(--muted);
  font-size: 0.85rem;
}

.balance-panel.large {
  min-height: 12rem;
  align-content: center;
}

.balance-panel.large span {
  color: var(--muted);
  font-size: 0.82rem;
}

.rail-contact {
  display: grid;
  gap: 0.45rem;
  min-height: 5.1rem;
  padding: 1rem;
  border: 1px solid rgba(23, 247, 0, 0.58);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(23, 247, 0, 0.18), rgba(247, 247, 247, 0.045)),
    rgba(23, 23, 23, 0.68);
  box-shadow: 0 0 28px rgba(23, 247, 0, 0.12);
  text-decoration: none;
}

.rail-contact span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.rail-contact strong {
  color: var(--white);
  font-size: 1.16rem;
  letter-spacing: 0;
}

.rail-contact:hover {
  border-color: rgba(23, 247, 0, 0.92);
  background:
    linear-gradient(135deg, rgba(23, 247, 0, 0.26), rgba(247, 247, 247, 0.07)),
    rgba(23, 23, 23, 0.74);
}

.profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding: 0.9rem;
}

.profile-card p {
  margin-bottom: 0.15rem;
  font-weight: 900;
}

.profile-card span {
  display: block;
  max-width: 8.8rem;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.75rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stage {
  display: grid;
  align-content: start;
  gap: 1.2rem;
  min-width: 0;
}

.topbar,
.section-head,
.composer-head,
.composer-actions,
.table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.topbar {
  min-height: 5.8rem;
  padding: 0.5rem 0.25rem;
}

.topbar h2 {
  display: block;
  margin-bottom: 0;
  color: var(--white);
  font-size: 2.6rem;
  line-height: 1;
  -webkit-text-stroke: 0;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.status-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(247, 247, 247, 0.055);
  font-size: 0.76rem;
  font-weight: 900;
}

.status-strip b {
  margin-left: 0.25rem;
  color: var(--green);
}

.status-dot::before {
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.5rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
  content: "";
}

.view-panel {
  padding: 1.1rem;
}

.creator-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 1.1rem;
}

.composer {
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  box-shadow: none;
}

.composer-head select {
  max-width: 11.5rem;
}

.tool-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.image-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(247, 247, 247, 0.035);
}

.size-field {
  display: grid;
  gap: 0.45rem;
}

.size-field > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.size-picker-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-height: 3rem;
  width: 100%;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  background: rgba(247, 247, 247, 0.055);
  text-align: left;
}

.size-picker-button strong {
  font-size: 0.92rem;
}

.size-picker-button small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.custom-size {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.size-card {
  position: relative;
  width: min(660px, calc(100vw - 1.2rem));
  max-height: min(92vh, 760px);
  overflow-y: auto;
  padding: 1rem;
  border: 1px solid rgba(247, 247, 247, 0.12);
  border-radius: 28px;
  color: var(--white);
  background: rgba(20, 20, 24, 0.96);
  box-shadow: var(--shadow);
}

.size-head {
  padding: 0.7rem 0.2rem 0.9rem;
}

.size-head h3 {
  margin: 0;
  font-size: 1.12rem;
}

.size-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.size-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 16px;
  background: rgba(247, 247, 247, 0.045);
}

.size-tab {
  min-height: 3.1rem;
  border: 0;
  border-radius: 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 900;
}

.size-tab.active {
  color: var(--white);
  background: rgba(247, 247, 247, 0.16);
}

.size-section {
  margin-top: 1.35rem;
}

.size-section-title {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.size-resolution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.size-choice,
.ratio-choice,
.custom-ratio-button {
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--soft);
  background: rgba(247, 247, 247, 0.035);
  font-weight: 900;
}

.size-choice {
  min-height: 3.5rem;
  font-size: 1.05rem;
}

.size-choice.active,
.ratio-choice.active,
.custom-ratio-button.active {
  border-color: rgba(62, 132, 255, 0.9);
  color: #9cc5ff;
  background: linear-gradient(180deg, rgba(62, 132, 255, 0.2), rgba(62, 132, 255, 0.08));
}

.size-ratio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.ratio-choice {
  display: grid;
  min-height: 5.75rem;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
}

.ratio-choice i {
  display: block;
  border: 2px solid currentColor;
  border-radius: 4px;
  opacity: 0.72;
}

.ratio-choice span {
  font-size: 0.82rem;
}

.custom-ratio-button {
  min-height: 3.5rem;
  width: 100%;
  margin-top: 0.75rem;
}

.custom-ratio-field {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.custom-size-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.size-result {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 16px;
  background: rgba(247, 247, 247, 0.055);
}

.size-result span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.size-result strong {
  font-size: 1.45rem;
  letter-spacing: 0;
}

.size-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1rem;
}

.compression-field {
  align-content: end;
}

.compression-field span {
  display: flex;
  justify-content: space-between;
}

input[type="range"] {
  min-height: 2.9rem;
  padding: 0;
  accent-color: var(--green);
}

.tool-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 4.5rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  background: rgba(247, 247, 247, 0.055);
  text-align: left;
}

.tool-option span {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 8px;
  color: var(--black);
  background: var(--white);
  font-size: 0.74rem;
  font-weight: 900;
}

.tool-option strong {
  font-size: 0.95rem;
}

.tool-option.active {
  border-color: rgba(23, 247, 0, 0.56);
  background: rgba(23, 247, 0, 0.1);
}

.tool-option.active span {
  background: var(--green);
}

.upload-zone {
  position: relative;
  display: grid;
  min-height: 8.8rem;
  place-items: center;
  overflow: hidden;
  border: 1px dashed rgba(247, 247, 247, 0.34);
  border-radius: 8px;
  background: rgba(247, 247, 247, 0.045);
}

.upload-zone.dragging {
  border-color: var(--green);
  background: rgba(23, 247, 0, 0.08);
}

.upload-zone input {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  cursor: pointer;
}

.upload-copy {
  display: grid;
  gap: 0.4rem;
  padding: 1.4rem;
  color: var(--soft);
  text-align: center;
}

.upload-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

#uploadPreview {
  width: 100%;
  max-height: 16rem;
  object-fit: contain;
  background:
    linear-gradient(45deg, rgba(247, 247, 247, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(247, 247, 247, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(247, 247, 247, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(247, 247, 247, 0.08) 75%);
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
}

.icon-button {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--white);
  background: rgba(23, 23, 23, 0.9);
  font-size: 1.35rem;
}

.cost-preview {
  display: grid;
  gap: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.cost-preview b {
  color: var(--white);
  font-size: 1.25rem;
}

.composer-actions .primary-button {
  min-width: 9.75rem;
}

.result-panel {
  display: grid;
  gap: 0.9rem;
  align-content: start;
  padding: 1rem;
  box-shadow: none;
}

.result-frame {
  display: grid;
  min-height: 35rem;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 50%, rgba(23, 247, 0, 0.07), transparent 34%),
    linear-gradient(45deg, rgba(247, 247, 247, 0.035) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(247, 247, 247, 0.035) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(247, 247, 247, 0.035) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(247, 247, 247, 0.035) 75%);
  background-position:
    center,
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size:
    auto,
    20px 20px,
    20px 20px,
    20px 20px,
    20px 20px;
}

.result-frame img {
  width: 100%;
  height: 100%;
  max-height: 44rem;
  object-fit: contain;
  background: transparent;
}

.empty-state {
  display: grid;
  gap: 0.6rem;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.empty-state span {
  font-size: 2.8rem;
}

.empty-state p,
.result-meta p,
.result-meta span {
  margin: 0;
}

.result-meta p {
  font-weight: 900;
}

.result-meta span {
  color: var(--muted);
  font-size: 0.82rem;
}

.wallet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.46fr);
  gap: 1.1rem;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.7fr);
  gap: 1rem;
}

.pricing-panel,
.password-form {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.pricing-grid {
  display: grid;
  gap: 0.75rem;
}

.pricing-grid div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.2rem;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pricing-grid span {
  color: var(--muted);
  font-weight: 800;
}

.pricing-grid b {
  color: var(--white);
}

.wallet-main,
.wallet-side {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.recharge-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12rem auto;
  align-items: end;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.package-option {
  display: grid;
  gap: 0.35rem;
  min-height: 4.6rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--white);
  background: rgba(247, 247, 247, 0.055);
  text-align: left;
}

.package-option strong {
  font-size: 1.25rem;
}

.package-option span {
  color: var(--muted);
  font-size: 0.75rem;
}

.package-option.active {
  border-color: rgba(23, 247, 0, 0.62);
  background: rgba(23, 247, 0, 0.1);
}

.payment-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 11.25rem;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem;
}

.payment-box img {
  width: 11.25rem;
  height: 11.25rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: var(--white);
}

.payment-box .secondary-button {
  width: fit-content;
}

.recharge-list {
  display: grid;
  gap: 0.65rem;
}

.recharge-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.recharge-item div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.recharge-item strong {
  font-size: 1.1rem;
}

.recharge-item span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recharge-item em {
  flex: 0 0 auto;
  padding: 0.3rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.recharge-item em.ok,
.recharge-item em.pending {
  color: var(--black);
  background: var(--green);
}

.recharge-item em.bad {
  color: var(--black);
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.art-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.art-card .thumb {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  background: rgba(247, 247, 247, 0.055);
}

.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.art-card-body {
  display: grid;
  gap: 0.5rem;
  padding: 0.8rem;
}

.art-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  color: var(--soft);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.art-card-body > span {
  color: var(--muted);
  font-size: 0.75rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.tag {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: var(--black);
  background: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
}

.tag.failed {
  color: var(--black);
  background: var(--white);
}

.admin-grid {
  display: grid;
  gap: 1rem;
}

.overview-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.overview-strip div {
  display: grid;
  gap: 0.38rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.overview-strip span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.overview-strip b {
  font-size: 1.9rem;
}

.admin-form {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.7fr 1fr auto;
  align-items: end;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.admin-tables {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
}

.table-wrap {
  overflow: auto;
  box-shadow: none;
}

.table-head {
  padding: 0.9rem 1rem 0;
}

table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.75rem;
}

td span {
  color: var(--muted);
  font-size: 0.75rem;
}

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 20;
  max-width: min(420px, calc(100vw - 3rem));
  padding: 0.9rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--white);
  background: rgba(23, 23, 23, 0.94);
  box-shadow: var(--shadow);
}

.wide-empty,
.mini-empty {
  min-height: 220px;
}

@media (max-width: 1180px) {
  .auth-screen,
  .workspace,
  .creator-layout,
  .wallet-layout,
  .profile-layout,
  .admin-tables {
    grid-template-columns: 1fr;
  }

  .rail {
    position: relative;
    top: 0;
    height: auto;
  }

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

  .profile-card {
    margin-top: 0;
  }

  .auth-hero {
    min-height: 560px;
    padding: 4rem 2rem;
  }

  .hero-spin-text,
  .hero-geo {
    display: none;
  }

  .result-frame {
    min-height: 420px;
  }

  .recharge-form,
  .admin-form {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding: 0.8rem;
  }

  .auth-screen {
    gap: 0.8rem;
    min-height: calc(100vh - 1.6rem);
  }

  .auth-hero {
    min-height: 540px;
    padding: 1.3rem;
  }

  .auth-card,
  .view-panel,
  .composer,
  .result-panel {
    padding: 0.9rem;
  }

  .hero-copy h2 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

  .hero-header {
    padding: 1rem 1.2rem;
  }

  .hero-footer {
    bottom: 1.5rem;
  }

  .tool-switch,
  .image-options,
  .custom-size,
  .package-grid,
  .overview-strip,
  .recharge-form,
  .admin-form,
  .payment-box,
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .workspace {
    gap: 0.8rem;
  }

  .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(23, 23, 23, 0.78);
    backdrop-filter: blur(16px);
  }

  .rail .brand-row {
    display: none;
  }

  .rail {
    padding: 0.8rem;
  }

  .nav-stack {
    grid-template-columns: 1fr 1fr;
  }

  .topbar,
  .section-head,
  .composer-head,
  .composer-actions,
  .table-head {
    align-items: stretch;
    flex-direction: column;
  }

  .status-strip {
    justify-content: flex-start;
  }

  .composer-head select,
  .composer-actions .primary-button,
  .payment-box .secondary-button {
    width: 100%;
    max-width: none;
  }

  textarea {
    min-height: 210px;
  }

  .payment-box img {
    justify-self: center;
  }
}
