*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep: #060a12;
  --bg: #0a0f1a;
  --bg-card: rgba(18, 26, 42, 0.85);
  --bg-card-solid: #121a2a;
  --bg-elevated: rgba(24, 34, 54, 0.75);
  --ink: #eef2f8;
  --ink-secondary: #94a3b8;
  --ink-muted: #5c6b82;
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.12);

  --harmony: #3d8bff;
  --harmony-light: #6cb0ff;
  --harmony-dark: #1a6ae6;
  --harmony-soft: rgba(61, 139, 255, 0.12);
  --harmony-glow: rgba(61, 139, 255, 0.45);

  --gold: #e8b030;
  --gold-light: #ffd060;
  --gold-soft: rgba(232, 176, 48, 0.12);
  --gold-glow: rgba(232, 176, 48, 0.35);
  --gold-gradient: linear-gradient(145deg, #ffe082 0%, #e8b030 45%, #b8860b 100%);

  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.1);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  --shadow-glow-blue: 0 8px 32px rgba(61, 139, 255, 0.25), 0 0 0 1px rgba(61, 139, 255, 0.15);
  --shadow-glow-gold: 0 8px 28px rgba(232, 176, 48, 0.25);
  --shadow-inset-top: inset 0 1px 0 rgba(255, 255, 255, 0.08);

  --glass-blur: blur(24px) saturate(160%);
  --font-display: "Sora", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;

  --nav-h: 72px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --page-max: 480px;
}

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(61, 139, 255, 0.18), transparent 55%),
    radial-gradient(circle at 90% 20%, rgba(232, 176, 48, 0.08), transparent 35%),
    radial-gradient(circle at 10% 80%, rgba(61, 139, 255, 0.06), transparent 40%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.app-shell {
  position: relative;
  z-index: 1;
  max-width: var(--page-max);
  min-height: 100dvh;
  margin: 0 auto;
  background: linear-gradient(180deg, #0c1220 0%, #0a0f1a 50%, #080c14 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 40px 100px rgba(0, 0, 0, 0.6);
  overflow-x: hidden;
}

.app-shell::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 139, 255, 0.15) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  animation: float-orb 8s ease-in-out infinite;
}

.app-shell::after {
  content: "";
  position: absolute;
  bottom: 100px;
  left: -50px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 176, 48, 0.1) 0%, transparent 70%);
  filter: blur(36px);
  pointer-events: none;
  animation: float-orb 10s ease-in-out infinite reverse;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -14px); }
}

.page {
  position: relative;
  z-index: 2;
  padding: 16px 16px calc(86px + var(--safe-bottom) + 20px);
}

.page-no-nav { padding-bottom: calc(var(--safe-bottom) + 24px); }
.page-with-sticky-cta { padding-bottom: calc(86px + var(--safe-bottom) + 100px); }

.top-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(10, 15, 26, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), var(--shadow-inset-top);
}

.top-bar-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.top-bar-back {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--harmony-light);
  font-weight: 500;
  min-width: 64px;
}

.top-bar-action {
  min-width: 64px;
  text-align: right;
  font-size: 13px;
  color: var(--ink-secondary);
}

.hero {
  position: relative;
  padding: 28px 22px 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(155deg, #0a1628 0%, #0f2847 30%, #1a4a8a 60%, #1a6ae6 100%);
  box-shadow: var(--shadow-glow-blue), var(--shadow-md), var(--shadow-inset-top);
  border: 1px solid rgba(61, 139, 255, 0.2);
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -10%;
  width: 70%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 10%, rgba(108, 176, 255, 0.25) 0%, transparent 30%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 16px;
  box-shadow: var(--shadow-inset-top);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px #34d399;
  animation: pulse-glow 2s ease infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero p {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.88;
}

.hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.hero-stat-label {
  font-size: 11px;
  opacity: 0.65;
  margin-top: 3px;
}

.section { margin-top: 26px; }

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

.section-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 13px;
  color: var(--harmony-light);
  font-weight: 500;
}

.card {
  position: relative;
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm), var(--shadow-inset-top);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.card-glow {
  box-shadow: var(--shadow-sm), 0 0 40px rgba(61, 139, 255, 0.06), var(--shadow-inset-top);
}

.flow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  padding: 18px 8px 16px;
}

