:root {
  --bg: #0a0a0d;
  --bg-soft: #15151b;
  --panel: #17171d;
  --panel-2: #1e1f26;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f7f8fa;
  --muted: rgba(255, 255, 255, 0.64);
  --muted-2: rgba(255, 255, 255, 0.42);
  --accent: #c4ff2c;
  --accent-2: #dfff4f;
  --warn: #ffb020;
  --ok: #4fd267;
  --fail: #ff5f57;
  --blue: #2593ff;
  --card-radius: 18px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

button {
  border: 0;
  cursor: pointer;
  background: transparent;
}

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

#app {
  min-height: 100vh;
}

.shell {
  position: relative;
  width: min(100vw, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at top right, rgba(196, 255, 44, 0.08), transparent 28%),
    linear-gradient(180deg, #0a0a0d 0%, #0d0d12 100%);
  overflow: hidden;
}

.view {
  min-height: 100vh;
  padding: 14px 16px 92px;
}

.view--landing {
  padding: 0;
}

.hidden {
  display: none !important;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  margin-bottom: 16px;
}

.topbar__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  flex: 1;
  min-width: 0;
}

.topbar__back {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 18px;
}

.balance-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--accent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
  font-size: 15px;
  font-weight: 800;
}

.avatar-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c62ff, #c47bff 60%, #6ee7ff);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.landing {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(38, 221, 231, 0.34), transparent 28%),
    radial-gradient(circle at 82% 20%, rgba(255, 198, 92, 0.22), transparent 30%),
    linear-gradient(145deg, #06131f 0%, #112a36 42%, #141827 100%);
}

.landing::before {
  content: "";
  position: absolute;
  inset: 9% -28% auto 18%;
  height: 58%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(45, 221, 232, 0.08));
  clip-path: polygon(18% 0, 100% 16%, 76% 100%, 0 70%);
  opacity: 0.72;
}

.landing__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing::after {
  content: "AI";
  position: absolute;
  right: -14px;
  bottom: 108px;
  color: rgba(255, 255, 255, 0.08);
  font-size: 132px;
  font-weight: 900;
  line-height: 1;
}

.landing__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.46) 48%, rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(5, 10, 18, 0.96) 76%, rgba(5, 10, 18, 0.98) 100%),
    radial-gradient(circle at 50% 80%, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0.42) 100%);
}

.landing__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 18px 18px calc(72px + env(safe-area-inset-bottom));
}

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

.brand__mark {
  width: 18px;
  height: 18px;
  background: url("/favicon.ico") center/contain no-repeat;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
}

.landing__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.landing__title {
  margin: 0;
  text-align: center;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.22;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.primary-cta {
  min-width: 192px;
  height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 30;
  transform: translateX(-50%);
  width: min(100vw, 430px);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: #050507;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.tabbar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.tabbar__item {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  min-height: 48px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 12px;
  font-weight: 600;
}

.tabbar__item.is-active {
  color: var(--accent);
}

.tabbar__icon {
  font-size: 22px;
  line-height: 1;
}

.bottom-nav__icon {
  display: inline-grid;
  place-items: center;
}

.tabbar__badge {
  position: absolute;
  top: 2px;
  right: 20px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.studio-header {
  margin-bottom: 18px;
}

.studio-header__name {
  font-size: 15px;
  font-weight: 800;
}

.notice-bar {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: -2px;
  padding: 10px 12px;
  border: 1px solid rgba(196, 255, 44, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(196, 255, 44, 0.08), rgba(196, 255, 44, 0.03));
  overflow: hidden;
}

.notice-bar__icon {
  display: grid;
  place-items: center;
  height: 28px;
  border-radius: 999px;
  background: rgba(196, 255, 44, 0.14);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.notice-bar__viewport {
  overflow: hidden;
  white-space: nowrap;
}

.notice-bar__track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  animation: notice-scroll 30s linear infinite;
  will-change: transform;
}

.notice-bar__item {
  flex: 0 0 auto;
  min-width: auto;
  padding-right: 48px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

@keyframes notice-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.studio-chip {
  display: grid;
  place-items: center;
  height: 36px;
  margin-top: 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #101010;
  font-size: 15px;
  font-weight: 900;
}

.studio-chip + .studio-chip {
  margin-top: 14px;
}

.studio-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.mode-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.mode-switch--triple {
  grid-template-columns: repeat(3, 1fr);
}

.mode-switch--quad {
  grid-template-columns: repeat(4, 1fr);
}

.mode-switch__item {
  height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.58);
  background: var(--panel-2);
  font-size: 14px;
  font-weight: 700;
}

.mode-switch__item.is-active {
  border-color: rgba(196, 255, 44, 0.56);
  color: var(--accent);
  background: rgba(196, 255, 44, 0.08);
}

.mode-switch__item.is-disabled {
  border-color: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  cursor: not-allowed;
  pointer-events: none;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  font-weight: 700;
}

.section-label::before {
  content: "◇";
  color: rgba(196, 255, 44, 0.72);
  font-size: 14px;
}

.studio-card {
  margin-top: 18px;
  padding: 14px;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  align-items: center;
  gap: 8px;
}

.upload-arrow {
  color: #fff;
  text-align: center;
  font-size: 22px;
}

.upload-box {
  position: relative;
  min-height: 94px;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: #08080b;
}

.upload-box__button {
  width: 100%;
  min-height: 74px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.72);
  background: #060608;
  font-size: 15px;
}

.upload-box__button small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.upload-box__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1.1;
  overflow: hidden;
  border-radius: 10px;
  background: #111;
}

