:root {
  color-scheme: dark;
  --bg: #030405;
  --panel: #080a0d;
  --panel-2: #11141a;
  --text: #f5f7fb;
  --muted: rgba(245, 247, 251, 0.62);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #f2f2ee;
  --blue: #72d6ff;
  --orange: #ff8964;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

button {
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  display: flex;
  width: 74px;
  flex-direction: column;
  align-items: center;
  border-right: 1px solid var(--line);
  background: #05070a;
}

.logo {
  position: relative;
  isolation: isolate;
  display: inline-grid;
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  margin: 8.5px 0 66.5px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.logo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo::after {
  position: absolute;
  inset: -35% auto -35% -85%;
  z-index: 2;
  width: 52%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.06) 30%,
    rgba(255, 255, 255, 0.48) 50%,
    rgba(255, 255, 255, 0.08) 70%,
    rgba(255, 255, 255, 0)
  );
  content: "";
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translateZ(0) skew(-18deg);
  animation: side-logo-sweep 3.2s ease-in-out infinite;
}

@keyframes side-logo-sweep {
  0%,
  18% {
    opacity: 0;
    transform: translateZ(0) skew(-18deg);
  }
  28% {
    opacity: 1;
  }
  52% {
    opacity: 1;
    transform: translate3d(260%, 0, 0) skew(-18deg);
  }
  72%,
  100% {
    opacity: 0;
    transform: translate3d(320%, 0, 0) skew(-18deg);
  }
}

.menu,
.account {
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.menu-item,
.utility {
  display: flex;
  width: 62px;
  min-height: 52px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.menu-item.active,
.menu-item:hover,
.utility:hover {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.icon {
  font-size: 18px;
  line-height: 1;
}

.account {
  margin-top: auto;
  padding-bottom: 16px;
}

.balance {
  width: 62px;
  padding: 8px 6px;
  border: 1px solid rgba(82, 132, 255, 0.55);
  border-radius: 8px;
  background: rgba(31, 55, 113, 0.55);
  color: #cdd9ff;
  font-size: 11px;
  line-height: 1.2;
}

.balance strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 16px;
}

.avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe19f, #ff7bb6);
}

.name {
  max-width: 64px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.app {
  margin-left: 74px;
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  position: relative;
  display: grid;
  min-height: 560px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 51% 52%, rgba(255, 255, 255, 0.14), transparent 9%),
    radial-gradient(circle at 53% 53%, rgba(120, 220, 255, 0.18), transparent 18%),
    radial-gradient(circle at 58% 39%, rgba(255, 112, 69, 0.2), transparent 18%),
    #020304;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  inset: 0;
  pointer-events: none;
}

.hero::before {
  background:
    linear-gradient(180deg, rgba(2, 3, 4, 0) 58%, var(--bg) 96%),
    radial-gradient(ellipse at center, transparent 0 30%, rgba(0, 0, 0, 0.78) 67%);
}

.hero::after {
  background: radial-gradient(circle at 50% 48%, transparent 0 190px, rgba(0, 0, 0, 0.36) 390px);
}

.vortex {
  position: absolute;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(
      from 205deg,
      transparent 0deg,
      rgba(79, 210, 255, 0.7) 34deg,
      transparent 88deg,
      rgba(255, 111, 73, 0.76) 138deg,
      transparent 205deg,
      rgba(255, 255, 255, 0.25) 242deg,
      transparent 310deg
    );
  filter: blur(9px);
  opacity: 0.78;
  transform: rotate(-18deg) scaleY(0.72);
}

.vortex::before {
  position: absolute;
  inset: 17%;
  border-radius: 50%;
  background: #020304;
  box-shadow:
    inset 0 0 58px rgba(97, 206, 255, 0.18),
    0 0 72px rgba(255, 112, 76, 0.18);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100vw - 120px));
  padding: 72px 20px 96px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.4vw, 78px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.24);
}

.hero p {
  margin: 28px 0 34px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
}

.workbench {
  margin: 0 auto;
  width: 210px;
  height: 58px;
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0 34px;
  border-radius: 100px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transform: translateZ(0);
  transition:
    box-shadow 0.3s,
    transform 0.3s;
}

.workbench:active {
  transform: translateY(1px);
}

.workbench-shimmer {
  position: absolute;
  inset: 0;
  z-index: -30;
  overflow: visible;
  filter: blur(2px);
  container-type: size;
}

.workbench-shimmer-slide {
  position: absolute;
  inset: 0;
  display: block;
  height: 100cqh;
  aspect-ratio: 1 / 1;
  animation: workbench-shimmer-slide 3s ease-in-out infinite alternate;
}