.flow-step {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.flow-arrow {
  flex: 0 1 24px;
  width: 24px;
  min-width: 12px;
  position: relative;
  align-self: flex-start;
  margin-top: 21px;
  height: 2px;
}

.flow-arrow::before {
  content: '';
  position: absolute;
  left: 0;
  right: 7px;
  top: 0;
  height: 2px;
  border-radius: 1px;
  background: linear-gradient(90deg, rgba(61, 139, 255, 0.2), rgba(61, 139, 255, 0.65));
  box-shadow: 0 0 6px rgba(61, 139, 255, 0.2);
}

.flow-arrow::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid rgba(127, 168, 255, 0.9);
  filter: drop-shadow(0 0 3px rgba(61, 139, 255, 0.35));
}

.flow-step-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px;
  border-radius: 14px;
  background: var(--harmony-soft);
  border: 1px solid rgba(61, 139, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), var(--shadow-inset-top);
}

.flow-step-text {
  font-size: 10px;
  color: var(--ink-secondary);
  line-height: 1.35;
  font-weight: 500;
}

.app-card {
  display: flex;
  gap: 14px;
  padding: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:active { transform: scale(0.985); }

.app-icon {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), var(--shadow-inset-top);
}

.app-icon::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
  pointer-events: none;
}

.app-icon-blue { background: linear-gradient(145deg, #4d9aff, #1a6ae6 50%, #0d4db0); }
.app-icon-teal { background: linear-gradient(145deg, #2dd4bf, #0d9488 50%, #0f766e); }
.app-icon-orange { background: linear-gradient(145deg, #fb923c, #ea580c 50%, #c2410c); }

.app-info { flex: 1; min-width: 0; }
.app-tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }

.tag {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
}

.tag-period { background: var(--harmony-soft); color: var(--harmony-light); border: 1px solid rgba(61, 139, 255, 0.2); }
.tag-slots { background: var(--warning-soft); color: var(--warning); border: 1px solid rgba(251, 191, 36, 0.2); }
.tag-done { background: var(--success-soft); color: var(--success); border: 1px solid rgba(52, 211, 153, 0.2); }
.tag-review { background: var(--gold-soft); color: var(--gold); border: 1px solid rgba(232, 176, 48, 0.2); }

.app-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.app-desc {
  font-size: 13px;
  color: var(--ink-secondary);
  line-height: 1.48;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.app-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.app-version { font-size: 11px; color: var(--ink-muted); }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 22px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  pointer-events: none;
}

.btn:active { transform: scale(0.96); }

.btn-primary {
  background: linear-gradient(180deg, #5a9fff 0%, #3d8bff 50%, #1a6ae6 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(61, 139, 255, 0.4), var(--shadow-inset-top);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-inset-top);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #1a1200;
  font-weight: 700;
  box-shadow: var(--shadow-glow-gold), var(--shadow-inset-top);
}

.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn:disabled, .btn.disabled { opacity: 0.45; cursor: not-allowed; }
a.btn.disabled { pointer-events: auto; }

.pts-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--gold-soft);
  border: 1px solid rgba(232, 176, 48, 0.25);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  box-shadow: 0 0 16px rgba(232, 176, 48, 0.15), var(--shadow-inset-top);
}

.pts-chip-sm { padding: 4px 10px; font-size: 12px; }

.bottom-nav {
  position: fixed;
  bottom: calc(12px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: calc(var(--page-max) - 28px);
  height: 62px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  background: rgba(18, 26, 42, 0.88);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 22px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--shadow-inset-top);
  z-index: 100;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  color: var(--ink-muted);
  font-weight: 500;
  padding: 8px 0;
  border-radius: 16px;
  transition: all 0.25s;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.nav-item.active {
  color: var(--harmony-light);
  background: rgba(61, 139, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-item.active svg {
  stroke-width: 2.2;
  filter: drop-shadow(0 0 6px rgba(61, 139, 255, 0.5));
}

.detail-app-card {
  margin-bottom: 12px;
}

.detail-app-card:active {
  transform: none;
}

.detail-block { margin-top: 0; }

.detail-card { padding: 14px 14px 10px; }

.detail-block-part + .detail-block-part {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.detail-block-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.detail-intro {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.demo-preview-sm {
  height: 96px;
}

.demo-preview-sm .demo-preview-text {
  font-size: 28px;
}

.task-list-compact { padding: 0; }

.task-list-compact .task-item {
  padding: 7px 0;
  gap: 10px;
}

.task-list-compact .task-num {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.task-list-compact .task-body h4 {
  font-size: 13px;
  margin-bottom: 0;
  line-height: 1.35;
}

.task-list-actions .task-item-action {
  align-items: center;
  gap: 8px;
  padding: 10px 0;
}

.task-list-actions .task-body {
  flex: 1;
  min-width: 0;
}

.task-action-btn {
  flex: 0 0 112px;
  width: 112px;
  min-height: 34px;
  padding: 6px 4px;
  font-size: 10px;
  line-height: 1.3;
  white-space: normal;
  justify-content: center;
  text-align: center;
}

.detail-icon {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 16px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 42px;
  box-shadow: 0 16px 40px rgba(61, 139, 255, 0.3), var(--shadow-inset-top);
}

.detail-icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(61, 139, 255, 0.25) 0%, transparent 70%);
  z-index: -1;
  filter: blur(14px);
}

.detail-title {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  margin-bottom: 6px;
}

.detail-sub { font-size: 14px; color: var(--ink-secondary); }

.slots-bar {
  margin: 16px 0;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-inset-top);
}

.slots-bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 500;
}

.slots-bar-head strong { color: var(--warning); }

.progress-track {
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.3);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1a6ae6, #6cb0ff, #1a6ae6);
  background-size: 200% 100%;
  animation: shimmer-bar 3s ease infinite;
  box-shadow: 0 0 12px rgba(61, 139, 255, 0.6);
}

@keyframes shimmer-bar {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.task-list { list-style: none; padding: 4px 0; }

.task-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.task-item:last-child { border-bottom: none; }

.task-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--harmony-soft);
  color: var(--harmony-light);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(61, 139, 255, 0.2);
  box-shadow: var(--shadow-inset-top);
}

.task-body h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.task-body p { font-size: 13px; color: var(--ink-secondary); line-height: 1.48; }

.timeline { padding: 18px; }

.timeline-item {
  display: flex;
  gap: 12px;
  padding-bottom: 22px;
  position: relative;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.timeline-item.done::before {
  background: linear-gradient(180deg, var(--success), transparent);
}

.timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--bg-card-solid);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.timeline-item.done .timeline-dot {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.3);
}

.timeline-item.current .timeline-dot {
  border-color: var(--harmony);
  background: var(--harmony-soft);
  box-shadow: 0 0 0 4px rgba(61, 139, 255, 0.15), 0 0 20px rgba(61, 139, 255, 0.35);
}

.timeline-content h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.timeline-content p { font-size: 12px; color: var(--ink-muted); }

.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.form-label span { color: var(--danger); margin-left: 2px; }

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: rgba(61, 139, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(61, 139, 255, 0.12), inset 0 2px 6px rgba(0, 0, 0, 0.2);
}

.form-textarea { min-height: 108px; resize: vertical; }
.form-hint { font-size: 12px; color: var(--ink-muted); margin-top: 6px; }

.feedback-bug-hint {
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.star-rating { display: flex; gap: 8px; }

.star-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 176, 48, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.28);
  font-size: 22px;
  color: rgba(232, 176, 48, 0.45);
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.star-btn:hover {
  border-color: rgba(232, 176, 48, 0.55);
  background: rgba(232, 176, 48, 0.12);
  color: #ffd057;
  box-shadow: 0 0 14px rgba(232, 176, 48, 0.18);
}

.star-btn.active {
  border-color: rgba(255, 201, 65, 0.75);
  background: linear-gradient(180deg, rgba(255, 201, 65, 0.28) 0%, rgba(232, 176, 48, 0.16) 100%);
  color: #ffcc4d;
  box-shadow: 0 0 18px rgba(255, 201, 65, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  text-shadow: 0 0 10px rgba(255, 201, 65, 0.65);
}

.upload-zone {
  position: relative;
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 2px dashed rgba(61, 139, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  cursor: pointer;
  background: rgba(61, 139, 255, 0.04);
  transition: all 0.25s;
  overflow: hidden;
}

.upload-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-zone-body {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.upload-zone:hover {
  border-color: rgba(61, 139, 255, 0.5);
  background: rgba(61, 139, 255, 0.08);
  box-shadow: 0 0 32px rgba(61, 139, 255, 0.1);
}

.upload-zone-icon { font-size: 34px; margin-bottom: 8px; }
.upload-zone p { font-size: 13px; color: var(--ink-secondary); }

.upload-zone-text { margin-bottom: 4px; }

.upload-zone-filename {
  font-size: 12px;
  color: var(--harmony-light);
  word-break: break-all;
}

.screenshot-require {
  margin-bottom: 10px;
  line-height: 1.5;
}

.screenshot-require strong,
.screenshot-guide-list strong,
.screenshot-step-text strong,
.screenshot-step-tip strong {
  color: var(--ink);
  font-weight: 600;
}

.screenshot-guide {
  margin-bottom: 12px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(61, 139, 255, 0.06);
  border: 1px solid rgba(61, 139, 255, 0.16);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.screenshot-guide-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.screenshot-guide-toggle::-webkit-details-marker {
  display: none;
}

.screenshot-guide-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--harmony-light);
  margin: 0;
}

.screenshot-guide-chevron {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--ink-muted);
  transition: transform 0.2s ease;
}

.screenshot-guide[open] .screenshot-guide-chevron {
  transform: rotate(180deg);
}

.screenshot-guide-body {
  padding: 0 14px 14px;
  border-top: 1px solid rgba(61, 139, 255, 0.12);
}

.screenshot-guide-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.55;
  word-break: break-word;
}

.screenshot-guide-list li + li {
  margin-top: 6px;
}

.screenshot-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 12px;
}

.screenshot-step-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.screenshot-step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(61, 139, 255, 0.18);
  border: 1px solid rgba(61, 139, 255, 0.35);
  color: var(--harmony-light);
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}

.screenshot-step-text {
  margin: 0;
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.screenshot-step-img {
  width: 100%;
  display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(0, 0, 0, 0.2);
}

.screenshot-step-tip {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(232, 176, 48, 0.08);
  border: 1px solid rgba(232, 176, 48, 0.2);
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 18px;
}

.profile-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(145deg, #6cb0ff, #3d8bff 50%, #1a6ae6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(61, 139, 255, 0.4), var(--shadow-inset-top);
}

.profile-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.profile-id { font-size: 12px; color: var(--ink-muted); margin-top: 3px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 16px 18px;
}

.stat-box {
  padding: 16px 10px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line-strong);
  text-align: center;
  box-shadow: var(--shadow-inset-top);
}

.stat-box-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--harmony-light);
  text-shadow: 0 0 20px rgba(61, 139, 255, 0.4);
}