.upload-box__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.upload-box__clear {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 16px;
}

.upload-progress {
  margin-top: 10px;
}

.upload-progress__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.upload-progress__track {
  height: 7px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.upload-progress__bar {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #24d18f, #f7d35b);
  transition: width 0.18s ease;
}

.textarea {
  width: 100%;
  min-height: 130px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  resize: vertical;
}

.textarea::placeholder,
.input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.counter-row {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 12px;
}

.price-bar {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(196, 255, 44, 0.18);
  border-radius: 12px;
  background: rgba(196, 255, 44, 0.06);
}

.price-bar.is-hd {
  border-color: rgba(196, 255, 44, 0.34);
  background: rgba(196, 255, 44, 0.12);
}

.price-bar__divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.12);
}

.price-bar__main {
  color: var(--accent);
  font-size: 15px;
  font-weight: 900;
}

.price-bar__main strong {
  margin-left: 4px;
  font-size: 34px;
  line-height: 1;
}

.price-bar__sub {
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  font-size: 14px;
  font-weight: 700;
}

.price-bar__sub.is-active {
  color: var(--accent);
}

.submit-btn {
  width: 100%;
  height: 48px;
  margin-top: 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #101010;
  font-size: 18px;
  font-weight: 900;
}

.helper-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.ghost-btn {
  flex: 1;
  height: 40px;
  border: 1px solid rgba(196, 255, 44, 0.3);
  border-radius: 10px;
  color: var(--accent);
  background: rgba(196, 255, 44, 0.06);
  font-size: 14px;
  font-weight: 700;
}

.page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
}

.page-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.notice-card {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 176, 32, 0.24);
  border-radius: 14px;
  background: rgba(255, 176, 32, 0.08);
  color: #ffca76;
  font-size: 13px;
  line-height: 1.6;
}

.notice-card__icon {
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 176, 32, 0.48);
  border-radius: 50%;
  color: #ffca76;
  text-align: center;
  font-size: 12px;
  line-height: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.stats-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.stats-card__label {
  color: var(--muted);
  font-size: 13px;
}

.stats-card__value {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 900;
}

.filter-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow-x: auto;
}