.workbench-shimmer-spin {
  position: absolute;
  inset: -100%;
  display: block;
  width: auto;
  background: conic-gradient(from 225deg, transparent 0, #fff 90deg, transparent 90deg);
  animation: workbench-spin-around 6s linear infinite;
}

.workbench-label {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  font-size: 16px;
  font-weight: 650;
  line-height: 1;
  text-align: center;
  white-space: pre-wrap;
}

.workbench-highlight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 6px 16px;
  border-radius: 100px;
  pointer-events: none;
  box-shadow: inset 0 -8px 10px rgba(255, 255, 255, 0.12);
  transform: translateZ(0);
  transition: box-shadow 0.3s;
}

.workbench-inner-bg {
  position: absolute;
  inset: 2px;
  z-index: -20;
  border-radius: 100px;
  background: #000;
  pointer-events: none;
}

.workbench:hover {
  transform: translateY(-1px);
}

.workbench:hover .workbench-highlight {
  box-shadow: inset 0 -6px 10px rgba(255, 255, 255, 0.25);
}

.workbench:active .workbench-highlight {
  box-shadow: inset 0 -10px 10px rgba(255, 255, 255, 0.25);
}

@keyframes workbench-shimmer-slide {
  100% {
    transform: translate(calc(-100% + 100cqw));
  }
}

@keyframes workbench-spin-around {
  0% {
    transform: translateZ(0) rotate(0deg);
  }
  15%,
  35% {
    transform: translateZ(0) rotate(90deg);
  }
  65%,
  85% {
    transform: translateZ(0) rotate(270deg);
  }
  100% {
    transform: translateZ(0) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .workbench-shimmer-slide,
  .workbench-shimmer-spin {
    animation: none;
  }
}

.inspiration {
  position: relative;
  z-index: 2;
  padding: 0 18px 56px;
  background: var(--bg);
}

.section-head {
  margin: -104px 0 16px;
  padding-left: 0;
}

.section-head p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.section-head h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  letter-spacing: 0;
}

.filters {
  display: flex;
  gap: 10px;
  margin: 0 0 18px;
}

.filter {
  min-width: 58px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.filter.active,
.filter:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.masonry {
  column-count: 7;
  column-gap: 10px;
}

.card {
  position: relative;
  display: inline-block;
  width: 100%;
  min-height: 118px;
  margin: 0 0 10px;
  overflow: hidden;
  border-radius: 8px;
  background: #15171b;
  vertical-align: top;
}

.card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 220ms ease;
}

.card:hover img {
  transform: scale(1.035);
}

.card.video {
  height: 94px;
}

.card.video span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  font-size: 13px;
  font-weight: 700;
}

.card.is-hidden {
  display: none;
}

.studio-view,
.assets-view,
.analyzer-view {
  min-height: 100vh;
  padding: 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 255, 255, 0.82), transparent 26%),
    linear-gradient(135deg, #f6f5ef 0%, #f4f1e8 48%, #eee9df 100%);
  color: #18191c;
}

.studio-grid {
  display: grid;
  min-height: calc(100vh - 32px);
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 16px;
}

.studio-workspace {
  display: grid;
  min-height: calc(100vh - 32px);
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 16px;
}

.studio-create-panel {
  display: flex;
  min-height: calc(100vh - 32px);
  flex-direction: column;
  gap: 14px;
}

.studio-mode-tabs {
  flex: 0 0 auto;
}

.studio-form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 26px 24px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 60px rgba(48, 42, 31, 0.08);
}

.studio-form .generate-button {
  margin-top: auto;
  position: sticky;
  bottom: 10px;
}

.studio-mode-fields.is-hidden {
  display: none;
}

.studio-form select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.68);
  color: #161719;
  font: inherit;
  font-weight: 700;
}

.compact-options,
.generation-modes {
  display: flex;
  gap: 8px;
}

.compact-options .option-button {
  width: 106px;
}

.generation-modes .option-button {
  flex: 1;
}

.text-history-card {
  min-height: 300px;
  margin-top: 22px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.text-history-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.text-history-card button {
  background: transparent;
  color: rgba(24, 25, 28, 0.6);
  font-size: 12px;
  font-weight: 800;
}

.text-history-card p {
  margin: 70px 0 0;
  color: rgba(24, 25, 28, 0.46);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.studio-history-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.studio-history-item {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: #1b1c1f;
  text-align: left;
}

.studio-history-item span {
  overflow: hidden;
  color: rgba(24, 25, 28, 0.56);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-error {
  min-height: 18px;
  margin: 8px 0 10px;
  color: #d34a4a;
  font-size: 12px;
  font-weight: 800;
}

.studio-output-panel {
  position: relative;
  min-height: calc(100vh - 32px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.22);
}

.studio-empty {
  position: absolute;
  top: 42%;
  left: 50%;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translate(-50%, -50%);
  color: rgba(24, 25, 28, 0.58);
  text-align: center;
}

.studio-empty-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 24px rgba(48, 42, 31, 0.08);
}

.studio-empty h3 {
  margin: 0;
  color: #202124;
}

.studio-empty p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.studio-result-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 26px;
}

.studio-result-head h2 {
  margin: 0 0 8px;
}

.studio-result-head span {
  color: rgba(24, 25, 28, 0.58);
  font-weight: 700;
}

.studio-result-head strong {
  padding: 8px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
}

.studio-result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  padding: 0 26px 26px;
}