.stat-box-value.gold {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(232, 176, 48, 0.4);
}

.stat-box-label { font-size: 11px; color: var(--ink-muted); margin-top: 4px; }

.menu-list { padding: 0 16px; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}

.menu-item:active { background: rgba(61, 139, 255, 0.06); }

.menu-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--harmony-soft);
  border: 1px solid rgba(61, 139, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.menu-item-text { flex: 1; font-size: 15px; font-weight: 500; }
.menu-item-arrow { color: var(--ink-muted); font-size: 18px; }

.lottery-stage {
  position: relative;
  margin: 0 -16px;
  padding: 24px 16px 32px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(232, 176, 48, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(61, 139, 255, 0.06) 0%, transparent 50%);
}

.lottery-header { text-align: center; padding: 8px 16px; }
.lottery-header h2 { font-family: var(--font-display); font-size: 23px; font-weight: 700; margin-bottom: 6px; }
.lottery-header p { font-size: 13px; color: var(--ink-secondary); }

.wheel-wrap {
  position: relative;
  width: 290px;
  height: 290px;
  margin: 24px auto;
}

.wheel-wrap::before {
  content: "";
  position: absolute;
  inset: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 176, 48, 0.15) 0%, transparent 65%);
  filter: blur(20px);
  animation: wheel-glow 4s ease-in-out infinite;
}