.filter-strip::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.66);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.filter-chip.is-active {
  color: var(--accent);
  background: rgba(196, 255, 44, 0.1);
  box-shadow: inset 0 0 0 1px rgba(196, 255, 44, 0.34);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot--queue {
  background: var(--warn);
}

.dot--running {
  background: var(--blue);
}

.dot--done {
  background: var(--ok);
}

.dot--fail {
  background: var(--fail);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 208px;
  margin-top: 22px;
  padding: 20px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.empty-state__icon {
  font-size: 44px;
  opacity: 0.22;
}

.empty-state__title {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  font-weight: 800;
}

.empty-state__desc {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 14px;
}

.task-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.package-grid {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.package-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

.package-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.package-card__name {
  font-size: 17px;
  font-weight: 900;
}

.package-card__power {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.package-card__price {
  color: var(--accent);
  font-size: 20px;
  font-weight: 900;
}

.pay-qr-mask {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.72);
}

.pay-qr-panel {
  position: relative;
  width: min(360px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #10141d;
  text-align: center;
}

.pay-qr-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 22px;
}

.pay-qr-title {
  font-size: 18px;
  font-weight: 900;
}

.pay-qr-amount {
  margin-top: 8px;
  color: var(--accent);
  font-size: 26px;
  font-weight: 900;
}

.pay-qr-image {
  display: block;
  width: 240px;
  height: 240px;
  margin: 18px auto 14px;
  border: 8px solid #fff;
  border-radius: 8px;
  background: #fff;
}

.pay-qr-meta {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

.pay-method {
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.pay-method--alipay {
  background: #1677ff;
}

.pay-method--wechat {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.64);
}

.task-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
}

.task-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.task-card__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
}

.task-card__status {
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.task-card__status.is-0,
.task-card__status.is-1 {
  color: #7ec6ff;
  background: rgba(37, 147, 255, 0.14);
}

.task-card__status.is-2 {
  color: #9bf077;
  background: rgba(79, 210, 103, 0.14);
}

.task-card__status.is-3 {
  color: #ff8d87;
  background: rgba(255, 95, 87, 0.14);
}

.task-card__prompt {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.task-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.task-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 12px;
}

.task-card__preview {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.task-card__thumb {
  flex: none;
  width: 82px;
  height: 110px;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.task-card__thumb img,
.task-card__thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.task-card__side {
  flex: 1;
  min-width: 0;
}

.task-card__reason {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  line-height: 1.6;
}

.task-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.action-btn {
  min-width: 92px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.action-btn--accent {
  border-color: rgba(196, 255, 44, 0.34);
  color: #101010;
  background: var(--accent);
}

.profile-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #1a1b22;
}

.profile-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  object-fit: cover;
  background: #111;
}

.profile-name {
  font-size: 16px;
  font-weight: 900;
}

.profile-uid {
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.profile-stats__item {
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}

.profile-stats__value {
  font-size: 18px;
  font-weight: 900;
}

.profile-stats__label {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 12px;
}

.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.shortcut-btn {
  height: 46px;
  border: 1px solid rgba(196, 255, 44, 0.24);
  border-radius: 12px;
  color: var(--accent);
  background: rgba(196, 255, 44, 0.08);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.04);
  font-size: 15px;
  font-weight: 800;
}

.menu-card {
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #1a1b22;
}

.menu-row {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  width: 100%;
  color: rgba(255, 255, 255, 0.84);
  background: transparent;
}

.menu-row::after {
  display: none;
}

.menu-card .menu-row + .menu-row {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.menu-card .menu-row + .menu-row::before {
  content: "";
  position: absolute;
  left: 46px;
  right: 16px;
  top: -1px;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.menu-row__icon {
  width: 16px;
  color: rgba(255, 255, 255, 0.54);
  text-align: center;
  font-size: 15px;
}

.menu-row__label {
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}

.menu-row__arrow {
  width: 18px;
  color: rgba(255, 255, 255, 0.18);
  font-size: 16px;
  text-align: right;
}

.menu-row__badge {
  justify-self: end;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.logout-btn {
  width: 100%;
  height: 46px;
  margin-top: 14px;
  border: 1px solid rgba(255, 95, 87, 0.16);
  border-radius: 14px;
  color: #ff6f68;
  background: #1a1b22;
  font-size: 16px;
  font-weight: 800;
}

.sheet-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  padding: 18px;
  background: rgba(0, 0, 0, 0.6);
}

.sheet-mask.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet {
  width: min(100%, 360px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #131319;
  box-shadow: var(--shadow);
}

.sheet__title {
  font-size: 18px;
  font-weight: 900;
}

.sheet__text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

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

.sheet__btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
}

.sheet__btn--cancel {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sheet__btn--ok {
  color: #101010;
  background: var(--accent);
}

.submit-mask {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.58);
}

.submit-mask.is-open {
  display: flex;
}

.submit-dialog {
  width: min(100%, 300px);
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #131319;
  box-shadow: var(--shadow);
  text-align: center;
}

.submit-spinner {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.submit-dialog__title {
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.submit-dialog__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

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

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom));
  z-index: 90;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: rgba(0, 0, 0, 0.84);
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

@media (max-width: 360px) {
  .landing__title {
    font-size: 24px;
  }

  .stats-grid,
  .profile-stats {
    gap: 8px;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .upload-arrow {
    display: none;
  }
}