.studio-result-card {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.studio-result-card img,
.studio-result-card video {
  display: block;
  width: 100%;
}

.studio-result-card.text {
  padding: 18px;
}

.studio-result-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: #202124;
  font: 14px/1.8 inherit;
}

.studio-left {
  display: flex;
  min-height: 0;
  flex-direction: column;
  gap: 16px;
}

.mode-tabs {
  display: grid;
  height: 52px;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.mode {
  border-radius: 12px;
  background: transparent;
  color: rgba(24, 25, 28, 0.72);
  font-weight: 700;
}

.mode.active {
  background: #e9e8e1;
  color: #111;
}

.studio-panel {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 60px rgba(48, 42, 31, 0.08);
}

.studio-left .studio-panel {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 26px 24px;
}

.eyebrow {
  margin: 0 0 4px;
  color: rgba(24, 25, 28, 0.52);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.studio-panel h2,
.assets-head h1 {
  margin: 0;
  font-size: 25px;
  letter-spacing: 0;
}

.field {
  display: grid;
  gap: 12px;
  margin-top: 25px;
  color: #151619;
  font-size: 15px;
  font-weight: 800;
}

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

.field em {
  color: rgba(24, 25, 28, 0.52);
  font-style: normal;
  font-weight: 600;
}

.field textarea,
.field input,
.asset-toolbar input,
.auth-card input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  outline: none;
  background: rgba(255, 255, 255, 0.72);
  color: #151619;
}

.field textarea {
  min-height: 136px;
  resize: vertical;
  padding: 16px;
  font: inherit;
  font-weight: 500;
}

.select-like,
.upload-zone {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #161719;
  font-weight: 700;
}

.select-like::after {
  color: rgba(0, 0, 0, 0.45);
  content: "›";
}

.count-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr) 92px;
  gap: 8px;
}

.option-button,
.style-preset {
  min-height: 38px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: #1a1b1d;
  font-weight: 700;
}

.option-button.active,
.style-preset.active {
  background: #111;
  color: #fff;
}

.count-options input {
  padding: 0 10px;
  font-weight: 600;
}

.upload-zone {
  justify-content: center;
  min-height: 76px;
  border-style: dashed;
}

.style-presets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.generate-button,
.auth-submit {
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  border-radius: 999px;
  background: linear-gradient(180deg, #2e2e2e, #050505);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.25);
  color: #fff;
  font-weight: 800;
}

.history-panel {
  display: flex;
  min-height: calc(100vh - 32px);
  flex-direction: column;
  padding: 26px;
}

.empty-state {
  display: grid;
  flex: 1;
  place-content: center;
  gap: 8px;
  color: rgba(24, 25, 28, 0.48);
  text-align: center;
}

.empty-state strong {
  color: rgba(24, 25, 28, 0.62);
}

.notice-modal,
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
}

.notice-modal.is-hidden,
.auth-modal.is-hidden {
  display: none;
}

.notice-card,
.auth-card {
  position: relative;
  width: min(720px, 100%);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 250, 0.96);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
  color: #17181a;
}

.notice-card {
  padding: 32px;
}

.notice-card h2,
.auth-card h2 {
  margin: 0 0 20px;
}

.notice-card p {
  margin: 0;
  line-height: 1.8;
}

.notice-card strong {
  color: #d34a4a;
}

.notice-close,
.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.55);
  font-size: 24px;
}

.assets-view {
  position: relative;
}

.analyzer-view {
  padding: 0;
  overflow: hidden;
}

.analyzer-view [data-analyzer-app] {
  display: block;
  min-height: 100vh;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.assets-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.login-pill,
.asset-toolbar button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 800;
}

