/* ================================================================
   万绘AI v6 — Refined Light UI
   Design: Indigo-Violet gradient · Glass morphism · Light-first
   Breakpoints: 520 / 768 / 980 / 1200
   ================================================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap');

/* ═══════════════════════════════════════════════════════════════
   CSS VARIABLE SYSTEM — Light (default)
   ═══════════════════════════════════════════════════════════════ */
:root {
  /* ── Brand palette: indigo → violet → cyan glow ── */
  --brand-50: #f0f1ff;
  --brand-100: #e0e3ff;
  --brand-200: #c1c7fe;
  --brand-300: #9ba4fd;
  --brand-400: #7c81fb;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #1e1b4b;

  /* Violet / purple accent */
  --purple-400: #a78bfa;
  --purple-500: #8b5cf6;
  --purple-600: #7c3aed;
  --purple-700: #6d28d9;
  --purple-800: #5b21b6;

  /* Cyan glow */
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;

  /* Magenta / pink */
  --pink-500: #ec4899;
  --pink-600: #db2777;

  /* ── Light theme (default) ── */
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.08);
  --accent-soft-2: rgba(79, 70, 229, 0.16);
  --accent-glow: rgba(79, 70, 229, 0.22);

  --bg: #f8f7fc;
  --bg-2: #f0eef8;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-2: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;

  --line: rgba(79, 70, 229, 0.10);
  --line-strong: rgba(79, 70, 229, 0.18);

  --text: #1a1740;
  --text-2: #433e63;
  --text-3: #8a85a8;
  --text-on-accent: #ffffff;

  --gradient: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
  --gradient-accent: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --gradient-warm: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 48%, #ec4899 100%);

  --shadow-sm: 0 1px 3px rgba(67, 56, 202, 0.05), 0 1px 2px rgba(67, 56, 202, 0.04);
  --shadow: 0 4px 16px rgba(67, 56, 202, 0.06), 0 2px 6px rgba(67, 56, 202, 0.04);
  --shadow-lg: 0 12px 40px rgba(67, 56, 202, 0.07), 0 4px 12px rgba(67, 56, 202, 0.04);
  --shadow-glow: 0 8px 30px rgba(79,70,229,0.15), 0 2px 8px rgba(79,70,229,0.08);
  --shadow-glow-lg: 0 16px 50px rgba(79,70,229,0.22), 0 4px 14px rgba(79,70,229,0.10);

  --success: #22c55e;
  --warning: #f59e0b;
  --error: #ef4444;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 28px;

  --header-h: 52px;
  --tab-h: 68px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ═══════════════════════════════════════════════════════════════
   RESET / BASE
   ═══════════════════════════════════════════════════════════════ */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--accent-hover);
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}

input, textarea, select {
  font-family: inherit;
}

svg {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   STUDIO BACKGROUND (animated orbs + grid)
   ═══════════════════════════════════════════════════════════════ */
.studio-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% -10%, rgba(99, 102, 241, 0.22), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(139, 92, 246, 0.20), transparent 36%),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.12), transparent 40%),
    var(--bg);
}

.studio-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: orbFloat 20s ease-in-out infinite;
}
.studio-orb.a {
  width: 500px;
  height: 500px;
  left: -180px;
  top: -80px;
  background: rgba(99, 102, 241, 0.35);
  animation-delay: 0s;
}
.studio-orb.b {
  width: 420px;
  height: 420px;
  right: -140px;
  top: 120px;
  background: rgba(139, 92, 246, 0.28);
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(-30px, -15px) scale(1.03); }
}

.studio-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, transparent 85%);
}

/* ═══════════════════════════════════════════════════════════════
   STUDIO SHELL — desktop sidebar + main content
   ═══════════════════════════════════════════════════════════════ */
.studio-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px;
  min-height: 100vh;
}

/* ── Sidebar ── */
.studio-sidebar {
  position: sticky;
  top: 18px;
  height: calc(100vh - 36px);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 22px 18px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
}

.studio-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  padding: 0 0 20px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 16px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/img/wanhui-logo-wide.png') center/auto 40px no-repeat;
  filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.7));
}

.brand-name {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--accent);
}

/* ── Sidebar nav ── */
.studio-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.studio-nav a {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  column-gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.2s;
  position: relative;
}
.studio-nav a span {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s;
}
.studio-nav a b {
  color: var(--text);
  font-size: 14px;
}
.studio-nav a small {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
}
.studio-nav a.active {
  background: var(--accent-soft);
  border-color: var(--accent-soft-2);
  box-shadow: var(--shadow-glow);
}
.studio-nav a.active span {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.studio-nav a:hover:not(.active) {
  background: rgba(255, 255, 255, 0.03);
}

/* ── Sidebar points card ── */
.sidebar-card {
  color: var(--text-2) !important;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.sidebar-card span {
  color: var(--text-3);
  font-size: 12px;
}
.sidebar-card strong {
  display: block;
  color: var(--text);
  font-size: 36px;
  line-height: 1;
  margin: 8px 0 14px;
  font-weight: 900;
}
.sidebar-card a {
  color: #fff;
  background: var(--gradient);
  display: block;
  text-align: center;
  border-radius: var(--radius);
  padding: 10px;
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sidebar-card a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
}

/* ═══════════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════════ */
.studio-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 8px 4px;
}

.top-kicker {
  margin: 0;
  color: var(--purple-400);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.studio-topbar h1 {
  margin: 6px 0 0;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #ffffff 0%, #a8b4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.points-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff !important;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.points-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-lg);
}

.avatar-chip {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--gradient);
  font-weight: 900;
  font-size: 16px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   NOTICE BAR
   ═══════════════════════════════════════════════════════════════ */
.studio-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  margin-bottom: 14px;
  backdrop-filter: blur(12px);
}
.notice-bar .nb-text {
  flex: 1;
}
.notice-bar .nb-close {
  color: var(--text-3);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}
.notice-bar .nb-close:hover {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   STUDIO CONTENT
   ═══════════════════════════════════════════════════════════════ */
.studio-content {
  padding-bottom: 40px;
}

/* ═══════════════════════════════════════════════════════════════
   GLASS PANEL
   ═══════════════════════════════════════════════════════════════ */
.glass-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════════════════════════
   BOTTOM TAB BAR (mobile)
   ═══════════════════════════════════════════════════════════════ */
.studio-mobile-tab {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--tab-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
  z-index: 50;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.3);
}

.studio-mobile-tab a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-3);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  transition: color 0.2s, transform 0.2s;
}
.studio-mobile-tab a span:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
}
.studio-mobile-tab a svg {
  width: 24px;
  height: 24px;
  transition: transform 0.2s;
}
.studio-mobile-tab a.active {
  color: var(--accent);
}
.studio-mobile-tab a.active svg {
  stroke: var(--accent);
}
.studio-mobile-tab a.active span:first-child {
  animation: tabPop 0.3s ease;
}

@keyframes tabPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn.full {
  width: 100%;
}
.btn.lg {
  padding: 14px 24px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}
.btn.sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: var(--radius-sm);
}
.btn.xs {
  padding: 4px 10px;
  font-size: 11px;
  border-radius: 10px;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow-lg);
}

.btn-gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
  font-weight: 800;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
}

.btn-secondary {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.btn-secondary:hover {
  background: var(--accent-soft-2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════════ */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.form-group .hint-dim {
  font-weight: normal;
  color: var(--text-3);
  font-size: 12px;
}

input[type=text],
input[type=email],
input[type=password],
input[type=url],
input[type=number],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 0 30px rgba(99, 102, 241, 0.25);
  transform: translateY(-1px);
}
input::placeholder,
textarea::placeholder {
  color: var(--text-3);
}
textarea {
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.form-row > input,
.form-row > select {
  flex: 1;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 14px;
}
.alert-error {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
.alert-ok {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.hint-text {
  font-size: 12px;
  color: var(--text-3);
  margin: 8px 0;
}

/* ═══════════════════════════════════════════════════════════════
   LANDING PAGE — full-screen hero
   ═══════════════════════════════════════════════════════════════ */
.landing-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  color: var(--text);
}
.landing-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% -10%, rgba(99, 102, 241, 0.18), transparent 35%),
    radial-gradient(circle at 90% 15%, rgba(139, 92, 246, 0.16), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(6, 182, 212, 0.08), transparent 36%),
    radial-gradient(circle at 30% 60%, rgba(236, 72, 153, 0.04), transparent 40%),
    var(--bg);
}

/* ── Landing page bg orbs (animated, reuses orbFloat) ── */
.landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.landing-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: orbFloat 22s ease-in-out infinite;
}
.landing-orb.a {
  width: 540px;
  height: 540px;
  left: -200px;
  top: -100px;
  background: rgba(99, 102, 241, 0.10);
  animation-delay: 0s;
}
.landing-orb.b {
  width: 460px;
  height: 460px;
  right: -160px;
  top: 80px;
  background: rgba(139, 92, 246, 0.08);
  animation-delay: -9s;
}
.landing-orb.c {
  width: 350px;
  height: 350px;
  left: 40%;
  bottom: -80px;
  background: rgba(6, 182, 212, 0.05);
  animation-delay: -5s;
}

/* ── Landing Nav ── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: background 0.3s, box-shadow 0.3s;
}
.landing-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.landing-nav .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.landing-nav .brand .logo-img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: transparent;
}
.landing-nav .brand .brand-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.landing-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.landing-nav .nav-links a {
  color: var(--text-2);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}
.landing-nav .nav-links a:hover {
  color: var(--text);
}

/* ── Landing Hero ── */
.landing-hero {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding: 50px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

/* ── Landing CTA glow pulse ── */
.landing-hero .mega-cta {
  position: relative;
  overflow: hidden;
}
.landing-hero .mega-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  animation: ctaShine 3s ease-in-out infinite;
}
@keyframes ctaShine {
  0%, 100% { left: -100%; }
  50% { left: 120%; }
}

/* ── Showcase stats glow ── */
.hero-text .stats .stat .v {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Landing nav pill glow ── */
.landing-nav .badge {
  animation: pillPulse 3s ease-in-out infinite;
}
@keyframes pillPulse {
  0%, 100% { box-shadow: 0 0 12px rgba(99, 102, 241, 0.15); }
  50% { box-shadow: 0 0 24px rgba(99, 102, 241, 0.35); }
}

@media (min-width: 980px) {
  .landing-hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 80px 32px 100px;
    gap: 60px;
  }
}

.hero-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.hero-text h1 {
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 900;
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--text);
  letter-spacing: -0.03em;
}
.hero-text h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text .lead {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-2);
  margin: 0 0 30px;
  max-width: 560px;
  line-height: 1.75;
}