@keyframes wheel-glow {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 0; height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 26px solid var(--gold-light);
  filter: drop-shadow(0 4px 8px rgba(232, 176, 48, 0.6));
}

.wheel {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(0, 0, 0, 0.3), var(--shadow-inset-top);
  transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99);
  overflow: hidden;
}

.wheel-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-glow-gold);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #1a1200;
}

.prize-list { padding: 0 16px; }

.prize-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.prize-item:last-child { border-bottom: none; }

.prize-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

.mall-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 0 16px 16px;
}

.mall-header {
  padding: 8px 16px 16px;
}

.mall-header-title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--harmony-light);
}

.mall-header-desc {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.mall-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm), var(--shadow-inset-top);
  transition: transform 0.2s;
  padding: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  font: inherit;
}

.mall-item:active { transform: scale(0.97); }

.mall-item-disabled,
.mall-item:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mall-item-disabled:active,
.mall-item:disabled:active {
  transform: none;
}

.mall-item-img {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  background: rgba(0, 0, 0, 0.2);
}

.mall-item-body { padding: 13px; }
.mall-item-name { font-size: 13px; font-weight: 600; margin-bottom: 6px; line-height: 1.35; }

.mall-item-pts {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  text-shadow: 0 0 12px rgba(232, 176, 48, 0.3);
}