.asset-shell {
  display: grid;
  min-height: calc(100vh - 104px);
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

.asset-filter,
.asset-content {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.asset-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.asset-tab {
  min-height: 42px;
  border-radius: 10px;
  background: transparent;
  color: rgba(24, 25, 28, 0.68);
  text-align: left;
  font-weight: 700;
}

.asset-tab.active,
.asset-tab:hover {
  background: #111;
  color: #fff;
}

.asset-content {
  padding: 16px;
}

.asset-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.asset-toolbar input,
.auth-card input {
  height: 42px;
  padding: 0 14px;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  filter: blur(3px);
  opacity: 0.64;
}

.asset-grid article {
  min-height: 180px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, #d9d5c8, #f5f2e9);
}

.auth-card {
  width: min(420px, 100%);
  padding: 34px 36px;
}

.auth-card p {
  margin: -10px 0 24px;
  color: rgba(24, 25, 28, 0.52);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-bottom: 18px;
  padding: 5px;
  border-radius: 8px;
  background: #efeee8;
}

.auth-tabs button {
  min-height: 38px;
  border-radius: 6px;
  background: transparent;
  color: rgba(24, 25, 28, 0.62);
  font-weight: 800;
}

.auth-tabs button.active {
  background: #111;
  color: #fff;
}

.auth-card input {
  margin-bottom: 12px;
}

.auth-card .is-hidden {
  display: none;
}

.auth-error {
  min-height: 18px;
  margin: 0 0 12px;
  color: #d34a4a;
  font-size: 12px;
}

.policy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 16px;
  color: rgba(24, 25, 28, 0.72);
  font-size: 12px;
}

.policy input {
  width: auto;
  height: auto;
  margin: 0;
}

.auth-submit {
  margin: 0;
}

.auth-submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.auth-links a {
  color: rgba(24, 25, 28, 0.58);
  font-size: 13px;
  text-decoration: none;
}

.account-popover {
  position: fixed;
  left: 7px;
  bottom: 312px;
  z-index: 60;
  display: grid;
  width: 136px;
  gap: 2px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(9, 11, 14, 0.94);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform-origin: bottom left;
  animation: popover-in 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popover-in {
  from { opacity: 0; transform: scale(0.92) translateY(4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.account-popover.is-hidden {
  display: none;
  animation: none;
}

.account-popover button {
  display: grid;
  min-height: 36px;
  align-items: center;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  color: #f1f5fb;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}

.account-popover button:hover {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.account-popover span {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: currentColor;
}

.account-popover svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.account-popover .danger {
  color: #ff8e8e;
}

.account-popover .danger span {
  color: #ff8a8a;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(8px);
}

.profile-modal.is-hidden {
  display: none;
}

.promotion-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 20px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

.promotion-modal.is-hidden {
  display: none;
}

.promotion-card {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 18px;
  border: 1px solid rgba(96, 104, 120, 0.36);
  border-radius: 18px;
  background: #050608;
  color: #f4f6fb;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.promotion-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #c8ccd6;
  font-size: 20px;
}

.promotion-hero,
.promotion-stats article,
.promotion-records,
.promotion-rules,
.promotion-code-card {
  border: 1px solid rgba(96, 104, 120, 0.32);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.promotion-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 22px 20px;
}

.promotion-hero p,
.promotion-code-card span,
.promotion-stats span {
  margin: 0;
  color: rgba(244, 246, 251, 0.56);
  font-size: 13px;
  font-weight: 800;
}

.promotion-hero h2 {
  margin: 10px 0 12px;
  font-size: 24px;
  letter-spacing: 0;
}

.promotion-hero span {
  color: rgba(244, 246, 251, 0.58);
  font-size: 14px;
  font-weight: 700;
}

.promotion-code-card {
  padding: 18px;
}

.promotion-code-card strong {
  display: block;
  margin: 12px 0 14px;
  font-size: 30px;
  letter-spacing: 3px;
}

.promotion-code-card div {
  display: flex;
  gap: 8px;
}

.promotion-code-card button,
.promotion-section-head button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(112, 122, 145, 0.46);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #f4f6fb;
  font-size: 13px;
  font-weight: 800;
}

.promotion-code-card button:last-child,
.promotion-section-head button:first-child {
  background: #f4f5f8;
  color: #101217;
}

#promotionLink {
  grid-column: 1 / -1;
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(96, 104, 120, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 246, 251, 0.6);
  font: inherit;
  font-size: 13px;
}

.promotion-stats {
  display: grid;
  grid-template-columns: repeat(2, 180px);
  gap: 12px;
  margin: 12px 0;
}

.promotion-stats article {
  padding: 18px 16px;
}

.promotion-stats strong {
  display: block;
  margin-top: 12px;
  font-size: 24px;
}

.promotion-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 12px;
}

.promotion-records,
.promotion-rules {
  padding: 18px;
}

.promotion-section-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.promotion-records table {
  width: 100%;
  border-collapse: collapse;
  color: #f4f6fb;
  font-size: 13px;
}

.promotion-records th {
  padding: 12px;
  background: rgba(255, 255, 255, 0.08);
  text-align: left;
}

.promotion-records td {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(244, 246, 251, 0.66);
}

.promotion-records td[colspan] {
  text-align: center;
}

.promotion-rules h3 {
  margin: 0 0 18px;
  font-size: 16px;
}

.promotion-rules p {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 20px;
  color: rgba(244, 246, 251, 0.58);
  font-size: 13px;
  font-weight: 700;
}

.promotion-rules strong {
  color: #f4f6fb;
}

.promotion-message {
  min-height: 18px;
  margin: 10px 0 0;
  color: #78d98a;
  font-size: 13px;
  font-weight: 800;
}

.profile-card {
  position: relative;
  width: min(700px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  background: #eeeeec;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  color: #161719;
}

.profile-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  color: #6b6f78;
  font-size: 20px;
  transition: background 0.12s;
}

.profile-kicker {
  margin: 0;
  color: #6f737a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.profile-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0;
}

.profile-tabs {
  display: inline-grid;
  grid-template-columns: repeat(4, auto);
  gap: 3px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.profile-tabs button {
  min-height: 34px;
  border-radius: 12px;
  background: transparent;
  color: #4e535c;
  font-weight: 700;
}

.profile-tabs button.active {
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
  color: #111;
}

.profile-pane.is-hidden {
  display: none;
}

.profile-summary,
.profile-panel {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
}

.profile-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
}

.profile-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, #ffb36d 0 24%, transparent 25%),
    radial-gradient(circle at 50% 58%, #ffd7b1 0 32%, transparent 33%),
    linear-gradient(135deg, #f7c27a, #8b6dff);
  font-size: 16px;
  color: #fff;
  font-weight: 800;
}

.profile-avatar.large {
  width: 56px;
  height: 56px;
  cursor: pointer;
}

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

.profile-name-row strong {
  font-size: 16px;
}

.profile-name-row span {
  padding: 2px 7px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  color: #666b74;
  font-size: 11px;
  font-weight: 700;
}

.profile-summary p {
  margin: 3px 0 0;
  color: #6c717a;
  font-size: 12px;
  font-weight: 600;
}

.profile-summary em {
  font-style: normal;
}

.profile-balance {
  text-align: center;
}

.profile-balance strong {
  display: block;
  font-size: 22px;
  line-height: 1;
}

.profile-balance span {
  display: block;
  margin-top: 4px;
  color: #777c86;
  font-size: 11px;
  font-weight: 800;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 12px;
}

.profile-panel {
  padding: 14px;
}

.profile-panel.wide {
  margin-bottom: 12px;
}

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

.profile-panel-head h3 {
  margin: 0;
  font-size: 15px;
}

.profile-panel-head span {
  color: #777c86;
  font-size: 12px;
  font-weight: 600;
}

.profile-panel label {
  display: block;
  margin: 8px 0 4px;
  font-size: 13px;
  font-weight: 700;
}

.profile-panel label b {
  color: #d1483e;
}

.profile-avatar-edit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: #777c86;
  font-weight: 600;
  font-size: 13px;
}

.profile-panel input,
.profile-input-wrap {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
}

.profile-panel input {
  padding: 0 14px;
  outline: none;
  color: #161719;
  font: inherit;
  font-weight: 600;
  font-size: 13px;
}

.profile-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px 0 0;
}

.profile-input-wrap input {
  min-height: 34px;
  border: 0;
  background: transparent;
}

.profile-input-wrap span {
  color: #8d929b;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.profile-primary {
  min-width: 100px;
  min-height: 36px;
  margin-top: 6px;
  padding: 0 18px;
  border-radius: 12px;
  background: #0d0e10;
  color: #fff;
  font-weight: 800;
  transition: opacity 0.12s;
}

.profile-primary:disabled {
  cursor: progress;
  opacity: 0.7;
}

.profile-message {
  min-height: 14px;
  margin: 6px 0 0;
  color: #d34a4a;
  font-size: 12px;
  font-weight: 700;
}

.profile-message.is-success {
  color: #2f9a55;
}

.profile-info-row {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  color: #6b7079;
  font-weight: 600;
}

.profile-info-row:last-child { display:flex; justify-content:space-between; align-items:center; }
.profile-info-row strong {
  overflow: hidden;
  color: #17181a;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
  flex-shrink: 0;
}

.profile-link-card {
  display: grid;
  width: 100%;
  min-height: 60px;
  justify-items: start;
  padding: 10px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  color: #17181a;
  text-align: left;
}

.profile-link-card::after {
  position: absolute;
  right: 22px;
  color: #8d929b;
  content: "›";
}

.profile-link-card span {
  color: #666b74;
  font-size: 12px;
  font-weight: 600;
}

.profile-cert {
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.profile-cert span {
  color: #747982;
  font-size: 13px;
  font-weight: 700;
}

.profile-cert strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.profile-cert p {
  margin: 6px 0 0;
  color: #747982;
  font-size: 12px;
}
.finance-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.finance-filters button {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0,0,0,0.04);
  color: #5f6368;
  cursor: pointer;
  transition: all .15s;
}
.finance-filters button.active {
  background: #1a73e8;
  color: #fff;
}
.finance-list {
  min-height: 120px;
}
.finance-loading {
  text-align: center;
  padding: 40px 0;
  color: #747982;
  font-size: 14px;
}
.finance-empty {
  text-align: center;
  padding: 40px 0;
  color: #747982;
  font-size: 14px;
}
.finance-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  cursor: pointer;
}
.finance-item:last-child {
  border-bottom: none;
}
.finance-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.finance-item-icon.reward,
.finance-item-icon.daily_login,
.finance-item-icon.invite {
  background: #e6f4ea;
  color: #1e8e3e;
}
.finance-item-icon.recharge {
  background: #e8f0fe;
  color: #1a73e8;
}
.finance-item-icon.analyzer,
.finance-item-icon.studio,
.finance-item-icon.charge {
  background: #fce8e6;
  color: #d93025;
}
.finance-item-icon.other {
  background: #f1f3f4;
  color: #5f6368;
}
.finance-item-body {
  flex: 1;
  min-width: 0;
}
.finance-item-reason {
  font-weight: 600;
  font-size: 14px;
  color: #0f1117;
}
.finance-item-desc {
  font-size: 12px;
  color: #747982;
  margin-top: 2px;
}
.finance-item-amount {
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  flex-shrink: 0;
}
.finance-item-amount.positive {
  color: #1e8e3e;
}
.finance-item-amount.negative {
  color: #d93025;
}
.finance-breakdown {
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(0,0,0,0.03);
  border-radius: 8px;
  font-size: 12px;
  color: #5f6368;
  line-height: 1.8;
}
.finance-breakdown strong {
  color: #0f1117;
}
.finance-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.finance-pagination button {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(0,0,0,0.04);
  color: #5f6368;
  cursor: pointer;
  transition: all .15s;
}
.finance-pagination button.active {
  background: #1a73e8;
  color: #fff;
}
.finance-pagination button:disabled {
  opacity: .4;
  cursor: default;
}


.recharge-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  min-width: 320px;
  overflow: auto;
  background: #020305;
  color: #0f1117;
}

.recharge-modal.is-hidden {
  display: none;
}

.recharge-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(136deg, transparent 0 28%, rgba(47, 33, 255, 0.36) 28.2%, transparent 29%),
    linear-gradient(139deg, transparent 0 44%, rgba(80, 190, 255, 0.42) 44.2%, transparent 45%),
    linear-gradient(36deg, transparent 0 62%, rgba(145, 30, 255, 0.34) 62.2%, transparent 63%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), transparent 24%),
    #020305;
  opacity: 0.9;
}