.hero-text .stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
}

.hero-text .stats .stat .v {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.hero-text .stats .stat .l {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ── Hero Showcase Masonry ── */
.hero-showcase {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  height: 500px;
}
.hero-showcase .col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-showcase .col:nth-child(2) {
  padding-top: 40px;
}
.hero-showcase .col:nth-child(3) {
  padding-top: 80px;
}
.hero-showcase .item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  aspect-ratio: 3/4;
  position: relative;
  border: 1px solid var(--line);
}
.hero-showcase .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-showcase .item .caption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 11px;
  backdrop-filter: blur(10px);
}

/* ── Landing Features Section ── */
.landing-section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.landing-section h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  font-weight: 900;
  text-align: center;
  margin: 0 0 14px;
  letter-spacing: -0.02em;
}
.landing-section .sub-title {
  text-align: center;
  color: var(--text-2);
  margin: 0 0 50px;
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.feature-card:hover::after {
  opacity: 1;
}
.feature-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(99, 102, 241, 0.12);
  border-color: var(--accent-soft-2);
}
.feature-card .ic {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-glow);
}
.feature-card .ic svg {
  width: 26px;
  height: 26px;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}
.feature-card p {
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.7;
}

/* ── Landing Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--line);
  text-align: center;
  position: relative;
  backdrop-filter: blur(16px);
  transition: transform 0.3s, box-shadow 0.3s;
}
.price-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.price-card.featured {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-glow-lg);
}
.price-card.featured .pop-badge {
  background: #fff;
  color: var(--accent);
}
.price-card.featured .price-cta {
  background: #fff;
  color: var(--accent);
}
.price-card .pop-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
}
.price-card .price-amt {
  font-size: 36px;
  font-weight: 900;
  margin: 14px 0 4px;
}
.price-card .price-amt .yuan {
  font-size: 16px;
  opacity: 0.8;
}
.price-card .price-points {
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 18px;
}
.price-card .price-cta {
  display: inline-block;
  padding: 12px 26px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s;
}
.price-card .price-cta:hover {
  transform: translateY(-2px);
}

/* ── Landing Auth Card ── */
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  position: relative;
  backdrop-filter: blur(24px);
}
.auth-card .tab-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 5px;
  background: var(--bg-2);
  border-radius: var(--radius);
  margin-bottom: 26px;
}
.auth-card .tab-switch button {
  padding: 10px;
  border-radius: calc(var(--radius) - 4px);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-2);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.auth-card .tab-switch button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.15);
}
.auth-card .tab-switch button:hover:not(.active) {
  color: var(--text);
  background: rgba(99, 102, 241, 0.06);
}
.auth-card h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
}
.auth-card .sub {
  color: var(--text-3);
  font-size: 13px;
  margin-bottom: 24px;
}

.auth-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.auth-footer a {
  color: var(--accent);
  font-weight: 700;
}

/* ── Landing Footer ── */
.landing-footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
  background: rgba(10, 10, 22, 0.6);
  backdrop-filter: blur(16px);
}

/* ═══════════════════════════════════════════════════════════════
   HOME / CREATE PAGE (index.ejs)
   ═══════════════════════════════════════════════════════════════ */
.creator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 18px;
}

.creator-panel {
  padding: 24px;
}

.creator-hero-inline h2 {
  margin: 10px 0;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #fff 0%, #a8b4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.creator-hero-inline p {
  color: var(--text-2);
  line-height: 1.75;
}

/* ── Eyebrow ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #8a85a8;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  justify-content: center;
}
.eyebrow span {
  width: 22px;
  height: 2.5px;
  border-radius: 99px;
  background: linear-gradient(90deg, #4f46e5, #8b5cf6);
  box-shadow: 0 0 8px rgba(79,70,229,0.3);
}

/* ── Prompt Area ── */
.studio-prompt {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 20px;
}
.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-title div span {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.panel-title div small {
  display: block;
  color: var(--text-3);
  font-size: 12px;
  margin-top: 4px;
}
.ai-write-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--line);
}
.studio-prompt textarea {
  min-height: 140px;
  color: var(--text);
  background: transparent;
  border: none;
  width: 100%;
  font-size: 14px;
}
.studio-prompt textarea:focus {
  box-shadow: none;
}
.studio-prompt textarea::placeholder {
  color: var(--text-3);
}

/* ── Section Label ── */
.section-label {
  font-size: 12px;
  color: var(--text-3);
  margin: 18px 0 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Model Grid ── */
.model-grid.studio-models {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.model-card {
  position: relative;
  padding: 20px 18px;
  border-radius: 18px;
  background: #fff;
  border: 1.5px solid rgba(79,70,229,0.08);
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  overflow: hidden;
}
.model-card .model-glow {
  position: absolute;
  inset: -60px -40px auto auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 60%);
  filter: blur(4px);
  opacity: 0;
  transition: opacity 0.4s;
}
.model-card .model-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79,70,229,0.06);
  color: #4f46e5;
  margin-bottom: 14px;
  position: relative;
  transition: background 0.3s, box-shadow 0.3s;
}
.model-card.active {
  border-color: #4f46e5;
  background: linear-gradient(135deg, rgba(79,70,229,0.04), rgba(139,92,246,0.03));
  box-shadow: 0 0 0 4px rgba(79,70,229,0.06), 0 4px 20px rgba(79,70,229,0.10);
  transform: translateY(-3px);
}
.model-card.active .model-glow {
  opacity: 1;
}
.model-card.active .model-icon {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,0.3);
}
.model-card .mc-name {
  font-weight: 700;
  font-size: 15px;
  color: #1a1740;
}
.model-card .mc-desc {
  font-size: 12px;
  color: #8a85a8;
  margin-top: 4px;
  line-height: 1.5;
}
.model-card .mc-cost {
  font-size: 12px;
  color: #4f46e5;
  font-weight: 700;
  margin-top: 10px;
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(79,70,229,0.06);
}
.model-card .pro-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 10px rgba(79,70,229,0.3);
}
.model-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79,70,229,0.18);
  box-shadow: 0 8px 30px rgba(79,70,229,0.08), 0 2px 6px rgba(0,0,0,0.03);
}

/* ── Option Pills ── */
.studio-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.opt-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.opt-pill {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: #4a4570;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  border: 1.5px solid rgba(79,70,229,0.10);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.opt-pill.active {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(79,70,229,0.25);
  font-weight: 700;
  transform: translateY(-1px);
}
.opt-pill[aria-disabled="true"],
.opt-pill.locked {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

.opt-pill:hover:not(.locked):not([aria-disabled="true"]) {
  border-color: #4f46e5;
  background: rgba(79,70,229,0.04);
  color: #1a1740;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(79,70,229,0.10);
}
.opt-pill {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

/* ── Reference Row ── */
.studio-ref {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 14px;
}
.ref-add {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  border: 2px dashed rgba(79,70,229,0.20);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #8a85a8;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(79,70,229,0.02);
}
.ref-add:hover {
  border-color: #4f46e5;
  color: #4f46e5;
  background: rgba(79,70,229,0.05);
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(79,70,229,0.08);
}
.ref-add em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
}
.ref-thumb {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  border: 1px solid rgba(79,70,229,0.10);
}
.ref-thumb .x {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a1740;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.ref-thumb .x:hover { background: #ef4444; }

/* ── Generate Button ── */
.btn-generate {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #8b5cf6 100%);
  color: #fff;
  border-radius: 18px;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(79,70,229,0.25), 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}
.btn-generate:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(79,70,229,0.35), 0 4px 12px rgba(0,0,0,0.08);
}
.btn-generate:active {
  transform: translateY(0);
}
.btn-generate:disabled {
  background: #e8e5f2;
  color: #a8a3c8;
  box-shadow: none;
  cursor: not-allowed;
}
@keyframes generatePulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(79,70,229,0.25), 0 2px 8px rgba(0,0,0,0.06); }
  50% { box-shadow: 0 12px 44px rgba(79,70,229,0.38), 0 6px 20px rgba(139,92,246,0.18); }
}
.btn-generate:not(:disabled) {
  animation: generatePulse 2.8s ease-in-out infinite;
}

.btn-generate svg {
  width: 20px;
  height: 20px;
}
.btn-generate i {
  position: absolute;
  inset: -2px;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.12) 45%, rgba(255,255,255,0.18) 50%, rgba(255,255,255,0.12) 55%, transparent 60%);
  transform: translateX(-120%);
  animation: shineMove 3.2s ease-in-out infinite;
}
.btn-generate small {
  font-size: 10px;
  letter-spacing: 0.15em;
  opacity: 0.65;
  margin-left: 4px;
  text-transform: uppercase;
}

@keyframes shineMove {
  55%, 100% { transform: translateX(120%); }
}

/* ── Preview Panel ── */
.preview-panel {
  padding: 24px;
}

.preview-frame {
  height: 320px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 70% 18%, var(--accent-soft), transparent 32%),
    linear-gradient(145deg, rgba(20, 30, 60, 0.7), rgba(8, 14, 32, 0.8));
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: var(--text-2);
}

.preview-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: var(--gradient);
  margin-bottom: 14px;
  box-shadow: var(--shadow-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #fff;
}
.preview-frame b {
  display: block;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
}
.preview-frame span {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
}

.tips-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}
.tips-card b {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  display: block;
}
.tips-card p {
  color: var(--text-2);
  line-height: 1.7;
  font-size: 13px;
  margin: 0;
}

/* ── Result Card ── */
.result-card {
  margin: 16px 0;
  padding: 18px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  overflow: auto;
}
.result-card .head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text);
}
.result-card .head .meta {
  font-weight: normal;
  color: var(--text-3);
  font-size: 12px;
  margin-left: auto;
}
.result-card .placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 16px;
  text-align: center;
  color: var(--text-3);
  font-size: 13px;
}
.result-card .placeholder svg {
  color: var(--purple-600);
  margin-bottom: 10px;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}