.mall-item-stock {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-muted);
}

.mall-item-stock-low {
  color: var(--gold);
}

.mall-item-stock-out {
  color: #f87171;
}

body.modal-open {
  overflow: hidden;
}

.redeem-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.redeem-modal {
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  padding: 18px 16px 16px;
}

.redeem-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.redeem-modal-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--harmony-light);
  line-height: 1.35;
}

.redeem-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-secondary);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.redeem-modal-cost {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--ink-muted);
}

.redeem-modal-cost strong {
  color: var(--gold);
}

.redeem-form .form-group:last-of-type {
  margin-bottom: 0;
}

.redeem-pay-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.redeem-pay-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  color: var(--ink-secondary);
  cursor: pointer;
}

.redeem-pay-option:has(input:checked) {
  border-color: rgba(61, 139, 255, 0.45);
  background: rgba(61, 139, 255, 0.08);
  color: var(--harmony-light);
}

.upload-zone-sm {
  padding: 20px 12px;
}

.redeem-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  margin: 0 16px 16px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong);
}

.tab {
  flex: 1;
  padding: 11px;
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: all 0.25s;
}

.tab.active {
  background: rgba(61, 139, 255, 0.15);
  color: var(--harmony-light);
  box-shadow: var(--shadow-inset-top);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.rules-content {
  padding: 20px;
  font-size: 14px;
  line-height: 1.78;
  color: var(--ink-secondary);
}

.rules-content h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 22px 0 8px;
}

.rules-content h3:first-child { margin-top: 0; }
.rules-content ul { padding-left: 20px; margin: 8px 0; }
.rules-content li { margin-bottom: 6px; }

.notice-bar {
  display: flex;
  gap: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  background: rgba(61, 139, 255, 0.08);
  border: 1px solid rgba(61, 139, 255, 0.15);
  font-size: 12px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.notice-bar-icon { font-size: 16px; flex-shrink: 0; }

.demo-preview {
  height: 168px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #040810 0%, #0a2040 50%, #061428 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(61, 139, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.demo-preview::before {
  content: "";
  position: absolute;
  top: -30%;
  left: 20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(ellipse, rgba(61, 139, 255, 0.35) 0%, transparent 60%);
  pointer-events: none;
}

.demo-preview-text {
  position: relative;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 0 40px rgba(61, 139, 255, 0.9), 0 0 80px rgba(108, 176, 255, 0.4);
}

.sticky-cta {
  position: fixed;
  bottom: calc(86px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: calc(var(--page-max) - 32px);
  z-index: 90;
  padding: 12px;
  background: rgba(18, 26, 42, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 20px;
  border: 1px solid var(--line-strong);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), var(--shadow-inset-top);
}

.sticky-cta .btn-secondary { margin-top: 8px; }

.login-icon {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, #6cb0ff, #3d8bff 50%, #1a6ae6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 16px 40px rgba(61, 139, 255, 0.35), var(--shadow-inset-top);
}

.login-icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(61, 139, 255, 0.3) 0%, transparent 70%);
  z-index: -1;
  filter: blur(14px);
}

.login-page {
  padding-top: 32px;
}

.login-hero {
  text-align: center;
  margin-bottom: 32px;
}

.login-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
}

.login-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.login-form {
  padding: 0 16px;
}

.login-code-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.login-code-row .form-input {
  flex: 1;
  min-width: 0;
}

.login-send-code-btn {
  flex: 0 0 112px;
  padding: 0 8px;
  font-size: 12px;
  white-space: nowrap;
}

.login-hint {
  margin: -4px 0 16px;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.proto-map {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px;
  position: relative;
  z-index: 1;
}

.proto-map h1 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.proto-map > p {
  color: var(--ink-secondary);
  margin-bottom: 36px;
  font-size: 15px;
}

.proto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.proto-link {
  display: block;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm), var(--shadow-inset-top);
  transition: transform 0.2s, box-shadow 0.2s;
}