.recharge-brand {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 1;
  display: grid;
  gap: 5px;
  color: rgba(255, 255, 255, 0.42);
}

.recharge-brand span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
}

.recharge-brand strong {
  color: rgba(255, 255, 255, 0.16);
  font-size: 24px;
  line-height: 1;
}

.recharge-close {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #f6f7fb;
  color: #6a6f79;
  font-size: 20px;
  line-height: 1;
}

.recharge-shell {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1160px, calc(100vw - 120px));
  min-height: 100vh;
  margin: 0 auto;
  align-content: center;
  gap: 34px;
  padding: 96px 0;
}

.recharge-head {
  color: #fff;
  text-align: center;
}

.recharge-head h2 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 0;
}

.recharge-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  font-weight: 700;
}

.recharge-plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.recharge-loading {
  grid-column: 1 / -1;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.58);
  font-weight: 800;
}

.recharge-card {
  display: flex;
  min-height: 344px;
  flex-direction: column;
  padding: 18px 16px 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.recharge-card.is-free {
  background:
    linear-gradient(180deg, rgba(236, 250, 239, 0.92), rgba(255, 255, 255, 0.96)),
    #fff;
}

.recharge-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.recharge-card-top h3 {
  margin: 0;
  color: #424755;
  font-size: 14px;
  font-weight: 900;
}

.recharge-card-top span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff0df;
  color: #d88a35;
  font-size: 11px;
  font-weight: 900;
}