.result-grid img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius);
  cursor: zoom-in;
  border: 1px solid var(--line);
}

/* Spinner */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY PAGE
   ═══════════════════════════════════════════════════════════════ */
.gallery-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-head {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.page-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  margin: 4px 0;
  background: linear-gradient(180deg, #fff 0%, #a8b4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-head p {
  color: var(--text-2);
  margin: 0;
}

.mega-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--gradient);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.mega-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow-lg);
}
.mega-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.mega-cta:active {
  transform: translateY(0) scale(0.98);
}

/* ── Gallery Filters ── */
.gallery-filters {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr 160px auto auto;
  gap: 10px;
  align-items: center;
}
.gallery-filters input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 14px;
}
.gallery-filters select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 13px;
}
.gallery-filters .btn {
  height: 42px;
}

/* ── Masonry Gallery ── */
.masonry-gallery {
  columns: 4 220px;
  column-gap: 14px;
}
.studio-card {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: var(--radius-lg);
  min-height: 200px;
  box-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.studio-card img {
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: cover;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
  aspect-ratio: 3/4;
  transition: transform 0.2s;
  border: 1px solid var(--line);
}
.gallery-card:active {
  transform: scale(0.98);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 12px;
  gap: 10px;
}

  background: rgba(239, 68, 68, 0.3);
  border-color: rgba(239, 68, 68, 0.4);
}

/* ── Empty State ── */
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-3);
}
.empty svg {
  color: var(--purple-600);
  margin-bottom: 16px;
}
.empty p {
  margin: 0 0 18px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   PROFILE PAGE
   ═══════════════════════════════════════════════════════════════ */
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 18px;
}