.proto-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 40px rgba(61, 139, 255, 0.12);
  border-color: rgba(61, 139, 255, 0.3);
}

.proto-link-num {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--harmony-light);
  margin-bottom: 8px;
}

.proto-link-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; color: var(--ink); }
.proto-link-desc { font-size: 12px; color: var(--ink-muted); line-height: 1.45; }

.inline-muted { font-size: 13px; color: var(--ink-secondary); line-height: 1.55; }
.inline-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px; }
.inline-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.card-padded { padding: 16px; }
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.list-row:last-child { border-bottom: none; }

.record-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.record-row:last-child { border-bottom: none; }

.record-main {
  flex: 1;
  min-width: 0;
}

.record-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.record-type {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(61, 139, 255, 0.12);
  border: 1px solid rgba(61, 139, 255, 0.22);
  font-size: 10px;
  font-weight: 600;
  color: var(--harmony-light);
}

.record-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.record-meta {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.record-fulfilled-at {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--success);
}

.records-empty {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.55;
  text-align: center;
  padding: 8px 0;
}

.profile-records-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.profile-records-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--harmony-light);
}

.quota-bar {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(61, 139, 255, 0.08);
  border: 1px solid rgba(61, 139, 255, 0.18);
  box-shadow: var(--shadow-inset-top);
}

.quota-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
}

.quota-label { color: var(--ink-secondary); font-weight: 500; }
.quota-value { color: var(--harmony-light); font-family: var(--font-display); font-size: 16px; }
.quota-bar-row-sub { margin-top: 12px; margin-bottom: 0; padding-top: 12px; border-top: 1px solid rgba(61, 139, 255, 0.12); }
.quota-value-gold { color: var(--gold); }
.quota-hint { font-size: 12px; color: var(--ink-muted); margin-top: 10px; line-height: 1.5; }

.pending-revisit-section { margin-bottom: 16px; }
.pending-revisit-section .section-head { margin-bottom: 10px; }

.dev-reset-btn {
  margin: 16px;
  width: calc(100% - 32px);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line-strong);
  background: transparent;
  color: var(--ink-muted);
  font-size: 12px;
  cursor: pointer;
}
.dev-reset-btn:active { background: rgba(255, 255, 255, 0.04); }

/* Login tabs */
.login-tabs { margin-top: 8px; }
.login-tabs .tabs { margin-bottom: 16px; }
.login-tabs .tab-panel { display: none; }
.login-tabs .tab-panel.active { display: block; }

/* Pending review */
.pending-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 40px);
  padding: 24px 20px 48px;
}
.pending-hero { text-align: center; max-width: 360px; width: 100%; }
.pending-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  background: rgba(255, 193, 7, 0.12);
  border: 1px solid rgba(255, 193, 7, 0.25);
}
.pending-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}
.pending-subtitle {
  color: var(--ink-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.pending-status {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.pending-back { margin-top: 8px; }

/* Admin dashboard */
.admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 20;
}
.admin-top-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}
.admin-page { padding: 16px 16px 40px; max-width: 960px; margin: 0 auto; }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
@media (min-width: 640px) {
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
}
.admin-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}
.admin-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--accent);
}
.admin-stat-label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--ink-muted);
}
.admin-tab-bar { flex-wrap: wrap; }
.admin-panel { display: flex; flex-direction: column; gap: 12px; }
.admin-card {
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 14px;
}
.admin-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.admin-card-title { font-weight: 600; font-size: 15px; margin: 0 0 4px; }
.admin-card-meta { font-size: 12px; color: var(--ink-muted); margin: 0; }
.admin-screenshot {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  margin-bottom: 12px;
  background: #000;
}
.admin-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-empty {
  text-align: center;
  color: var(--ink-muted);
  padding: 40px 16px;
  font-size: 14px;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-pending { background: rgba(255, 193, 7, 0.15); color: #ffc107; }
.badge-ok { background: rgba(76, 175, 80, 0.15); color: #81c784; }
.badge-reject { background: rgba(244, 67, 54, 0.15); color: #ef5350; }
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th,
.admin-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.admin-table th { color: var(--ink-muted); font-weight: 600; font-size: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13px; min-height: auto; }

@media (min-width: 481px) {
  body { padding: 28px 0; }
}