.recharge-price {
  display: flex;
  min-height: 52px;
  align-items: baseline;
  gap: 7px;
  margin-top: 14px;
  color: #5f6472;
}

.recharge-price span {
  font-size: 14px;
  font-weight: 800;
}

.recharge-price strong {
  color: #5b5f6e;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}

.recharge-price del,
.recharge-price em {
  color: #a4a9b3;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.recharge-desc {
  min-height: 40px;
  margin: 0;
  color: #777d89;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.recharge-green {
  display: block;
  margin: 8px 0 13px;
  color: #3ba464;
  font-size: 12px;
  font-weight: 900;
}

.recharge-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 12px 0 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  color: #5b626f;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.recharge-card li::before {
  margin-right: 6px;
  color: #49ad6d;
  content: "✓";
}

.recharge-note {
  min-height: 68px;
  margin-top: auto;
  padding: 11px 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  background: rgba(244, 245, 247, 0.86);
  color: #848995;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.7;
}

.recharge-action {
  height: 42px;
  margin-top: 12px;
  border-radius: 10px;
  background: #0d0e10;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.recharge-action.is-free {
  background: #e5f5e9;
  color: #2f9a55;
}

.recharge-action:disabled {
  cursor: progress;
  opacity: 0.7;
}

.recharge-error {
  min-height: 20px;
  margin: 0;
  color: #ffb2b2;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: auto;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(12px);
}