.account-hero {
  padding: 26px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.avatar.xl {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 36px;
  color: #fff;
  background-color: var(--gradient-accent);
  border: 3px solid var(--line);
  cursor: pointer;
  position: relative;
}
.avatar.xl .edit-ico {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}
.avatar.xl .edit-ico svg {
  width: 12px;
  height: 12px;
}

.account-meta p {
  color: var(--text-2);
  font-size: 13px;
}
.account-meta h2 {
  margin: 6px 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  background: linear-gradient(180deg, #fff 0%, #a8b4ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.inline-icon {
  color: var(--accent);
  margin-left: 4px;
  cursor: pointer;
}

.account-points {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  min-width: 200px;
}
.account-points span {
  color: var(--text-3);
  font-size: 12px;
}
.account-points strong {
  display: block;
  font-size: 44px;
  line-height: 1;
  color: var(--text);
  margin: 10px 0 16px;
  font-weight: 900;
}
.account-points button {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--gradient);
  font-weight: 800;
  font-size: 13px;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s;
}
.account-points button:hover {
  transform: translateY(-2px);
}

/* ── Account Menu ── */
.account-menu {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.menu-tile {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.menu-tile:hover {
  background: var(--accent-soft);
  transform: translateX(4px);
}
.menu-tile span:first-child {
  grid-row: 1 / 3;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.menu-tile b {
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.menu-tile small {
  color: var(--text-3);
  font-size: 12px;
}
.menu-tile.danger {
  border-color: rgba(239, 68, 68, 0.2);
}
.menu-tile.danger span:first-child {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
}

/* ═══════════════════════════════════════════════════════════════
   BOTTOM SHEETS
   ═══════════════════════════════════════════════════════════════ */
/* ── Recharge Grid ── */
.recharge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.price-main {
  font-size: 26px;
  font-weight: 900;
  color: var(--accent);
}

/* ── Contact Box ── */
.contact-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: var(--radius);
  white-space: pre-wrap;
  line-height: 1.8;
  color: var(--text);
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 200;
  display: none;
  flex-direction: column;
}
.lightbox.show {
  display: flex;
}
.lightbox .lb-close,
.lightbox .lb-action {
  position: absolute;
  top: max(16px, var(--safe-top));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  cursor: pointer;
  backdrop-filter: blur(12px);
  font-size: 20px;
}
.lightbox .lb-close {
  right: 16px;
}
.lightbox .lb-action {
  right: 68px;
}
.lightbox .lb-img-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 16px 16px;
  overflow: hidden;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox .lb-info {
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 20px;
  backdrop-filter: blur(12px);
  font-size: 13px;
}
.lightbox .lb-info .prompt {
  margin-bottom: 14px;
  max-height: 100px;
  overflow-y: auto;
  line-height: 1.7;
}
.lightbox .lb-info .actions {
  display: flex;
  gap: 8px;
}
.lightbox .lb-info .actions .btn {
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY DETAIL LIGHTBOX
   ═══════════════════════════════════════════════════════════════ */
.gallery-detail-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  padding: 28px;
}
.gdl-close {
  position: fixed;
  right: 22px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 30px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gdl-stage {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gdl-stage img {
  max-width: 100%;
  max-height: calc(100vh - 56px);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(99, 102, 241, 0.3);
  border: 1px solid var(--line);
}
.gdl-info {
  align-self: center;
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.gdl-info h3 {
  font-size: 32px;
  margin: 8px 0 18px;
}
.gdl-prompt {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  line-height: 1.8;
  color: var(--text-2);
}
.gdl-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.gdl-meta span {
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
}
.gdl-meta b {
  display: block;
  color: var(--text);
  margin-top: 4px;
  font-weight: 700;
}
.gdl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════════════ */
#toastContainer {
  position: fixed;
  top: max(16px, calc(var(--safe-top) + 8px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: rgba(20, 22, 40, 0.95);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
}
.toast.ok {
  background: rgba(34, 197, 94, 0.95);
  color: #fff;
}
.toast.error {
  background: rgba(239, 68, 68, 0.95);
  color: #fff;
}
.toast svg {
  width: 16px;
  height: 16px;
}
@keyframes toastIn {
  from { transform: translateY(-14px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   HELPERS
   ═══════════════════════════════════════════════════════════════ */
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.row.sb {
  justify-content: space-between;
}
.muted {
  color: var(--text-3);
  font-size: 12px;
}
.center {
  text-align: center;
}
.text-gain {
  color: var(--success);
  font-weight: 600;
}
.text-spend {
  color: var(--error);
  font-weight: 600;
  }

/* ═══════════════════════════════════════════════════════════════
   POINTS LOG PAGE
   ═══════════════════════════════════════════════════════════════ */
.points-list {
  padding: 8px 16px;
}
.points-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.points-row .ic {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.points-row .ic.gain {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}
.points-row .ic.spend {
  background: rgba(239, 68, 68, 0.15);
  color: var(--error);
}
.points-row .text {
  flex: 1;
}
.points-row .text .desc {
  font-size: 14px;
  font-weight: 600;
}
.points-row .text .time {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 4px;
}
.points-row .amt {
  font-size: 18px;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN
   ═══════════════════════════════════════════════════════════════ */
.admin-shell {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
}
.admin-shell .admin-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(16px);
}
.admin-bar .brand {
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.admin-bar .brand .logo-fallback {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}
.admin-bar nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
  align-items: center;
}
.admin-bar nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.admin-bar nav a:hover {
  background: var(--accent-soft);
  color: var(--accent);
}
.admin-bar nav a.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.admin-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}
.admin-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.admin-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.stat-card {
  background: var(--surface);
  border-radius: var(--radius-green);
  padding: 20px;
  border: 1px solid var(--line);
}
.stat-card .stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.stat-card .stat-label {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 4px;
}

.table-wrap {
  overflow-x: auto;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  background: var(--bg-2);
  font-weight: 600;
  color: var(--text-2);
  font-size: 12px;
}
.admin-table td {
  padding: 12px;
  border-top: 1px solid var(--line);
}
.admin-table tbody tr:hover {
  background: var(--accent-soft);
}

.prompt-cell {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-3);
}
.pagination a {
  padding: 6px 12px;
  border-radius: 8px;
}
.pagination a:hover {
  background: var(--accent-soft);
}

.search-bar {
  display: flex;
  gap: 8px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.detail-item {
  background: var(--bg-2);
  padding: 12px;
  border-radius: var(--radius-sm);
}
.detail-item label {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 4px;
}
.detail-item span {
  font-weight: 600;
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES (login / register / forgot)
   ═══════════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  position: relative;
  background: var(--bg);
}
.auth-page::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 0%, rgba(99, 102, 241, 0.15), transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(139, 92, 246, 0.15), transparent 35%);
}

.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}
.brand-wordmark {
  font-size: 30px;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.04em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}
.auth-header p {
  margin: 10px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

/* ── App Body ── */
.app-body {
  background: linear-gradient(180deg, #f8f6ff 0%, #f5f3ff 15%, #f0edfa 100%);
  color: #1a1740;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', 'Noto Sans SC', -apple-system, sans-serif;
}

/* ── Top Navigation ── */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 24px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px) saturate(2);
  -webkit-backdrop-filter: blur(20px) saturate(2);
  border-bottom: 1px solid rgba(79,70,229,0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 -1px 0 rgba(0,0,0,0.03);
  gap: 16px;
}
.top-nav .nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 18px;
  color: #1a1740;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.top-nav .nav-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}
.top-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-nav .nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #4a4570;
  text-decoration: none;
  transition: all 0.2s;
}
.top-nav .nav-links a:hover {
  background: rgba(79,70,229,0.06);
  color: #1a1740;
  transform: translateY(-1px);
}
.top-nav .nav-links a.active {
  background: rgba(79,70,229,0.08);
  color: #4f46e5;
  box-shadow: 0 1px 3px rgba(79,70,229,0.10);
}
.top-nav .nav-links a span[data-icon] {
  display: inline-flex;
}
.top-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.points-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(139,92,246,0.06));
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1px solid rgba(79,70,229,0.10);
}
.avatar-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  flex-shrink: 0;
}

/* ── App Main ── */
.app-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
}

/* ── Bottom Tab (mobile) ── */
.bottom-tab {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 68px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(24px) saturate(2);
  -webkit-backdrop-filter: blur(24px) saturate(2);
  border-top: 1px solid rgba(79,70,229,0.08);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.04);
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bottom-tab a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8a85a8;
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
  position: relative;
}
.bottom-tab a.active {
  color: #4f46e5;
}
.bottom-tab a.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #4f46e5;
}
.bottom-tab a span[data-icon] {
  display: inline-flex;
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.bottom-tab a.active span[data-icon] {
  transform: scale(1.12);
}

/* ── Notice Bar ── */
.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  background: rgba(79,70,229,0.06);
  color: #4a4570;
  font-size: 13px;
  margin-bottom: 20px;
  border: 1px solid rgba(79,70,229,0.10);
}
.notice-bar .nb-close {
  margin-left: auto;
  cursor: pointer;
  color: #8a85a8;
}
/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ═══════════════════════════════════════════════════════════════ */

/* 980px — collapse to mobile: hide sidebar, show bottom tab */
@media (max-width: 980px) {
  .studio-shell {
    display: block;
    padding: 12px 12px 96px;
  }
  .studio-sidebar {
    display: none;
  }
  .studio-mobile-tab {
    display: grid !important;
  }
  .creator-grid {
    grid-template-columns: 1fr;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .studio-topbar {
    padding: 4px 2px 10px;
  }
  .studio-topbar h1 {
    font-size: 26px;
  }
  .preview-panel {
    order: 2;
  }
  .studio-options {
    grid-template-columns: 1fr;
  }
  .gallery-filters {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .gallery-filters .btn {
    min-height: 42px;
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-head .mega-cta {
    margin-top: 14px;
  }
  .account-hero {
    grid-template-columns: 1fr;
  }
  .account-points {
    min-width: 0;
  }
  .gallery-overlay {
    opacity: 1;
  }
  .masonry-gallery {
    columns: 2 160px;
  }
  .creator-panel,
  .preview-panel {
    padding: 18px;
    border-radius: var(--radius-lg);
  }
  .preview-frame {
    height: 220px;
  }
  .studio-prompt textarea {
    min-height: 150px;
  }
  .model-grid.studio-models {
    grid-template-columns: 1fr;
  }
  .gallery-detail-lightbox {
    display: flex;
    flex-direction: column;
    padding: 14px 14px 96px;
    overflow: auto;
  }
  .gdl-stage {
    min-height: 45vh;
  }
  .gdl-stage img {
    max-height: 58vh;
  }
  .gdl-info {
    max-height: none;
    align-self: stretch;
  }
  .gdl-meta {
    grid-template-columns: 1fr 1fr;
  }
}

/* 768px — narrow desktop polish */
@media (min-width: 768px) {
  body {
    padding: 18px 0;
  }
  .studio-shell {
    border-radius: 0;
  }
}

/* 520px — phone layout */
@media (max-width: 520px) {
  .top-nav {
    padding: 0 14px;
  }
  .top-nav .nav-brand span {
    font-size: 15px;
  }
  .app-main {
    padding: 10px 10px 92px;
  }
  .points-badge {
    font-size: 11px;
    padding: 4px 10px;
  }
  .masonry-gallery {
    columns: 1;
  }
  .gallery-filters {
    grid-template-columns: 1fr;
  }
  .creator-hero-inline h2,
  .page-head h2 {
    font-size: 26px;
  }
  .studio-card img {
    min-height: 200px;
  }
  .recharge-grid {
    grid-template-columns: 1fr;
  }
  .landing-nav {
    padding: 12px 14px;
  }
  .landing-nav .nav-links {
    gap: 14px;
  }
  .landing-nav .nav-links a {
    font-size: 12px;
  }
  .landing-hero {
    padding: 36px 14px 48px;
  }
  .landing-section {
    padding: 50px 14px;
  }
  .hero-showcase {
    height: 360px;
    gap: 10px;
  }
  .hero-showcase .col:nth-child(2) {
    padding-top: 30px;
  }
  .hero-showcase .col:nth-child(3) {
    padding-top: 60px;
  }
  .hero-text .stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .auth-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }
  .auth-card h2 {
    font-size: 20px;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .feature-card {
    padding: 20px;
  }
  .feature-card h3 {
    font-size: 15px;
  }
  .feature-card p {
    font-size: 12px;
  }
  .landing-nav .brand .logo-img {
    width: 28px;
    height: 28px;
  }
  .landing-nav .brand .brand-text {
    font-size: 16px;
  }
}

/* ── v6: hide old sidebar/shell when using app-body ── */
.app-body .studio-sidebar,
.app-body .studio-shell,
.app-body .studio-bg,
.app-body .studio-topbar,
.app-body .studio-mobile-tab,
.app-body .studio-brand,
.app-body .studio-nav,
.app-body .sidebar-card,
.app-body .studio-main,
.app-body .studio-content { display: none !important; }

@media (max-width: 980px) {
  /* v6: show bottom tab */
  .bottom-tab {
    display: grid !important;
  }
  .app-main {
    padding: 16px 16px 96px;
  }
  .top-nav .nav-links {
    display: none;
  }
  .creator-grid {
    grid-template-columns: 1fr;
  }
  .account-grid {
    grid-template-columns: 1fr;
  }
  .admin-layout {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .gallery-filters {
    grid-template-columns: 1fr 1fr;
  }
  .masonry-gallery {
    columns: 2;
  }
  .creator-hero-inline h2,
  .page-head h2 {
    font-size: 30px;
  }
  .hero-showcase {
    height: 380px;
  }
  .hero-showcase .col:nth-child(2) {
    padding-top: 30px;
  }
  .hero-showcase .col:nth-child(3) {
    padding-top: 60px;
  }
  .landing-hero {
    padding: 50px 16px 60px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   v6 CREATE PAGE — Card-based single-column flow
   ═══════════════════════════════════════════════════════════════ */

.create-page {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: pageFadeIn 0.45s ease-out;
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.create-hero {
  text-align: center;
  padding: 4px 0 8px;
}
.create-hero h2 {
  font-size: 30px;
  font-weight: 900;
  margin: 6px 0 4px;
  letter-spacing: -0.03em;
  color: #1a1740;
}
.create-hero p {
  font-size: 14px;
  color: #6b6790;
  margin: 0;
  line-height: 1.6;
}

.create-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(79,70,229,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 14px rgba(0,0,0,0.04);
  transition: box-shadow 0.3s, transform 0.3s;
}
.create-card:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 8px 24px rgba(79,70,229,0.05);
}
.create-card .card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 14px;
  color: #1a1740;
}
.create-card .card-header small {
  color: #8a85a8;
  font-weight: 500;
  font-size: 12px;
  margin-left: auto;
}
.create-card textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  font-family: inherit;
  background: #faf9ff;
  color: #1a1740;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.create-card textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79,70,229,0.05), 0 0 25px rgba(79,70,229,0.04);
}
.create-card .card-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}
.btn-ai-write {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(79,70,229,0.15);
  background: linear-gradient(135deg, rgba(79,70,229,0.03), rgba(139,92,246,0.02));
  color: #4f46e5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
}
.btn-ai-write:hover {
  background: rgba(79,70,229,0.08);
  border-color: rgba(79,70,229,0.25);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(79,70,229,0.10);
}

/* Model row */
.model-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Result card in create page */
.create-page .result-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(79,70,229,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 14px rgba(0,0,0,0.04);
  padding: 18px;
  overflow: hidden;
  animation: cardReveal 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.create-page .result-card .head {
  margin-bottom: 12px;
}

/* Tips card */
.create-page .tips-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(79,70,229,0.06);
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.create-page .tips-card b {
  display: block;
  font-size: 15px;
  margin-bottom: 8px;
  color: #1a1740;
}
.create-page .tips-card p {
  font-size: 13px;
  color: #4a4570;
  margin: 0;
  line-height: 1.7;
}

/* ═══════════════════════════════════════════════════════════════
   v6 GALLERY + PROFILE — Card-based clean design
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   v6 GALLERY + PROFILE — 2026 redesign
   ═══════════════════════════════════════════════════════════════ */

/* ── GALLERY PAGE ── */
.gallery-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: pageFadeIn 0.4s ease-out;
}

/* Banner */
.gallery-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #8b5cf6 100%);
  border-radius: 20px;
  color: #fff;
  box-shadow: 0 8px 32px rgba(79,70,229,0.20);
  position: relative;
  overflow: hidden;
}
.gallery-banner::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.gallery-banner::after {
  content: '';
  position: absolute;
  right: 40%;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06), transparent 50%);
  pointer-events: none;
}
.gallery-banner-text {
  position: relative;
  z-index: 1;
}
.gallery-banner-text h2 {
  font-size: 30px;
  font-weight: 900;
  margin: 6px 0 4px;
  letter-spacing: -0.02em;
}
.gallery-banner-text p {
  font-size: 14px;
  opacity: 0.75;
  margin: 0;
}
.gallery-banner-text .eyebrow {
  color: rgba(255,255,255,0.7) !important;
  justify-content: flex-start;
}
.gallery-banner-text .eyebrow span {
  background: rgba(255,255,255,0.5) !important;
  box-shadow: none !important;
}
.gallery-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.25s;
}
.gallery-cta:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

/* Toolbar */
.gallery-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.gallery-search {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(79,70,229,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.gallery-search span[data-icon] { color: #8a85a8; flex-shrink: 0; }
.gallery-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  color: #1a1740;
  background: transparent;
  min-width: 0;
}
.gallery-search input::placeholder { color: #b0abc8; }
.gallery-search select {
  border: none;
  outline: none;
  font-size: 13px;
  color: #4a4570;
  background: transparent;
  padding: 4px 8px;
  border-left: 1px solid rgba(0,0,0,0.08);
  cursor: pointer;
}
.gallery-search-btn {
  padding: 8px 16px;
  border-radius: 10px;
  background: #4f46e5;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.gallery-search-btn:hover { background: #4338ca; }
.gallery-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #4a4570;
  text-decoration: none;
  border: 1px solid rgba(79,70,229,0.10);
  background: rgba(79,70,229,0.03);
  transition: all 0.2s;
}
.gallery-fav-btn:hover, .gallery-fav-btn.active {
  color: #e11d48;
  border-color: rgba(225,29,72,0.20);
  background: rgba(225,29,72,0.05);
}
.gallery-count {
  font-size: 13px;
  color: #8a85a8;
  font-weight: 600;
  margin-left: auto;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(79,70,229,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.empty-illustration {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(139,92,246,0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a85a8;
}
.empty-state h3 { font-size: 18px; margin: 0 0 8px; color: #1a1740; }
.empty-state p { color: #8a85a8; margin: 0 0 20px; font-size: 14px; }

/* Masonry */
.masonry-gallery {
  columns: 3 220px;
  column-gap: 16px;
}
.gallery-card {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(79,70,229,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.04);
  cursor: pointer;
  position: relative;
  transition: transform 0.25s, box-shadow 0.25s;
}
.gallery-card:active { transform: scale(0.985); }
.gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(79,70,229,0.08), 0 2px 6px rgba(0,0,0,0.04);
}
.gallery-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Hover overlay */
.gallery-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%);
  opacity: 0;
  transition: opacity 0.25s;
}
.gallery-card:hover .gallery-hover { opacity: 1; }
.gallery-hover-prompt {
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.gallery-hover-actions {
  display: flex;
  gap: 8px;
}
.gallery-action-btn {
  /* auto */
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: all 0.2s;
}
.gallery-action-btn:hover { background: rgba(255,255,255,0.30); }
.gallery-action-btn.active, .gallery-action-btn.danger { background: rgba(239,68,68,0.30); border-color: rgba(239,68,68,0.4); }
.gallery-action-btn.danger:hover { background: rgba(239,68,68,0.50); }

/* Placeholder card */
.gallery-placeholder {
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #f5f3ff, #edeaf5);
  color: #8a85a8;
  font-size: 13px;
  font-weight: 600;
}
.gallery-placeholder.failed {
  background: linear-gradient(135deg, #fef2f2, #fef5f5);
  color: #dc2626;
}
.gallery-placeholder small { font-size: 11px; font-weight: 400; opacity: 0.7; max-width: 80%; text-align: center; }

/* Favorite badge */
.gallery-fav-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(225,29,72,0.15);
  backdrop-filter: blur(6px);
  color: #e11d48;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══════════════════════════════════════════════════════════════
   v6 PROFILE PAGE
   ═══════════════════════════════════════════════════════════════ */

.profile-page {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: pageFadeIn 0.4s ease-out;
}

/* Profile card — avatar + info */
.profile-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(79,70,229,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 14px rgba(0,0,0,0.04);
}
.profile-avatar-section { position: relative; flex-shrink: 0; }
.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 16px rgba(79,70,229,0.18);
}
.profile-avatar-initial {
  font-size: 32px;
  font-weight: 800;
}
.profile-avatar-edit {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #4f46e5;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 2px solid #fff;
}
.profile-info { flex: 1; min-width: 0; }
.profile-name-row { display: flex; align-items: center; gap: 8px; }
.profile-name-row h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: #1a1740;
}
.profile-edit-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: rgba(79,70,229,0.06);
  color: #8a85a8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-edit-btn:hover { background: rgba(79,70,229,0.10); color: #4f46e5; }
.profile-email {
  font-size: 13px;
  color: #8a85a8;
  margin: 4px 0 0;
}
.profile-dot { margin: 0 4px; color: #c8c4d8; }
.profile-admin-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(139,92,246,0.10);
  color: #7c3aed;
  font-size: 11px;
  font-weight: 700;
}

/* Points card */
.profile-actions-strip {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.profile-points-card {
  padding: 24px 28px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #8b5cf6 100%);
  border-radius: 20px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 8px 32px rgba(79,70,229,0.20);
  position: relative;
  overflow: hidden;
}
.profile-points-card::before {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.10), transparent 50%);
  pointer-events: none;
}
.profile-points-label {
  font-size: 12px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.profile-points-value { display: flex; align-items: baseline; gap: 6px; }
.profile-points-num { font-size: 42px; font-weight: 900; line-height: 1; }
.profile-points-unit { font-size: 14px; opacity: 0.7; font-weight: 600; }
.profile-recharge-btn {
  margin-left: auto;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(8px);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s;
  white-space: nowrap;
}
.profile-recharge-btn:hover {
  background: rgba(255,255,255,0.26);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.10);
}

/* Quick links */
.profile-quick-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border-radius: 16px;
  padding: 6px;
  border: 1px solid rgba(79,70,229,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.profile-quick-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: #1a1740;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-size: inherit;
  transition: background 0.2s;
}
.profile-quick-link:hover { background: rgba(79,70,229,0.03); }
.profile-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-quick-text { flex: 1; min-width: 0; }
.profile-quick-text b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #1a1740;
}
.profile-quick-text small {
  display: block;
  font-size: 12px;
  color: #8a85a8;
  margin-top: 2px;
}
.profile-quick-link span[data-icon="chevron-right"] { color: #c8c4d8; flex-shrink: 0; }

/* Logout */
.profile-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: rgba(239,68,68,0.04);
  border: 1px solid rgba(239,68,68,0.10);
  transition: all 0.2s;
}
.profile-logout-btn:hover { background: rgba(239,68,68,0.08); }

/* Recharge cards in sheet */
.recharge-card {
  background: #faf8ff;
  border: 1px solid rgba(79,70,229,0.08);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}
.recharge-card:hover {
  border-color: #4f46e5;
  box-shadow: 0 4px 16px rgba(79,70,229,0.08);
  transform: translateY(-2px);
}
.recharge-card-price { font-size: 22px; font-weight: 900; color: #4f46e5; }
.recharge-card-points { font-size: 14px; color: #4a4570; margin-top: 4px; font-weight: 600; }
.recharge-card-label { font-size: 11px; color: #8a85a8; margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — Gallery & Profile
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  .masonry-gallery { columns: 2; column-gap: 10px; }
  .gallery-card { margin-bottom: 10px; border-radius: 14px; }
  .gallery-banner { flex-direction: column; align-items: flex-start; padding: 24px 22px; gap: 16px; }
  .profile-page { gap: 14px; }
  .profile-points-card { flex-wrap: wrap; gap: 14px; }
  .profile-recharge-btn { margin-left: 0; }
}

@media (max-width: 520px) {
  .gallery-banner { padding: 20px 16px; border-radius: 16px; }
  .gallery-banner-text h2 { font-size: 24px; }
  .gallery-toolbar { gap: 8px; }
  .gallery-search { min-width: 0; }
  .gallery-search select { display: none; }
  .masonry-gallery { columns: 1; }
  .profile-card { flex-direction: column; text-align: center; padding: 24px 20px; }
  .profile-name-row { justify-content: center; }
  .profile-points-card { flex-direction: column; text-align: center; padding: 20px; }
  .profile-recharge-btn { margin-left: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   v6 LANDING PAGE — Bright, clean hero
   ═══════════════════════════════════════════════════════════════ */

/* Override landing-page background for light theme */
.landing-page {
  background: #f5f3ff !important;
  color: #1a1740;
}
.landing-page::before {
  background:
    radial-gradient(circle at 15% -10%, rgba(99,102,241,0.08), transparent 35%),
    radial-gradient(circle at 90% 15%, rgba(139,92,246,0.06), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(6,182,212,0.04), transparent 36%),
    #f5f3ff !important;
}

/* Landing nav — white glass */
.landing-nav {
  background: rgba(255,255,255,0.85) !important;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.landing-nav.scrolled {
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.landing-nav .brand { color: #1a1740; }
.landing-nav .nav-links a { color: #4a4570; }
.landing-nav .nav-links a:hover { color: #1a1740; }

/* Landing hero */
.landing-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}
.hero-text h1 {
  color: #1a1740;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
}
.hero-text .lead {
  color: #4a4570;
  font-size: 16px;
  line-height: 1.7;
}
.hero-text .badge {
  background: rgba(79,70,229,0.08);
  color: #4f46e5;
  border: 1px solid rgba(79,70,229,0.15);
}
.hero-text .stats .stat .v {
  color: #4f46e5;
  font-size: 26px;
}
.hero-text .stats .stat .l {
  color: #8a85a8;
}

/* Auth card — white */
.auth-card {
  background: #fff !important;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08) !important;
  border: 1px solid rgba(0,0,0,0.06);
}
.auth-card h2 { color: #1a1740; }
.auth-card .sub { color: #8a85a8; }
.auth-card .tab-switch {
  background: #f5f3ff;
}
.auth-card .tab-switch button.active {
  background: #fff;
  color: #4f46e5;
}

/* Feature grid — white cards */
.feature-card {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.feature-card h3 { color: #1a1740; }
.feature-card p { color: #4a4570; }
.feature-card .ic {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  box-shadow: 0 4px 16px rgba(79,70,229,0.2);
}

/* Landing section */
.landing-section h2 { color: #1a1740; }
.landing-section .sub-title { color: #4a4570; }

/* Landing footer */
.landing-footer {
  background: rgba(255,255,255,0.7);
  border-top: 1px solid rgba(0,0,0,0.06);
  color: #8a85a8;
}

/* ═══════════════════════════════════════════════════════════════
   v6 SHEETS → CENTERED MODALS
   ═══════════════════════════════════════════════════════════════ */

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.sheet-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.sheet {
  position: fixed;
  left: 50%
  bottom: 0;
  transform: translate(-50%, 100%);
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  z-index: 201;
  box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
@keyframes sheetSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.sheet-handle { display: none; }
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.sheet-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #1a1740;
  margin: 0;
}
.sheet-header .close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: rgba(0,0,0,0.04);
  color: #8a85a8;
}
.sheet-header .close:hover { background: rgba(0,0,0,0.08); }
.sheet-body {
  padding: 16px 24px 24px;
}
.sheet-body .muted {
  color: #8a85a8;
  font-size: 13px;
  line-height: 1.6;
}

/* ── Recharge grid ── */
.recharge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.price-card {
  background: #faf9ff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}
.price-card .price-main {
  font-size: 24px;
  font-weight: 900;
  color: #4f46e5;
}
.price-card small {
  display: block;
  color: #8a85a8;
  font-size: 11px;
  margin-top: 4px;
}

/* ── Contact box ── */
.contact-box {
  background: #faf9ff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  color: #4a4570;
  line-height: 1.7;
  white-space: pre-wrap;
}

/* ═══════════════════════════════════════════════════════════════
   v6 BUTTONS & COMPONENTS — Light theme
   ═══════════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-primary { background: #4f46e5; color: #fff; }
.btn-primary:hover { background: #4338ca; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(79,70,229,0.3); }
.btn-secondary { background: #f5f3ff; color: #4f46e5; border: 1px solid rgba(79,70,229,0.15); }
.btn-secondary:hover { background: rgba(79,70,229,0.08); }
.btn-gradient {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6);
  color: #fff;
}
.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79,70,229,0.3);
}
.btn-ghost { background: transparent; color: #4a4570; border: 1px solid rgba(0,0,0,0.08); }
.btn-ghost:hover { background: rgba(0,0,0,0.04); }
.btn.sm { padding: 6px 14px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 14px 28px; font-size: 16px; border-radius: 14px; }
.btn.full { width: 100%; }

/* ── Form inputs (light) ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4a4570;
  margin-bottom: 6px;
}
.form-row {
  display: flex;
  gap: 8px;
}

/* ── Inline icon button ── */
.inline-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: none;
  background: rgba(0,0,0,0.04);
  color: #8a85a8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 6px;
  transition: all 0.2s;
}
.inline-icon:hover { background: rgba(79,70,229,0.08); color: #4f46e5; }

/* ── Toast ── */
#toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 20px;
  border-radius: 12px;
  background: #fff;
  color: #1a1740;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease-out;
  border: 1px solid rgba(0,0,0,0.06);
}
.toast.ok { border-left: 3px solid #22c55e; }
.toast.error { border-left: 3px solid #ef4444; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════════════════
   v6 ADMIN PAGES — Clean white cards
   ═══════════════════════════════════════════════════════════════ */

.admin-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-bottom: 16px;
}
.admin-card h2, .admin-card h3 {
  color: #1a1740;
  margin: 0 0 8px;
}
.admin-card label {
  font-size: 13px;
  font-weight: 600;
  color: #4a4570;
  display: block;
  margin-bottom: 6px;
}
.admin-card input[type="text"],
.admin-card input[type="number"],
.admin-card input[type="password"],
.admin-card input[type="email"],
.admin-card textarea,
.admin-card select {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  background: #faf9ff;
  color: #1a1740;
  transition: border-color 0.2s;
}
.admin-card input:focus,
.admin-card textarea:focus,
.admin-card select:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79,70,229,0.08);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table th {
  text-align: left;
  padding: 10px 12px;
  background: #faf9ff;
  color: #8a85a8;
  font-weight: 600;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  color: #4a4570;
}
.admin-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 20px;
  align-items: start;
}
.admin-sidebar {
  background: #fff;
  border-radius: 14px;
  padding: 12px 8px;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #4a4570;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.admin-sidebar a:hover,
.admin-sidebar a.active {
  background: rgba(79,70,229,0.06);
  color: #4f46e5;
}

/* ═══════════════════════════════════════════════════════════════
   v6 HIGHLIGHT — Instant visual upgrades
   ═══════════════════════════════════════════════════════════════ */

/* 创作页 hero 标题渐变 */
.create-hero h2 {
  background: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 60%, #6d28d9 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  font-size: 34px !important;
}

/* 卡片更强的边框 */
.create-card {
  border-color: rgba(79,70,229,0.08) !important;
}

/* 模型卡片活跃态更强 */
.model-card.active {
  background: linear-gradient(135deg, rgba(79,70,229,0.06), rgba(139,92,246,0.04)) !important;
  box-shadow: 0 0 0 1px #4f46e5, 0 0 0 4px rgba(79,70,229,0.10), 0 8px 30px rgba(79,70,229,0.12) !important;
}

/* opt-pill 活跃态更显眼 */
.opt-pill.active {
  background: linear-gradient(135deg, #4f46e5, #6d28d9) !important;
  box-shadow: 0 4px 20px rgba(79,70,229,0.30), 0 0 0 2px rgba(79,70,229,0.15) !important;
}

/* 生成按钮 */
.btn-generate {
  border-radius: 16px !important;
  padding: 20px !important;
  font-size: 17px !important;
  letter-spacing: 0.03em !important;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 60%, #a78bfa 100%) !important;
}

/* 顶部导航品牌名可辨识 */
.top-nav .nav-brand span {
  background: linear-gradient(135deg, #4f46e5, #8b5cf6) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* 积分徽章 */
.points-badge {
  font-size: 11px !important;
}

/* 登录页注册徽章 */
.landing-nav .badge {
  background: linear-gradient(135deg, rgba(79,70,229,0.10), rgba(139,92,246,0.08)) !important;
  border-color: rgba(79,70,229,0.15) !important;
}

/* ── Favorite button states ── */
.gallery-action-btn.active {
  background: rgba(225,29,72,0.35) !important;
  border-color: rgba(225,29,72,0.5) !important;
  color: #fff !important;
}
.gallery-action-btn.active:hover {
  background: rgba(225,29,72,0.50) !important;
}
.gallery-card.favorited {
  /* reserved for future use */
}

/* ── Sheet display fix — ensure show/hide works ── */
.sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  z-index: 201;
  transition: transform 0.35s cubic-bezier(0.32,0.72,0,1);
  max-height: 85vh;
  overflow-y: auto;
}
.sheet.show {
  transform: translate(-50%, 0);
}
/* ═══════════════════════════════════════════════════════════════
   v6 LANDING SHOWCASE — Image cards with preview
   ═══════════════════════════════════════════════════════════════ */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(79,70,229,0.08);
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 16px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: default;
}
.showcase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 32px rgba(79,70,229,0.10), 0 2px 8px rgba(0,0,0,0.05);
}
.showcase-card.featured {
  border-color: rgba(79,70,229,0.20);
  box-shadow: 0 0 0 2px rgba(79,70,229,0.08), 0 4px 20px rgba(79,70,229,0.10);
}
.showcase-card.featured:hover {
  box-shadow: 0 0 0 2px rgba(79,70,229,0.15), 0 12px 40px rgba(79,70,229,0.14);
}

.showcase-img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f3ff, #edeaf5);
}
.showcase-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.showcase-card:hover .showcase-img img {
  transform: scale(1.05);
}

.showcase-info {
  padding: 18px 20px 20px;
  text-align: center;
}
.showcase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,70,229,0.08), rgba(139,92,246,0.06));
  color: #4f46e5;
  margin-bottom: 10px;
}
.showcase-card.featured .showcase-icon {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  box-shadow: 0 4px 16px rgba(79,70,229,0.25);
}
.showcase-info h3 {
  font-size: 16px;
  font-weight: 800;
  color: #1a1740;
  margin: 0 0 4px;
}
.showcase-info p {
  font-size: 13px;
  color: #8a85a8;
  margin: 0;
  line-height: 1.5;
}

/* Responsive */
@media (max-width: 980px) {
  .showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
@media (max-width: 520px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .showcase-img {
    aspect-ratio: 3/4;
  }
  .showcase-info {
    padding: 14px 16px 16px;
  }
}
/* =============================================
   Admin Mobile Responsive
   ============================================= */
@media (max-width: 768px) {
  /* Adjust shell layout */
  .admin-shell .admin-bar {
    height: auto;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
  }
  .admin-bar .brand {
    width: 100%;
    justify-content: flex-start;
    font-size: 14px;
  }
  .admin-bar .brand .logo-img {
    width: 26px;
    height: 26px;
  }
  .admin-bar nav {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 2px;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }
  .admin-bar nav::-webkit-scrollbar { display: none; }
  .admin-bar nav a {
    font-size: 12px;
    padding: 6px 10px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 20px;
  }

  /* Content area */
  .admin-content {
    padding: 12px;
    max-width: 100%;
  }

  /* Cards */
  .admin-card {
    padding: 14px;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  /* Stats grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-card .stat-num {
    font-size: 22px;
  }

  /* Tables - compact mobile style */
  .admin-table {
    font-size: 11px;
  }
  .admin-table th {
    padding: 8px 6px;
    font-size: 10px;
    white-space: nowrap;
  }
  .admin-table td {
    padding: 8px 6px;
    font-size: 11px;
  }
  .table-wrap {
    margin: 0 -14px;
    padding: 0 14px;
  }

  /* Detail grid */
  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .detail-item {
    padding: 10px;
  }

  /* Search bar */
  .search-bar {
    width: 100%;
  }
  .search-bar input {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 8px 12px;
  }

  /* Pagination */
  .pagination {
    gap: 6px;
    font-size: 12px;
  }
  .pagination a {
    padding: 6px 10px;
    font-size: 12px;
  }

  /* Form elements in admin cards */
  .admin-card input[type="text"],
  .admin-card input[type="number"],
  .admin-card input[type="password"],
  .admin-card input[type="email"],
  .admin-card textarea,
  .admin-card select {
    width: 100%;
    min-width: 0;
    font-size: 14px;
    padding: 10px 12px;
  }

  /* Row helper for mobile */
  .admin-card .row {
    flex-direction: column;
    gap: 8px;
  }
  .admin-card .row.sb {
    flex-direction: column;
    gap: 10px;
  }

  /* Buttons */
  .admin-card .btn {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* Extra small phones */
@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .stat-card {
    padding: 12px;
  }
  .stat-card .stat-num {
    font-size: 20px;
  }
  .stat-card .stat-label {
    font-size: 11px;
  }

  .admin-card {
    padding: 12px;
    border-radius: 12px;
  }

  .admin-bar nav a {
    font-size: 11px;
    padding: 5px 8px;
  }

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

  /* Table as cards on very small screens */
  .table-wrap {
    margin: 0 -12px;
    padding: 0 4px;
  }
}
/* ═══════════════════════════════════════════════════════════════
   GALLERY V7 — Inline card actions + simplified lightbox
   These rules use higher specificity to override v6 hover overlays.
   ═══════════════════════════════════════════════════════════════ */

/* 1. Convert card to flex column (override aspect-ratio: 3/4 on .gallery-card) */
.gallery-card.gallery-card {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(79,70,229,0.06);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03), 0 4px 12px rgba(0,0,0,0.04);
  position: relative;
  transition: box-shadow 0.25s;
  cursor: default;
}
.gallery-card.gallery-card:hover {
  box-shadow: 0 8px 28px rgba(79,70,229,0.08), 0 2px 6px rgba(0,0,0,0.04);
  transform: none;
}

/* 2. Hide old hover overlay permanently */
.gallery-card .gallery-hover,
.gallery-card .gallery-overlay {
  display: none !important;
}

/* 3. Image area — keep aspect-ratio on a wrapper */
.gallery-card .gallery-card-img {
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.gallery-card .gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 4. Inline action buttons */
.gallery-card .gallery-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 10px 8px;
  border-top: 1px solid rgba(79,70,229,0.06);
  background: #fff;
}
/* 主要操作：重新生成 / 修改 */
.gallery-card .gallery-act-btn.js-reuse,
.gallery-card .gallery-act-btn.js-rework {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: 1 1 calc(50% - 3px);
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(79,70,229,0.15);
  background: #faf8ff;
  color: #5a5290;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.gallery-card .gallery-act-btn.js-reuse:hover,
.gallery-card .gallery-act-btn.js-rework:hover {
  background: rgba(79,70,229,0.08);
  color: #4f46e5;
  border-color: #4f46e5;
}
/* 次要操作：收藏 / 删除 / 下载 — 只保留图标，无背景无描边 */
.gallery-card .gallery-act-btn:not(.js-reuse):not(.js-rework):not(.download) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.gallery-card .gallery-act-btn:not(.js-reuse):not(.js-rework):not(.download):hover {
  background: rgba(79,70,229,0.06);
  color: #4f46e5;
}
.gallery-card .gallery-act-btn.danger {
  color: #d1d5db;
}
.gallery-card .gallery-act-btn.danger:hover {
  background: rgba(239,68,68,0.08);
  color: #dc2626;
}
.gallery-card .gallery-act-btn.active {
  color: #e11d48;
  background: rgba(239,68,68,0.08);
}
/* 下载按钮 — 紧凑图标 */
.gallery-card .gallery-act-btn.download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.15s;
  flex: 0 0 auto;
}
.gallery-card .gallery-act-btn.download:hover {
  background: rgba(79,70,229,0.08);
  color: #4f46e5;
}

/* 5. Keep fav badge visible */
.gallery-card .gallery-fav-badge {
  z-index: 2;
}

/* ── Lightbox (new class name, does not conflict) ── */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  padding: 28px;
}
.gdl-close {
  position: fixed;
  right: 22px;
  top: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  z-index: 501;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.15);
}
.gdl-close:hover { background: rgba(255,255,255,0.2); }
.gdl-stage {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gdl-stage img {
  max-width: 100%;
  max-height: calc(100vh - 56px);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 60px rgba(99, 102, 241, 0.3);
  border: 1px solid var(--line);
}
.gdl-info {
  align-self: center;
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 24px;
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.gdl-info h3 { font-size: 32px; margin: 8px 0 18px; }
.gdl-prompt {
  padding: 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  line-height: 1.8;
  color: var(--text-2);
}
.gdl-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 16px 0;
}
.gdl-meta span {
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text-3);
  font-size: 12px;
}
.gdl-meta b { display: block; color: var(--text); margin-top: 4px; font-weight: 700; }
.gdl-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Mobile responsive ── */
@media (max-width: 768px) {
  .gallery-lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    padding: 12px;
    gap: 10px;
    overflow: auto;
  }
  .gdl-stage { min-height: 40vh; max-height: 55vh; }
  .gdl-stage img { max-height: 55vh; }
  .gdl-info { max-height: none; align-self: stretch; padding: 16px; }
  .gdl-info h3 { font-size: 22px; margin: 4px 0 12px; }
  .gdl-meta { gap: 8px; }
  .gdl-meta span { padding: 8px; font-size: 11px; }
  .gallery-card .gallery-card-actions { padding: 8px; gap: 4px; }
  .gallery-card .gallery-act-btn { padding: 6px 10px; font-size: 11px; border-radius: 8px; }
  .gallery-card .gallery-act-btn.download { padding: 7px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
  .gallery-lightbox { padding: 8px; gap: 6px; }
  .gdl-info { padding: 12px; }
  .gdl-info h3 { font-size: 18px; }
  .gallery-card .gallery-card-actions { padding: 6px; gap: 3px; }
  .gallery-card .gallery-act-btn { padding: 5px 8px; font-size: 10px; }
  .gallery-card .gallery-act-btn.download { padding: 6px 10px; font-size: 11px; }
}

/* v7: override placeholder aspect-ratio in flex card */
.gallery-card .gallery-placeholder {
  aspect-ratio: 3/4;
  flex-shrink: 0;
}

/* ── Model maintenance badge ── */
.model-badge.maintenance {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  pointer-events: none;
  z-index: 2;
}
.model-card[disabled],
.model-card[aria-disabled=true] {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.3);
}


/* v7 封面创作台入口横幅 */
.cover-studio-banner {
  margin: 0 auto; max-width: 680px;
}
.cover-studio-link {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  border: 1px solid rgba(79,70,229,0.12);
  border-radius: 16px; padding: 14px 18px;
  text-decoration: none; transition: all 0.25s;
}
.cover-studio-link:hover {
  border-color: rgba(79,70,229,0.25);
  box-shadow: 0 8px 24px rgba(79,70,229,0.10);
  transform: translateY(-1px);
}
.cs-badge {
  flex-shrink: 0;
  background: linear-gradient(135deg, #ef233c, #fb3750);
  color: #fff; font-size: 10px; font-weight: 800;
  padding: 3px 8px; border-radius: 8px; letter-spacing: 0.04em;
}
.cs-banner-icon { flex-shrink: 0; color: #4f46e5; }
.cs-banner-text { flex: 1; min-width: 0; }
.cs-banner-text strong {
  display: block; font-size: 14px; font-weight: 800; color: #1a1740;
}
.cs-banner-text small {
  display: block; font-size: 12px; color: #6b6790; margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cs-banner-arrow {
  flex-shrink: 0; font-size: 18px; color: #4f46e5; font-weight: 700;
}
@media (max-width: 500px) {
  .cover-studio-link { gap: 8px; padding: 12px 14px; }
  .cs-banner-text strong { font-size: 13px; }
  .cs-banner-text small { font-size: 11px; }
}


/* v7.1 gallery mobile density + running progress */
.gallery-card .gallery-progress {
  width: 64%;
  height: 6px;
  border-radius: 999px;
  background: rgba(79,70,229,.12);
  overflow: hidden;
  margin-top: 2px;
}
.gallery-card .gallery-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,#4f46e5,#a78bfa,#7c3aed);
  animation: galleryProgressMove 1.25s ease-in-out infinite;
}
@keyframes galleryProgressMove {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(250%); }
}

@media (max-width: 768px) {
  .masonry-gallery {
    columns: 2 !important;
    column-gap: 10px !important;
  }
  .gallery-card.gallery-card {
    margin-bottom: 10px !important;
    border-radius: 14px;
  }
  .gallery-card .gallery-card-actions {
    padding: 6px !important;
    gap: 4px !important;
    flex-wrap: wrap;
  }
  .gallery-card .gallery-act-btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    min-width: 0;
    padding: 6px 7px !important;
    font-size: 10px !important;
  }
  .gallery-card .gallery-act-btn.download {
    flex-basis: 100%;
    padding: 7px 10px !important;
    font-size: 11px !important;
  }
}
@media (max-width: 360px) {
  .masonry-gallery { column-gap: 8px !important; }
  .gallery-card.gallery-card { margin-bottom: 8px !important; }
  .gallery-card .gallery-act-btn span:last-child { display: none; }
  .gallery-card .gallery-act-btn.download span:last-child { display: inline; }
}

/* ═══════════════════════════════════════════════════════════════
   GALLERY V8 — Ratio-safe masonry + clearer action hierarchy
   2026-06-06: Preserve original image ratio, improve card actions/nav.
   ═══════════════════════════════════════════════════════════════ */
.gallery-page-v8 {
  --g-accent: #4f46e5;
  --g-accent-2: #7c3aed;
  --g-ink: #1f1b3d;
  --g-muted: #6f6a8f;
  --g-soft: #f7f5ff;
  --g-line: rgba(79,70,229,.10);
}
.gallery-banner-v8 {
  align-items: stretch;
}
.gallery-banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.gallery-ghost-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.gallery-ghost-link:hover,
.gallery-ghost-link.active {
  transform: translateY(-1px);
  background: rgba(255,255,255,.18);
  box-shadow: 0 10px 22px rgba(31,27,61,.12), inset 0 1px 0 rgba(255,255,255,.28);
}
.gallery-stat-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 14px;
}
.gallery-stat-pill {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--g-muted);
  background: rgba(255,255,255,.76);
  border: 1px solid var(--g-line);
  box-shadow: 0 4px 14px rgba(31,27,61,.04);
  overflow: hidden;
  transition: transform .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.gallery-stat-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(79,70,229,.14), transparent 42%);
  opacity: 0;
  transition: opacity .18s ease;
}
.gallery-stat-pill > * { position: relative; z-index: 1; }
.gallery-stat-pill b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}
.gallery-stat-pill em {
  min-width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 850;
  color: var(--g-accent);
  background: rgba(79,70,229,.08);
}
.gallery-stat-pill:hover,
.gallery-stat-pill.active {
  transform: translateY(-2px);
  color: var(--g-accent);
  border-color: rgba(79,70,229,.22);
  background: #fff;
  box-shadow: 0 12px 28px rgba(79,70,229,.10);
}
.gallery-stat-pill:hover::before,
.gallery-stat-pill.active::before { opacity: 1; }
.gallery-stat-pill.favorite.active,
.gallery-stat-pill.favorite:hover { color: #e11d48; border-color: rgba(225,29,72,.20); }
.gallery-stat-pill.favorite em { color: #e11d48; background: rgba(225,29,72,.08); }
.gallery-toolbar-v8 {
  margin-bottom: 16px;
}
.gallery-toolbar-v8 .gallery-search {
  min-height: 46px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(31,27,61,.04);
}
.gallery-toolbar-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-clear-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  color: var(--g-muted);
  background: rgba(31,27,61,.045);
  transition: all .16s ease;
}
.gallery-clear-filter:hover {
  color: var(--g-accent);
  background: rgba(79,70,229,.08);
}
.gallery-masonry-v8 {
  columns: 4 210px;
  column-gap: 16px;
}
.gallery-card-v8.gallery-card {
  break-inside: avoid;
  margin: 0 0 16px;
  display: inline-block;
  width: 100%;
  border-radius: 18px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(79,70,229,.08);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 10px 26px rgba(31,27,61,.055);
  overflow: hidden;
  cursor: default;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.gallery-card-v8.gallery-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79,70,229,.18);
  box-shadow: 0 18px 40px rgba(79,70,229,.11), 0 2px 8px rgba(31,27,61,.04);
}
.gallery-card-v8 .gallery-card-img {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: 0;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  background: linear-gradient(135deg,#f8f7fc,#f0edfa);
}
.gallery-card-v8 .gallery-card-img img {
  width: 100%;
  height: auto !important;
  max-height: none;
  display: block;
  object-fit: contain !important;
  transition: transform .32s ease, filter .32s ease;
}
.gallery-card-v8:hover .gallery-card-img img {
  transform: scale(1.018);
  filter: saturate(1.02) contrast(1.01);
}
.gallery-image-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.38) 44%, transparent 58%);
  transform: translateX(-120%);
  transition: transform .55s ease;
}
.gallery-card-v8:hover .gallery-image-shine { transform: translateX(120%); }
.gallery-ratio-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  color: #fff;
  background: rgba(24,20,46,.58);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 16px rgba(24,20,46,.18);
}
.gallery-card-v8 .gallery-fav-badge {
  right: 10px;
  top: 10px;
  width: 24px;
  height: 24px;
  background: rgba(225,29,72,.92);
  box-shadow: 0 8px 18px rgba(225,29,72,.28);
}
.gallery-card-v8 .gallery-card-body {
  padding: 11px 12px 8px;
  border-top: 1px solid rgba(79,70,229,.055);
}
.gallery-card-prompt {
  margin: 0;
  color: var(--g-ink);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 650;
  word-break: break-word;
}
.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  color: #928dac;
  font-size: 11px;
  font-weight: 700;
}
.gallery-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.gallery-card-meta span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-card-v8 .gallery-card-actions {
  display: block;
  padding: 0 10px 10px;
  border-top: 0;
  background: transparent;
}
.gallery-primary-actions,
.gallery-secondary-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.gallery-secondary-actions {
  margin-top: 7px;
  justify-content: space-between;
  padding-top: 7px;
  border-top: 1px dashed rgba(79,70,229,.10);
}
.gallery-card-v8 .gallery-act-btn {
  border: 0;
  appearance: none;
  font-family: inherit;
}
.gallery-card-v8 .gallery-act-btn.primary {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--g-accent), var(--g-accent-2));
  box-shadow: 0 9px 18px rgba(79,70,229,.18);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.gallery-card-v8 .gallery-act-btn.primary.soft {
  color: var(--g-accent);
  background: rgba(79,70,229,.08);
  box-shadow: none;
}
.gallery-card-v8 .gallery-act-btn.primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 12px 24px rgba(79,70,229,.23);
}
.gallery-card-v8 .gallery-act-btn.primary.soft:hover {
  box-shadow: 0 8px 18px rgba(79,70,229,.10);
  background: rgba(79,70,229,.12);
}
.gallery-card-v8 .gallery-act-btn.icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  color: #9993b5;
  background: rgba(31,27,61,.035);
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease;
}
.gallery-card-v8 .gallery-act-btn.icon:hover {
  transform: translateY(-1px);
  color: var(--g-accent);
  background: rgba(79,70,229,.09);
}
.gallery-card-v8 .gallery-act-btn.icon.active {
  color: #e11d48;
  background: rgba(225,29,72,.09);
}
.gallery-card-v8 .gallery-act-btn.icon.danger:hover {
  color: #dc2626;
  background: rgba(220,38,38,.09);
}
.gallery-card-v8 .gallery-card-actions.single {
  padding-top: 0;
}
.gallery-card-v8 .gallery-card-actions.single .gallery-act-btn.primary {
  width: 100%;
  background: rgba(220,38,38,.09);
  color: #dc2626;
  box-shadow: none;
}
.gallery-card-v8.is-task .gallery-placeholder {
  aspect-ratio: 4/3;
  min-height: 150px;
}
@media (max-width: 980px) {
  .gallery-stat-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery-masonry-v8 { columns: 3 190px !important; }
}
@media (max-width: 768px) {
  .gallery-page-v8 { padding: 0 4px; }
  .gallery-banner-v8 { padding: 16px 14px; gap: 12px; border-radius: 16px 16px 0 0; }
  .gallery-banner-text h2 { font-size: 20px; }
  .gallery-banner-text p { font-size: 13px; }
  .gallery-banner-actions { width: 100%; justify-content: flex-start; }
  .gallery-ghost-link { font-size: 12px; padding: 8px 12px; }
  .gallery-stat-nav {
    display: flex;
    overflow-x: auto;
    padding: 0 2px 4px;
    gap: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-stat-pill {
    min-width: 88px;
    flex-shrink: 0;
    padding: 8px 10px;
    gap: 6px;
    border-radius: 12px;
    scroll-snap-align: start;
  }
  .gallery-stat-pill b { font-size: 12px; }
  .gallery-stat-pill em { font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; }
  .gallery-toolbar-v8 { flex-direction: column; align-items: stretch; }
  .gallery-toolbar-meta { width: 100%; justify-content: space-between; }
  .gallery-search { min-height: 42px; padding: 7px 7px 7px 12px; border-radius: 14px; }
  .gallery-search select { font-size: 12px; padding: 4px 6px; }
  .gallery-search-btn { padding: 7px 13px; font-size: 12px; }
  .gallery-masonry-v8 {
    columns: 2 !important;
    column-gap: 8px !important;
  }
  .gallery-card-v8.gallery-card { margin-bottom: 8px !important; border-radius: 14px; }
  .gallery-card-v8 .gallery-card-body { padding: 8px 8px 6px; }
  .gallery-card-prompt { font-size: 12px; line-height: 1.4; }
  .gallery-card-meta { font-size: 10px; }
  .gallery-card-v8 .gallery-card-actions { padding: 0 6px 6px !important; }
  .gallery-primary-actions { gap: 5px; }
  .gallery-card-v8.gallery-card { overflow: visible !important; }
  .gallery-secondary-actions {
    gap: 2px;
    margin-top: 4px;
    padding-top: 4px;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .gallery-card-v8 .gallery-act-btn.primary {
    height: 30px;
    border-radius: 10px;
    font-size: 11px !important;
    padding: 0 6px !important;
    gap: 4px;
  }
  .gallery-card-v8 .gallery-act-btn.icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    font-size: 14px;
  }
  .gallery-card-v8 .gallery-act-btn.icon svg {
    width: 18px;
    height: 18px;
  }
  .gallery-secondary-actions {
    gap: 4px;
  }
  .gallery-ratio-badge {
    height: 20px;
    padding: 0 7px;
    font-size: 10px;
    left: 6px;
    top: 6px;
  }
  .gallery-card-v8 .gallery-fav-badge {
    right: 6px;
    top: 6px;
    width: 22px;
    height: 22px;
  }
  .gallery-card-v8 .gallery-card-actions.single {
    flex-direction: column;
    gap: 5px;
  }
  .gallery-card-v8 .gallery-card-actions.failed-actions {
    flex-direction: column;
    gap: 5px;
  }
}
@media (max-width: 480px) {
  .gallery-stat-pill { min-width: 72px; padding: 7px 8px; gap: 4px; }
  .gallery-stat-pill b { font-size: 11px; }
  .gallery-card-v8 .gallery-act-btn.primary span:last-child {
    display: inline !important;
  }
  .gallery-card-v8 .gallery-card-actions { padding: 0 5px 5px !important; }
  .gallery-primary-actions { gap: 4px; }
  .gallery-card-v8.gallery-card { overflow: visible !important; }
  .gallery-secondary-actions {
    gap: 2px;
    margin-top: 3px;
    padding-top: 3px;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }
  .gallery-card-v8 .gallery-act-btn.primary { height: 28px; font-size: 10px !important; padding: 0 5px !important; }
  .gallery-card-v8 .gallery-act-btn.icon { width: 32px; height: 32px; min-width: 32px; flex: 0 0 32px; border-radius: 9px; }
  .gallery-card-v8 .gallery-act-btn.icon svg { width: 16px; height: 16px; }
  .gallery-secondary-actions { gap: 4px; }
  .gallery-card-prompt { font-size: 11px; }
  .gallery-card-meta { margin-top: 5px; }
}
@media (max-width: 360px) {
  .gallery-masonry-v8 { columns: 1 !important; }
  .gallery-stat-pill { min-width: 64px; padding: 6px 7px; }
  .gallery-stat-pill b { font-size: 10px; }
  .gallery-card-v8 .gallery-act-btn.primary { height: 28px; font-size: 11px !important; }
}

/* Gallery favorite feedback fix — 2026-06-06 */
.gallery-card-v8 .gallery-act-btn.icon.js-fav.active,
.gallery-card-v8 .gallery-act-btn.icon.js-fav[aria-pressed="true"] {
  color: #e11d48 !important;
  background: rgba(225,29,72,.11) !important;
  box-shadow: inset 0 0 0 1px rgba(225,29,72,.10), 0 8px 18px rgba(225,29,72,.10);
}
.gallery-card-v8 .gallery-act-btn.icon.js-fav.is-tapping {
  animation: galleryFavPop .22s ease-out;
}
@keyframes galleryFavPop {
  0% { transform: scale(.88); }
  62% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* Gallery failed task actions — 2026-06-06 */
.gallery-card-v8 .gallery-card-actions.failed-actions {
  display: flex;
  gap: 8px;
  padding-top: 0;
}
.gallery-card-v8 .gallery-card-actions.failed-actions .gallery-act-btn.primary {
  width: auto;
  flex: 1 1 0;
}
.gallery-card-v8 .gallery-card-actions.failed-actions .gallery-act-btn.primary.js-reuse {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 9px 18px rgba(79,70,229,.16);
}
.gallery-card-v8 .gallery-card-actions.failed-actions .gallery-act-btn.primary.danger {
  color: #dc2626;
  background: rgba(220,38,38,.09);
  box-shadow: none;
}
.gallery-card-v8 .gallery-card-actions.failed-actions .gallery-act-btn.primary.js-reuse:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(79,70,229,.22);
}