.contact-modal.is-hidden {
  display: none;
}

.contact-card {
  position: relative;
  width: min(720px, calc(100vw - 48px));
  min-height: 0;
  padding: 24px;
  border: 1px solid rgba(99, 108, 130, 0.48);
  border-radius: 18px;
  background: rgba(7, 11, 16, 0.95);
  box-shadow:
    0 28px 88px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  color: #f5f6fb;
}

.contact-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(118, 128, 150, 0.52);
  border-radius: 50%;
  background: rgba(13, 17, 24, 0.82);
  color: #f2f4f8;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
}

.contact-kicker {
  margin: 0 0 6px;
  color: rgba(236, 239, 247, 0.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
}

.contact-card h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
}

.contact-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  width: 260px;
  min-height: 44px;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(118, 128, 150, 0.45);
  border-radius: 14px;
  background: rgba(12, 16, 23, 0.54);
}

.contact-tabs button {
  border-radius: 10px;
  background: transparent;
  color: rgba(238, 241, 248, 0.62);
  font-size: 14px;
  font-weight: 700;
}

.contact-tabs button.active {
  border: 1px solid rgba(118, 128, 150, 0.48);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.contact-pane.is-hidden {
  display: none;
}

.contact-qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 180px));
  justify-content: center;
  column-gap: 72px;
  margin-top: 24px;
}

.contact-qr-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
}

.contact-qr-card img {
  display: block;
  width: min(180px, 100%);
  aspect-ratio: 1;
  border-radius: 14px;
  background: #fff;
  object-fit: cover;
}

.contact-qr-card figcaption {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.contact-time-card,
.contact-feedback-card {
  display: grid;
  gap: 8px;
  width: min(330px, 100%);
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(118, 128, 150, 0.45);
  border-radius: 14px;
  background: rgba(16, 19, 27, 0.58);
}

.contact-feedback-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.contact-feedback-form label {
  display: grid;
  gap: 8px;
  color: #f4f6fb;
  font-size: 14px;
  font-weight: 700;
}

.contact-feedback-form label b {
  color: #ff6b65;
}

.contact-input-wrap,
.contact-textarea-wrap {
  position: relative;
  display: block;
}

.contact-feedback-form input,
.contact-feedback-form select,
.contact-feedback-form textarea {
  width: 100%;
  border: 1px solid rgba(118, 128, 150, 0.52);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5f6fb;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  outline: none;
}

.contact-feedback-form input,
.contact-feedback-form select {
  height: 44px;
  padding: 0 58px 0 14px;
}

.contact-feedback-form select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, rgba(238, 241, 248, 0.6) 50%) calc(100% - 19px) 19px / 7px 7px no-repeat,
    linear-gradient(135deg, rgba(238, 241, 248, 0.6) 50%, transparent 50%) calc(100% - 14px) 19px / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.08);
}

.contact-feedback-form textarea {
  min-height: 138px;
  resize: vertical;
  padding: 14px 14px 34px;
}

.contact-feedback-form input::placeholder,
.contact-feedback-form textarea::placeholder {
  color: rgba(238, 241, 248, 0.36);
}

.contact-input-wrap em,
.contact-textarea-wrap em {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: rgba(238, 241, 248, 0.72);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.contact-input-wrap em {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}

.contact-field-error {
  min-height: 16px;
  color: #ff6b65;
  font-size: 13px;
  font-weight: 700;
}

.contact-submit-message {
  min-height: 18px;
  margin: 0;
  color: #ffb2b2;
  font-size: 13px;
  font-weight: 700;
}

.contact-submit-message.is-success {
  color: #71d98a;
}

.contact-submit {
  justify-self: end;
  min-width: 128px;
  min-height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: #f4f5f8;
  color: #111319;
  font-size: 14px;
  font-weight: 900;
}

.contact-submit:disabled {
  cursor: progress;
  opacity: 0.72;
}

.contact-time-card span,
.contact-feedback-card span {
  color: rgba(238, 241, 248, 0.62);
  font-size: 14px;
  font-weight: 700;
}

.contact-time-card strong,
.contact-feedback-card strong {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

body.light {
  color-scheme: light;
  --bg: #f6f5ef;
  --panel: #ffffff;
  --panel-2: #f0efe8;
  --text: #1c1c1e;
  --muted: rgba(28, 28, 30, 0.62);
  --line: rgba(0, 0, 0, 0.12);
}

body.light .sidebar {
  background: #f9f8f2;
}

body.light .menu-item,
body.light .utility,
body.light .name {
  color: rgba(0, 0, 0, 0.68);
}

@media (max-width: 1180px) {
  .masonry {
    column-count: 5;
  }

  .recharge-shell {
    width: min(760px, calc(100vw - 96px));
  }

  .recharge-plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 860px) {
  .sidebar {
    width: 64px;
  }

  .app {
    margin-left: 64px;
  }

  .menu-item,
  .utility,
  .balance {
    width: 54px;
  }

  .hero {
    min-height: 520px;
  }

  .hero-content {
    width: calc(100vw - 80px);
  }

  .masonry {
    column-count: 3;
  }

  .recharge-shell {
    width: calc(100vw - 48px);
  }

  .promotion-hero,
  .promotion-layout {
    grid-template-columns: 1fr;
  }

  .promotion-stats {
    grid-template-columns: 1fr 1fr;
  }

  .contact-modal {
    padding: 18px;
  }

  .contact-card {
    width: 100%;
    padding: 22px 18px;
    border-radius: 18px;
  }

  .contact-close {
    top: 18px;
    right: 18px;
    width: 32px;
    height: 32px;
    font-size: 22px;
  }

  .contact-kicker {
    font-size: 12px;
    letter-spacing: 2px;
  }

  .contact-card h2 {
    margin-bottom: 16px;
    font-size: 22px;
  }

  .contact-tabs {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
  }

  .contact-tabs button {
    border-radius: 10px;
    font-size: 14px;
  }

  .contact-qr-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-qr-card {
    gap: 14px;
  }

  .contact-qr-card img {
    width: min(180px, 100%);
    border-radius: 14px;
  }

  .contact-qr-card figcaption,
  .contact-time-card strong,
  .contact-feedback-card strong {
    font-size: 14px;
  }

  .contact-time-card,
  .contact-feedback-card {
    gap: 8px;
    margin-top: 20px;
    padding: 16px;
    border-radius: 14px;
  }

  .contact-time-card span,
  .contact-feedback-card span {
    font-size: 13px;
  }

  .contact-submit {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .sidebar {
    position: sticky;
    top: 0;
    width: 100%;
    height: 70px;
    flex-direction: row;
    padding: 0 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }

  .logo {
    flex: 0 0 auto;
    margin: 0 10px 0 0;
  }

  .menu,
  .account {
    width: auto;
    flex-direction: row;
  }

  .account {
    margin: 0 0 0 auto;
    padding-bottom: 0;
  }

  .name,
  .utility,
  .balance {
    display: none;
  }

  .menu-item {
    width: 48px;
    min-height: 50px;
    font-size: 11px;
  }

  .app {
    margin-left: 0;
  }

  .hero {
    min-height: 492px;
  }

  .hero-content {
    width: 100%;
    padding-inline: 20px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 15px;
  }

  .section-head {
    margin-top: -72px;
  }

  .masonry {
    column-count: 2;
  }

  .recharge-brand strong {
    font-size: 20px;
  }

  .recharge-shell {
    width: calc(100vw - 28px);
    padding-top: 88px;
  }

  .recharge-head h2 {
    font-size: 32px;
  }

  .recharge-plans {
    grid-template-columns: 1fr;
  }
}

/* Login reward toast */
.login-reward-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .3s, transform .3s;
}
.login-reward-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.login-reward-toast-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #1e8e3e;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-size: 14px;
}
.login-reward-toast-content strong {
  display: block;
  font-weight: 700;
}
.login-reward-toast-content p {
  margin: 2px 0 0;
  font-size: 13px;
  opacity: .9;
}
.login-reward-toast-content b {
  font-weight: 700;
}
.login-reward-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.global-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 10000;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 20, 20, 0.92);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.global-toast.global-toast-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.global-toast.global-toast-success {
  background: rgba(16, 122, 87, 0.95);
}

.global-toast.global-toast-error {
  background: rgba(180, 40, 40, 0.95);
}
