:root {

  --bg-color: #090A0F;

  --panel-bg: rgba(20, 22, 28, 0.75);

  --panel-border: rgba(255, 255, 255, 0.08);

  --text-primary: #FFFFFF;

  --text-secondary: #9CA3AF;

  --accent-green: #10B981;

  --accent-yellow: #F59E0B;

  --accent-pink: #EF4444;

  --accent-blue: #3B82F6;

  --accent-purple: #8B5CF6;

  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --border-width: 1px;

  --border-width-thick: 1px;

}



* {

  box-sizing: border-box;

  margin: 0;

  padding: 0;

  scrollbar-width: thin;

  scrollbar-color: rgba(255, 255, 255, 0.15) #090A0F;

}



/* Custom Scrollbar */

::-webkit-scrollbar {

  width: 8px;

  height: 8px;

}

::-webkit-scrollbar-track {

  background: #090A0F;

}

::-webkit-scrollbar-thumb {

  background: rgba(255, 255, 255, 0.12);

  border-radius: 4px;

}

::-webkit-scrollbar-thumb:hover {

  background: var(--accent-green);

}



body {

  background-color: var(--bg-color);

  color: var(--text-primary);

  font-family: var(--font-family);

  overflow-x: hidden;

  min-height: 100vh;

}



/* App Container Layout */

.app-container {

  display: flex;

  flex-direction: column;

  min-height: 100vh;

  padding: 0 40px;

  max-width: 1600px;

  margin: 0 auto;

}



/* App Header Styling */
.app-header {
  position: sticky;
  top: 16px;
  z-index: 100;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
}



.header-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  transition: opacity 0.2s ease;
}

.header-logo:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  opacity: 0.85;
}

.header-logo:active {
  transform: scale(0.98);
}

.brand-en {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: 0.15em;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.brand-divider {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.25);
  margin: 0 8px;
  line-height: 1;
}

.brand-zh {
  font-family: var(--font-family);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 300;
  letter-spacing: 0.35em;
  margin-top: 2px;
  line-height: 1;
}

/* Category Switches tabs */


.tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-family: var(--font-family);
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.tab-label-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.tab-en {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: inherit;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tab-zh {
  font-size: 9px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
}

.tab-btn:hover .tab-zh,
.tab-btn.active .tab-zh {
  color: rgba(255, 255, 255, 0.65);
}

.tab-btn svg {
  width: 16px;
  height: 16px;
  opacity: 0.8;
}

.tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn:active {
  transform: scale(0.98);
}

.tab-btn.active {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.08);
}

.tab-btn.active {
  background: rgba(181, 158, 124, 0.16) !important;
  color: #B59E7C !important;
  border-color: rgba(181, 158, 124, 0.35) !important;
  box-shadow: 0 0 15px rgba(181, 158, 124, 0.1) !important;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn.active .badge {
  background: rgba(255, 255, 255, 0.12);
  color: inherit;
  border-color: currentColor;
}

.series-filter-bar {
  display: flex;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  gap: 8px !important;
  margin: 0 auto 24px !important;
  padding: 4px 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.series-filter-bar::-webkit-scrollbar {
  display: none !important;
}

.series-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-secondary);
  border-radius: 12px;
  padding: 6px 14px;
  cursor: pointer;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
  line-height: 1.2;
}

.chip-en {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}

.chip-zh {
  font-size: 9px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 1px;
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}

.series-chip:hover .chip-zh,
.series-chip.active .chip-zh {
  color: rgba(255, 255, 255, 0.6);
}

.series-chip:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}

.series-chip.active {
  color: #B59E7C !important;
  background: rgba(181, 158, 124, 0.1) !important;
  border-color: rgba(181, 158, 124, 0.3) !important;
  font-weight: 600;
}

/* Bilingual text containers styling */
.gen-header-label-container,
.mode-title-container,
.mode-desc-container,
.notice-label-container,
.cta-label-container,
.tip-label-container,
.disclaimer-label-container,
.struct-label-container,
.menu-label-container {
  display: flex;
  flex-direction: column;
}

.menu-label-container {
  align-items: flex-start;
  line-height: 1.2;
}

.menu-en {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #FFFFFF;
}

.menu-zh {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.4);
}

.struct-label-container {
  align-items: flex-start;
  line-height: 1.2;
  margin-left: 6px;
  display: inline-flex;
}

.struct-en {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.struct-zh {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
}

.gen-header-label-container {
  align-items: flex-start;
  line-height: 1.2;
}

.gen-header-en {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #FFFFFF;
}

.gen-header-zh {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.mode-title-container {
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #FFFFFF;
  text-transform: uppercase;
}

.mode-title-zh {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 6px;
  font-family: var(--font-family);
  text-transform: none;
}

.mode-desc-container {
  margin-top: 4px;
}

.mode-desc-en {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
}

.mode-desc-zh {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  margin-left: 6px;
}

.cta-label-container {
  align-items: center;
  line-height: 1.1;
}

.cta-en {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cta-zh {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 2px;
}

.notice-label-container,
.tip-label-container,
.disclaimer-label-container {
  line-height: 1.3;
}

.notice-en, .tip-en, .disclaimer-en {
  font-family: 'Outfit', sans-serif;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.45);
  display: block;
}

.notice-zh, .tip-zh, .disclaimer-zh {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
  display: block;
  margin-top: 2px;
}

.dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 14px !important;
}

/* Search Actions */

.header-actions {

  display: flex;

  align-items: center;

  gap: 12px;

}

.data-source-pill {

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 6px;

  padding: 8px 14px;

  color: var(--text-secondary);

  background: rgba(255, 255, 255, 0.03);

  font-size: 12px;

  font-weight: 700;

  text-align: center;

  white-space: nowrap;

  cursor: pointer;

  transition: all 0.2s ease;

  font-family: var(--font-family);

  outline: none;

}

.data-source-pill:hover {

  background: rgba(255, 255, 255, 0.06);

  color: #FFFFFF;

}

.data-source-pill:active {

  transform: scale(0.97);

}

.data-source-pill[data-source="prompt-library"] {

  background: rgba(245, 158, 11, 0.1);

  color: #F59E0B;

  border-color: rgba(245, 158, 11, 0.2);

}

.data-source-pill[data-source="portrait"] {

  background: rgba(59, 130, 246, 0.1);

  color: #3B82F6;

  border-color: rgba(59, 130, 246, 0.2);

}



.search-box {

  position: relative;

  display: flex;

  align-items: center;

}

.search-icon {

  position: absolute;

  left: 12px;

  color: var(--text-secondary);

  width: 16px;

  height: 16px;

}

#searchInput {

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 8px 12px 8px 36px;

  border-radius: 6px;

  color: #FFFFFF;

  font-family: var(--font-family);

  font-size: 13.5px;

  font-weight: 600;

  width: 200px;

  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);

}

#searchInput:focus {

  outline: none;

  width: 260px;

  background-color: rgba(255, 255, 255, 0.06);

  border-color: var(--accent-green);

  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);

}

.clear-btn {

  position: absolute;

  right: 12px;

  background: transparent;

  border: none;

  color: var(--text-secondary);

  font-size: 18px;

  cursor: pointer;

}



/* User authentication Widget */

.user-profile-widget {

  display: flex;

  align-items: center;

  gap: 12px;

}

.login-btn {

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #FFFFFF;

  transition: all 0.2s ease;

  padding: 8px 16px;

  border-radius: 6px;

  font-weight: 700;

  cursor: pointer;

  font-family: var(--font-family);

  font-size: 13px;

}

.login-btn:hover {

  background: rgba(16, 185, 129, 0.15);

  border-color: var(--accent-green);

  color: #FFFFFF;

  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);

}

.login-btn:active {

  transform: scale(0.97);

}



.user-logged-in {

  display: flex;

  align-items: center;

  gap: 12px;

  position: relative;

}

.credits-badge {

  display: flex;

  align-items: center;

  gap: 6px;

  background: rgba(245, 158, 11, 0.12);

  border: 1px solid rgba(245, 158, 11, 0.25);

  padding: 8px 14px;

  border-radius: 6px;

  color: #F59E0B;

  font-size: 13px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s ease;

}

.credits-badge:hover {

  background: rgba(245, 158, 11, 0.18);

  box-shadow: 0 0 15px rgba(245, 158, 11, 0.1);

}

.credits-badge:active {

  transform: scale(0.97);

}

.coin-icon {

  width: 14px;

  height: 14px;

  animation: pulse 2s infinite;

}

@keyframes pulse {

  0% { transform: scale(1); }

  50% { transform: scale(1.15); }

  100% { transform: scale(1); }

}



.user-avatar-menu {

  position: relative;

  cursor: pointer;

}

.avatar-circle {

  width: 38px;

  height: 38px;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.05);

  color: #FFFFFF;

  display: flex;

  align-items: center;

  justify-content: center;

  font-weight: 800;

  font-size: 14px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  transition: all 0.2s ease;

}

.user-avatar-menu:hover .avatar-circle {

  background: rgba(255, 255, 255, 0.08);

  border-color: rgba(255, 255, 255, 0.15);

  box-shadow: 0 0 12px rgba(255, 255, 255, 0.05);

}

.user-dropdown-menu {

  position: absolute;

  top: 48px;

  right: 0;

  background: #12131A;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  width: 220px;

  padding: 8px 0;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

  display: none;

  flex-direction: column;

  z-index: 200;

  animation: slideDownMenu 0.15s cubic-bezier(0.16, 1, 0.3, 1);

}

.user-avatar-menu:hover .user-dropdown-menu {

  display: flex;

}

@keyframes slideDownMenu {

  from { opacity: 0; transform: translateY(-10px); }

  to { opacity: 1; transform: translateY(0); }

}

.dropdown-header {

  padding: 12px 16px;

}

.dropdown-email {

  font-size: 13px;

  font-weight: 700;

  color: #FFFFFF;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}

.dropdown-role {

  font-size: 11px;

  color: var(--text-secondary);

  font-weight: 600;

  margin-top: 4px;

}

.user-dropdown-menu hr {

  border: none;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  margin: 4px 0;

}

.dropdown-item {

  background: transparent;

  border: none;

  padding: 10px 16px;

  color: var(--text-secondary);

  font-size: 13px;

  font-family: var(--font-family);

  font-weight: 700;

  text-align: left;

  cursor: pointer;

  display: flex;

  align-items: center;

  gap: 8px;

  transition: all 0.15s ease;

}

.dropdown-item svg {

  width: 14px;

  height: 14px;

}

.dropdown-item:hover {

  background: rgba(255, 255, 255, 0.03);

  color: #FFFFFF;

}

.dropdown-item#logoutBtn:hover {

  color: #FFFFFF;

  background: rgba(239, 68, 68, 0.15);

}



#adminLink {

  background: rgba(255, 255, 255, 0.03) !important;

  border: 1px solid rgba(255, 255, 255, 0.08) !important;

  color: #FFFFFF !important;

  border-radius: 8px !important;

  padding: 8px 14px !important;

  transition: all 0.2s ease !important;

  box-shadow: none !important;

}

#adminLink:hover {

  background: rgba(59, 130, 246, 0.15) !important;

  border-color: var(--accent-blue) !important;

  box-shadow: 0 0 15px rgba(59, 130, 246, 0.15) !important;

}

#adminLink:active {

  transform: scale(0.97);

}



/* Main Content Workspace */

.main-content {

  display: flex;

  flex-direction: column;

  gap: 32px;

  margin-top: 32px;

  flex: 1;

}



.brand-hero-strip {
  position: relative;
  height: clamp(240px, 30vw, 420px);
  min-height: 250px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at 80% 20%, #121118 0%, #050507 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 6vw, 64px);
}



.hero-bg-media {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  object-fit: cover;

  object-position: center 30%;

  z-index: 1;

  transition: transform 0.8s ease;

}



.hero-overlay-gradient {

  position: absolute;

  inset: 0;

  background: linear-gradient(90deg, rgba(9, 10, 15, 0.95) 0%, rgba(9, 10, 15, 0.8) 40%, rgba(9, 10, 15, 0.3) 100%);

  z-index: 2;

  pointer-events: none;

}



.brand-hero-content {

  position: relative;

  z-index: 3;

  max-width: clamp(320px, 60vw, 650px);

  display: flex;

  flex-direction: column;

  gap: 16px;

  color: #FFFFFF;

}



.hero-brand-tag {

  font-size: 11px;

  letter-spacing: 0.28em;

  color: var(--accent-pink);

  font-weight: 700;

  text-transform: uppercase;

}



.hero-main-title {

  font-size: clamp(22px, 3.8vw, 38px);

  font-weight: 700;

  line-height: 1.25;

  background: linear-gradient(135deg, #FFFFFF 0%, #D1D5DB 100%);

  -webkit-background-clip: text;

  -webkit-text-fill-color: transparent;

}



.hero-subtitle {

  font-size: clamp(12px, 1.4vw, 14px);

  line-height: 1.6;

  color: var(--text-secondary);

  font-weight: 500;

}



.hero-btn-group {

  display: flex;

  flex-wrap: wrap;

  gap: 12px;

  margin-top: 8px;

}



.hero-btn-primary, .hero-btn-secondary {

  padding: 10px 20px;

  border-radius: 30px;

  font-family: var(--font-family);

  font-size: 13px;

  font-weight: 700;

  cursor: pointer;

  display: flex;

  align-items: center;

  gap: 8px;

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  outline: none;

}



.hero-btn-primary {

  background: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);

  color: #FFFFFF;

  border: none;

  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);

}

.hero-btn-primary:hover {

  transform: translateY(-2px);

  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.45);

  filter: brightness(1.1);

}

.hero-btn-primary:active {

  transform: translateY(1px);

}



.hero-btn-secondary {

  background: rgba(255, 255, 255, 0.04);

  color: #FFFFFF;

  border: 1px solid rgba(255, 255, 255, 0.12);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

}

.hero-btn-secondary:hover {

  transform: translateY(-2px);

  background: rgba(255, 255, 255, 0.08);

  border-color: rgba(255, 255, 255, 0.25);

}

.hero-btn-secondary:active {

  transform: translateY(1px);

}



.hero-btn-primary svg, .hero-btn-secondary svg {

  width: 14px;

  height: 14px;

}



.gallery-wrapper {

  flex: 1;

  display: flex;

  flex-direction: column;

  gap: 16px;

  min-width: 0;

  width: 100%;

}



/* Search Status Bar */

.search-status-bar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  background: rgba(255, 255, 255, 0.02);

  padding: 10px 16px;

  border-radius: 8px;

  border: 1px solid rgba(255, 255, 255, 0.08);

}

.search-status-bar span {

  font-size: 13px;

  color: var(--text-secondary);

  font-weight: 600;

}

.search-status-bar button {

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #FFFFFF;

  padding: 4px 12px;

  border-radius: 6px;

  font-size: 11.5px;

  font-weight: 700;

  cursor: pointer;

  transition: all 0.2s ease;

}

.search-status-bar button:hover {

  background: rgba(245, 158, 11, 0.15);

  color: #F59E0B;

  border-color: rgba(245, 158, 11, 0.3);

}

.search-status-bar button:active {

  transform: scale(0.97);

}



/* Pinterest Masonry Grid */

.masonry-grid {

  column-count: 5;

  column-gap: 24px;

  width: 100%;

  max-width: 100%;

}

@media (max-width: 1700px) { .masonry-grid { column-count: 4; } }

@media (max-width: 1300px) { .masonry-grid { column-count: 3; } }

@media (max-width: 900px) { .masonry-grid { column-count: 2; } }

@media (max-width: 600px) { .masonry-grid { column-count: 1; } }



/* Gallery Card Style */

.gallery-card {

  background: #050507;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 6px;

  overflow: hidden;

  margin-bottom: 24px;

  display: inline-block;

  width: 100%;

  cursor: pointer;

  position: relative;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);

  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.3s ease;

  animation: cardFadeIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) both;

}

@keyframes cardFadeIn {

  from { opacity: 0; transform: translateY(15px); }

  to { opacity: 1; transform: translateY(0); }

}



.gallery-card:hover {

  transform: translateY(-6px);

  box-shadow: 0 20px 40px rgba(16, 185, 129, 0.08), 0 1px 2px rgba(16, 185, 129, 0.05);

  border-color: rgba(16, 185, 129, 0.2);

}

.gallery-card:active {

  transform: translateY(-2px);

}



.card-img-container {

  width: 100%;

  position: relative;

  overflow: hidden;

  background: #090A0F;

  border-bottom: 0;

}

.card-img-container img {

  width: 100%;

  height: auto;

  display: block;

  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

}

.gallery-card:hover .card-img-container img {

  transform: scale(1.02);

}



/* Protection styles */

.gallery-card.protected-card .card-img-container img {

  pointer-events: none;

  user-select: none;

}

.gallery-card.protected-card .card-img-container::before {

  content: "";

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ctext x='5' y='80' fill='rgba%28255, 255, 255, 0.02%29' font-size='8' font-family='sans-serif' font-weight='bold' transform='rotate%28-30 5 80%29'%3EPRIVATE%3C/text%3E%3C/svg%3E");

  background-repeat: repeat;

  pointer-events: none;

  z-index: 2;

}



.protected-badge {

  position: absolute;

  top: 10px;

  left: 10px;

  background: rgba(0, 0, 0, 0.65);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 4px 8px;

  border-radius: 6px;

  font-size: 10.5px;

  font-weight: 700;

  color: #FFFFFF;

  display: flex;

  align-items: center;

  gap: 4px;

  z-index: 3;

}

.protected-badge svg {

  width: 10px;

  height: 10px;

}



.count-badge {

  position: absolute;

  top: 10px;

  right: 10px;

  background: rgba(0, 0, 0, 0.65);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 4px 8px;

  border-radius: 6px;

  font-size: 10px;

  font-weight: 700;

  color: #FFFFFF;

  display: flex;

  align-items: center;

  gap: 4px;

  z-index: 3;

}



/* Hover remix overlay */

.card-hover-remix {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(0, 0, 0, 0.18);

  backdrop-filter: none;

  -webkit-backdrop-filter: none;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  opacity: 0;

  transition: opacity 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);

  z-index: 4;

}

.gallery-card:hover .card-hover-remix {

  opacity: 1;

}



.quick-remix-btn {

  width: 46px;

  height: 46px;

  background: rgba(0, 0, 0, 0.58);

  border: 1px solid rgba(255, 255, 255, 0.28);

  color: #FFFFFF;

  padding: 0;

  font-weight: 700;

  font-size: 0;

  border-radius: 50%;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 6px;

  transition: all 0.2s ease;

  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);

}

.quick-remix-btn::before {

  content: "↗";

  font-size: 22px;

  line-height: 1;

}

.quick-remix-btn:hover {

  transform: translateY(-2px);

  background: rgba(255, 255, 255, 0.92);

  color: #050507;

  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);

}

.quick-remix-btn:active {

  transform: translateY(1px);

}



/* Card details always visible at the bottom of the card */

.card-details {

  display: none;

}



.card-title {

  font-size: 14.5px;

  font-weight: 700;

  color: #FFFFFF;

  margin-bottom: 2px;

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

}

.card-tags {

  display: flex;

  flex-wrap: wrap;

  gap: 6px;

}

.card-tag-pill {

  font-size: 10px;

  font-weight: 600;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.06);

  color: var(--text-secondary);

  padding: 2px 6px;

  border-radius: 4px;

}

.card-footer {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-top: 4px;

}

.card-note-snippet {

  font-size: 11px;

  color: var(--text-secondary);

  white-space: nowrap;

  overflow: hidden;

  text-overflow: ellipsis;

  max-width: 55%;

  font-weight: 500;

}

.card-actions {

  display: flex;

  align-items: center;

  gap: 8px;

}

.remix-icon-btn {

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #FFFFFF;

  font-size: 11px;

  font-weight: 700;

  padding: 6px 12px;

  border-radius: 6px;

  cursor: pointer;

  display: flex;

  align-items: center;

  gap: 4px;

  transition: all 0.2s ease;

}

.remix-icon-btn:hover {

  background: rgba(245, 158, 11, 0.15);

  color: #F59E0B;

  border-color: rgba(245, 158, 11, 0.3);

}

.remix-icon-btn:active {

  transform: scale(0.96);

}

.quick-copy-btn {

  background: rgba(255, 255, 255, 0.03);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 6px;

  width: 28px;

  height: 28px;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--text-secondary);

  cursor: pointer;

  transition: all 0.2s ease;

}

.quick-copy-btn:hover {

  background: rgba(255, 255, 255, 0.06);

  color: #FFFFFF;

  border-color: rgba(255, 255, 255, 0.15);

}

.quick-copy-btn:active {

  transform: scale(0.95);

}



#masonryGrid.security-blur-grid {

  filter: blur(25px) saturate(0.5);

  transition: filter 0.2s ease;

}



/* Empty State */

.empty-state {

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  padding: 80px 20px;

  text-align: center;

  color: var(--text-secondary);

}

.empty-state svg {

  width: 48px;

  height: 48px;

  margin-bottom: 16px;

  opacity: 0.5;

}



/* Footer Styling */

.app-footer {

  padding: 40px 0;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  text-align: center;

  color: var(--text-secondary);

  font-size: 13px;

  font-weight: 600;

  margin-top: 80px;

}



/* Detail Modal Style */

.modal-overlay {

  position: fixed;

  top: 0;

  left: 0;

  width: 100vw;

  height: 100vh;

  background: rgba(0, 0, 0, 0.7);

  backdrop-filter: blur(8px);

  -webkit-backdrop-filter: blur(8px);

  z-index: 1000;

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 0;

  pointer-events: none;

  transition: opacity 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);

}

.modal-overlay:not(.open) {
  visibility: hidden;
}

.modal-overlay.open {

  opacity: 1;

  pointer-events: auto;

  visibility: visible;

}



.modal-container {

  width: 90%;

  max-width: 1150px;

  height: 88vh;

  background: #090A0F;

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 20px;

  overflow: hidden;

  position: relative;

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);

  transform: scale(0.95) translateY(10px);

  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;

}

.modal-overlay.open .modal-container {

  transform: scale(1) translateY(0);

}



.modal-close {

  position: absolute;

  top: 18px;

  right: 18px;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #FFFFFF;

  font-size: 24px;

  width: 38px;

  height: 38px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  z-index: 10;

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

}

.modal-close:hover {

  background: var(--accent-pink);

  color: #FFFFFF;

  border-color: transparent;

  transform: scale(1.05) rotate(90deg);

  box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);

}

.modal-close:active {

  transform: scale(0.95) rotate(90deg);

}



.modal-body {

  display: flex;

  height: 100%;

  width: 100%;

}



.modal-media-panel {

  width: 50%;

  background-color: #0D0E12;

  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1.2px, transparent 1.2px);

  background-size: 24px 24px;

  background-position: 0 0;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  height: 100%;

  position: relative;

  overflow: hidden;

  padding: 32px;

}

.image-wrapper-protected {

  flex: 1;

  width: 100%;

  min-height: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  position: relative;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  overflow: hidden;

  background: #090A0F;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);

}

.image-wrapper-protected img {

  max-height: 100%;

  max-width: 100%;

  object-fit: contain;

  display: block;

}



.unselectable {

  user-select: none;

  pointer-events: none;

}



/* Watermark styles for Protected Asset in Modal */

.watermark-overlay {

  display: none;

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(0, 0, 0, 0.03);

  pointer-events: none;

  z-index: 5;

}

.watermark-overlay.active {

  display: block;

}

.watermark-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Ctext x='15' y='180' fill='rgba%28255, 255, 255, 0.18%29' font-size='13' font-family='sans-serif' font-weight='bold' transform='rotate%28-30 15 180%29'%3EETCHSHADOW%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.watermark-inner {
  display: none !important;

  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  z-index: 6;

  text-align: center;

}

.watermark-text {

  font-size: 18px;

  font-weight: 800;

  color: #FFFFFF;

  background: #12131A;

  border: 1px solid rgba(255, 255, 255, 0.15);

  padding: 8px 20px;

  transform: rotate(-4deg);

  margin-bottom: 12px;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);

  letter-spacing: 1.5px;

}

.watermark-sub {

  font-size: 11px;

  color: var(--text-secondary);

  background: #12131A;

  padding: 6px 12px;

  border-radius: 4px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  font-weight: 600;

  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

}



/* Security Defocus Blur Overlay */

.image-wrapper-protected.security-blur img {

  filter: blur(40px) saturate(0.3);

}

.image-wrapper-protected.security-blur .watermark-overlay::after {

  content: "⚠️ 安全防护：检测到系统截屏或窗口失去焦点";

  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  background: #12131A;

  border: 1px solid rgba(255, 255, 255, 0.15);

  color: #FFFFFF;

  padding: 12px 24px;

  border-radius: 8px;

  font-size: 13.5px;

  font-weight: 700;

  z-index: 10;

  box-shadow: 0 10px 25px rgba(0,0,0,0.5);

  pointer-events: none;

}



/* Modal Info Panel */

.modal-info-panel {

  width: 50%;

  padding: 36px;

  display: flex;

  flex-direction: column;

  gap: 22px;

  overflow-y: auto;

  border-left: 1px solid rgba(255, 255, 255, 0.08);

  background: #12131A;

}



.modal-header-info {

  display: flex;

  justify-content: space-between;

  align-items: center;

}

.modal-title {

  font-size: 24px;

  font-weight: 900;

  color: #FFFFFF;

  letter-spacing: -0.8px;

}

.category-pill {

  font-size: 11px;

  font-weight: 800;

  padding: 4px 12px;

  border-radius: 4px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: none;

}

.category-pill[data-cat="social"] {

  background: rgba(245, 158, 11, 0.15);

  color: var(--accent-yellow);

  border-color: rgba(245, 158, 11, 0.3);

}

.category-pill[data-cat="portrait"] {

  background: rgba(16, 185, 129, 0.15);

  color: var(--accent-green);

  border-color: rgba(16, 185, 129, 0.3);

}

.category-pill[data-cat="virtual"] {

  background: rgba(59, 130, 246, 0.15);

  color: var(--accent-blue);

  border-color: rgba(59, 130, 246, 0.3);

}

.modal-date {

  font-size: 12.5px;

  color: rgba(255, 255, 255, 0.5);

  font-weight: 600;

}



/* Tabs for Prompt view modes */

.prompt-tabs {

  display: flex;

  gap: 8px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  padding-bottom: 8px;

}

.prompt-tab-btn {

  background: rgba(255, 255, 255, 0.02);

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: rgba(255, 255, 255, 0.6);

  font-size: 13.5px;

  font-weight: 700;

  cursor: pointer;

  padding: 8px 14px;

  border-radius: 6px;

  transition: all 0.15s ease;

  font-family: var(--font-family);

  display: flex;

  align-items: center;

  gap: 6px;

  box-shadow: none;

}

.prompt-tab-btn svg {

  width: 14px;

  height: 14px;

}

.prompt-tab-btn:hover {

  background: rgba(255, 255, 255, 0.06);

  color: #FFFFFF;

  border-color: rgba(255, 255, 255, 0.15);

}

.prompt-tab-btn.active {

  background: rgba(16, 185, 129, 0.15);

  color: #10B981;

  border-color: rgba(16, 185, 129, 0.4);

  box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);

}



.prompt-panel-content {

  display: none;

  flex-direction: column;

  gap: 16px;

}

.prompt-panel-content.active {

  display: flex;

}



/* Prompt Box and protect disclaimer */

.prompt-box-wrapper {

  position: relative;

  width: 100%;

}

#rawPromptText {

  width: 100%;

  height: 180px;

  background: #090A0F;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 12px;

  color: #E2E8F0;

  font-family: monospace;

  font-size: 12.5px;

  line-height: 1.6;

  resize: none;

  outline: none;

  box-shadow: none;

  transition: all 0.2s ease;

}

#rawPromptText:focus {

  border-color: rgba(16, 185, 129, 0.4);

  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);

}

.protection-disclaimer {

  display: none;

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(9, 10, 15, 0.96);

  border-radius: 8px;

  align-items: center;

  justify-content: center;

  gap: 10px;

  color: rgba(255, 255, 255, 0.85);

  font-size: 13.5px;

  font-weight: 700;

  border: 1px dashed rgba(255, 255, 255, 0.15);

}

.protection-disclaimer.active {

  display: flex;

}



/* Action buttons */

.action-buttons-group {

  display: flex;

  gap: 12px;

}

.action-btn {

  flex: 1;

  padding: 12px 24px;

  border-radius: 6px;

  border: 1px solid rgba(255, 255, 255, 0.08);

  font-family: var(--font-family);

  font-size: 13.5px;

  font-weight: 800;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

  text-decoration: none;

  box-shadow: none;

}

.copy-btn {

  background: #10B981;

  color: #000000;

  border: none;

}

.copy-btn:hover {

  background: #34D399;

  color: #000000;

  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);

  transform: translateY(-1px);

}

.copy-btn:active {

  transform: translateY(1px);

}

.download-btn {

  background: rgba(255, 255, 255, 0.05);

  color: #FFFFFF;

}

.download-btn:hover {

  background: rgba(255, 255, 255, 0.1);

  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);

  transform: translateY(-1px);

}

.download-btn:active {

  transform: translateY(1px);

}

.action-btn:disabled, .action-btn.disabled {

  opacity: 0.4 !important;

  cursor: not-allowed !important;

  pointer-events: none !important;

  transform: none !important;

  box-shadow: none !important;

}



/* Structured Prompt Grid */

.structure-grid {

  display: grid;

  grid-template-columns: 1fr;

  gap: 12px;

}

.structure-item {

  background: #12131A;

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 8px;

  padding: 12px 16px;

  box-shadow: none;

}

.struct-title {

  display: flex;

  align-items: center;

  gap: 6px;

  font-size: 11px;

  text-transform: uppercase;

  color: var(--accent-green);

  font-weight: 800;

  margin-bottom: 4px;

}

.struct-title svg {

  width: 12px;

  height: 12px;

}

.struct-content {

  font-size: 12.5px;

  color: #E2E8F0;

  line-height: 1.5;

  font-weight: 500;

}



/* Metadata tags */

.metadata-tags-section h4 {

  font-size: 12px;

  color: rgba(255, 255, 255, 0.6);

  text-transform: uppercase;

  margin-bottom: 8px;

  font-weight: 800;

}

.tags-container {

  display: flex;

  flex-wrap: wrap;

  gap: 6px;

}



/* Generator Panel: 一键生成同款 */

.generator-section {

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 12px;

  padding: 20px;

  background: rgba(20, 22, 28, 0.6);

  backdrop-filter: blur(12px);

  margin-top: 12px;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

}

.generator-header {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 14px;

}

.generator-header h3 {

  font-size: 16px;

  font-weight: 900;

  color: #FFFFFF;

  margin: 0;

  display: flex;

  align-items: center;

  gap: 6px;

}

.cost-indicator {

  background: rgba(16, 185, 129, 0.12);

  border: 1px solid rgba(16, 185, 129, 0.3);

  color: #10B981;

  font-size: 11.5px;

  font-weight: 800;

  padding: 4px 10px;

  border-radius: 4px;

  box-shadow: none;

}



.gen-mode-tabs {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 10px;

  margin-bottom: 16px;

}

.gen-mode-btn {

  background: rgba(255, 255, 255, 0.02);

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 8px;

  padding: 10px 14px;

  text-align: left;

  cursor: pointer;

  display: flex;

  flex-direction: column;

  transition: all 0.2s ease;

  box-shadow: none;

}

.gen-mode-btn.active {

  background: rgba(16, 185, 129, 0.15);

  border-color: rgba(16, 185, 129, 0.4);

  box-shadow: 0 0 12px rgba(16, 185, 129, 0.1);

}

.gen-mode-btn:hover {

  background: rgba(255, 255, 255, 0.05);

}

.gen-mode-btn.active:hover {

  background: rgba(16, 185, 129, 0.2);

}

.mode-title {

  font-size: 13.5px;

  font-weight: 800;

  color: #FFFFFF;

}

.mode-desc {

  font-size: 10.5px;

  color: rgba(255, 255, 255, 0.5);

  margin-top: 2px;

}



.reference-upload-container {

  border: 1px dashed rgba(255, 255, 255, 0.12);

  border-radius: 8px;

  padding: 20px;

  text-align: center;

  background: rgba(255, 255, 255, 0.01);

  margin-bottom: 16px;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  transition: all 0.2s ease;

}

.reference-upload-container:hover {

  background: rgba(16, 185, 129, 0.04);

  border-style: dashed;

  border-color: var(--accent-green);

}

.ref-upload-label {

  display: flex;

  flex-direction: column;

  align-items: center;

  width: 100%;

  cursor: pointer;

}

.ref-upload-label svg {

  width: 28px;

  height: 28px;

  margin-bottom: 8px;

  color: rgba(255, 255, 255, 0.6);

}

.upload-title {

  font-size: 13px;

  font-weight: 800;

  color: #FFFFFF;

}

.upload-subtitle {

  font-size: 11px;

  color: rgba(255, 255, 255, 0.4);

  margin-top: 4px;

}



.ref-preview-wrapper {

  position: relative;

  width: 84px;

  height: 84px;

  border: 1px solid rgba(255, 255, 255, 0.15);

  border-radius: 8px;

  overflow: hidden;

  box-shadow: 0 4px 16px rgba(0,0,0,0.3);

}

.ref-preview-wrapper img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}

.remove-ref-btn {

  position: absolute;

  top: 2px;

  right: 2px;

  background: rgba(239, 68, 68, 0.9);

  border: none;

  color: #FFFFFF;

  width: 20px;

  height: 20px;

  border-radius: 4px;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  font-size: 10px;

  box-shadow: none;

}



.generator-input-group {

  display: flex;

  flex-direction: column;

  gap: 8px;

  margin-bottom: 16px;

}

.generator-input-group label {

  font-size: 12.5px;

  font-weight: 800;

  color: rgba(255, 255, 255, 0.8);

}

.generator-input-group input {

  background: #090A0F;

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 12px;

  border-radius: 8px;

  color: #FFFFFF;

  font-family: var(--font-family);

  font-size: 13px;

  font-weight: 600;

  box-shadow: none;

  transition: all 0.2s ease;

}

.generator-input-group input:focus {

  outline: none;

  background: #090A0F;

  border-color: rgba(16, 185, 129, 0.5);

  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);

}



.generate-cta-btn {

  width: 100%;

  background: linear-gradient(135deg, #10B981, #059669);

  border: none;

  color: #FFFFFF;

  padding: 14px;

  border-radius: 8px;

  font-family: var(--font-family);

  font-size: 15px;

  font-weight: 900;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.2);

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

}

.generate-cta-btn:hover {

  background: linear-gradient(135deg, #34D399, #10B981);

  box-shadow: 0 4px 25px rgba(16, 185, 129, 0.35);

  transform: translateY(-1px);

}

.generate-cta-btn:active {

  transform: translateY(1px);

}

.generate-cta-btn.disabled, .generate-cta-btn:disabled {

  opacity: 0.4;

  cursor: not-allowed;

  transform: none !important;

  box-shadow: none !important;

}



.generation-progress-box {

  margin-top: 16px;

  background: #12131A;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 14px;

  box-shadow: none;

}

.progress-info {

  display: flex;

  justify-content: space-between;

  font-size: 12.5px;

  font-weight: 800;

  color: #FFFFFF;

  margin-bottom: 8px;

}

.progress-bar-bg {

  width: 100%;

  height: 20px;

  background: #090A0F;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 6px;

  overflow: hidden;

  position: relative;

}

.progress-bar-fill {

  height: 100%;

  background-color: #10B981;

  background-image: linear-gradient(

    45deg,

    rgba(0,0,0,0.15) 25%,

    transparent 25%,

    transparent 50%,

    rgba(0,0,0,0.15) 50%,

    rgba(0,0,0,0.15) 75%,

    transparent 75%,

    transparent

  );

  background-size: 24px 24px;

  animation: progress-stripes 0.8s linear infinite;

  transition: width 0.3s ease;

}

@keyframes progress-stripes {

  from { background-position: 0 0; }

  to { background-position: 24px 0; }

}



.generation-results-gallery {

  margin-top: 18px;

  border-top: 1px solid rgba(255, 255, 255, 0.08);

  padding-top: 14px;

}

.generation-results-gallery h4 {

  font-size: 13.5px;

  font-weight: 800;

  color: #FFFFFF;

  margin-bottom: 10px;

}



.results-grid {

  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 12px;

}

.result-item {

  position: relative;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  overflow: hidden;

  aspect-ratio: 1024/1792;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

  background: #090A0F;

  cursor: pointer;

  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);

}

.result-item:hover {

  transform: translateY(-2px);

  border-color: rgba(16, 185, 129, 0.4);

  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.2);

}

.result-item img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}

.result-item-overlay {

  position: absolute;

  top: 0;

  left: 0;

  width: 100%;

  height: 100%;

  background: rgba(0, 0, 0, 0.5);

  backdrop-filter: blur(2px);

  display: flex;

  align-items: center;

  justify-content: center;

  opacity: 0;

  transition: opacity 0.2s ease;

}

.result-item:hover .result-item-overlay {

  opacity: 1;

}

.result-download-link {

  background: #10B981;

  border: none;

  color: #000000;

  width: 36px;

  height: 36px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  cursor: pointer;

  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);

  transition: all 0.2s ease;

}

.result-download-link:hover {

  background: #34D399;

  transform: scale(1.1);

}







/* Composer Modal Styling */

.composer-result-container {

  height: auto;

  max-width: 600px;

  padding: 32px;

}

.composer-modal-header {

  margin-bottom: 20px;

}

.composer-modal-header h3 {

  font-size: 18px;

  font-weight: 900;

  color: #FFFFFF;

}

.composer-modal-header p {

  font-size: 12.5px;

  color: rgba(255, 255, 255, 0.5);

  margin-top: 4px;

  font-weight: 500;

}

#composerResultText {

  width: 100%;

  height: 200px;

  background: #090A0F;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 12px;

  color: #FFFFFF;

  font-family: monospace;

  font-size: 12.5px;

  line-height: 1.6;

  resize: none;

  outline: none;

  margin-bottom: 20px;

  box-shadow: none;

  transition: all 0.2s ease;

}

#composerResultText:focus {

  border-color: rgba(16, 185, 129, 0.4);

  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);

}



/* Security protections */

@media print {

  html, body, .app-container, .modal-overlay {

    display: none !important;

  }

}



body.global-security-blur .app-container,

body.global-security-blur .modal-overlay {

  filter: blur(35px) grayscale(0.5);

  pointer-events: none;

  user-select: none;

}

body.global-security-blur::before {

  content: "🔒 安全受控资产已被遮蔽 (Screen Protected)";

  position: fixed;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  z-index: 99999;

  color: #FFFFFF;

  font-family: var(--font-family);

  font-size: 18px;

  font-weight: 900;

  letter-spacing: 1px;

  background: #12131A;

  padding: 18px 36px;

  border-radius: 12px;

  border: 1px solid rgba(255, 255, 255, 0.1);

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);

  pointer-events: none;

  animation: fadeInSecure 0.2s cubic-bezier(0.16, 1, 0.3, 1);

}

@keyframes fadeInSecure {

  from { opacity: 0; transform: translate(-50%, -45%) scale(0.95); }

  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }

}



/* Responsive Modal Layout */

@media (max-width: 900px) {

  .modal-container {

    height: 90vh;

    max-height: 850px;

    width: 95%;

  }

  .modal-body {

    flex-direction: column;

    overflow-y: auto;

  }

  .modal-media-panel {

    width: 100%;

    height: 350px;

    flex-shrink: 0;

    padding: 30px 16px 16px 16px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  }

  .modal-info-panel {

    width: 100%;

    border-left: none;

    padding: 24px;

    overflow-y: visible;

  }

}



/* Authentication Modal (Email/Password) */

.auth-container {

  max-width: 400px;

  height: auto;

  padding: 36px;

}

.auth-header {

  text-align: center;

  margin-bottom: 24px;

}

.auth-header h3 {

  font-size: 22px;

  font-weight: 900;

  color: #FFFFFF;

}

.auth-header p {

  font-size: 13px;

  color: rgba(255, 255, 255, 0.5);

  margin-top: 8px;

  line-height: 1.5;

  font-weight: 500;

}

.auth-oauth-btn {

  width: 100%;

  min-height: 46px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  border: 1px solid rgba(255, 255, 255, 0.14);

  border-radius: 8px;

  background: rgba(255, 255, 255, 0.94);

  color: #101114;

  font-family: var(--font-family);

  font-size: 13px;

  font-weight: 900;

  cursor: pointer;

  transition: all 0.18s ease;

}

.auth-oauth-btn svg {

  width: 18px;

  height: 18px;

}

.auth-oauth-btn:hover {

  background: #ffffff;

  transform: translateY(-1px);

}

.auth-oauth-btn:disabled {

  cursor: progress;

  opacity: 0.72;

  transform: none;

}

.auth-divider {

  display: flex;

  align-items: center;

  gap: 12px;

  margin: 18px 0;

  color: rgba(255, 255, 255, 0.38);

  font-size: 11px;

  font-weight: 800;

  letter-spacing: 0.12em;

}

.auth-divider::before,
.auth-divider::after {

  content: "";

  flex: 1;

  height: 1px;

  background: rgba(255, 255, 255, 0.08);

}

.auth-form {

  display: flex;

  flex-direction: column;

  gap: 18px;

}

.input-field {

  display: flex;

  flex-direction: column;

  gap: 8px;

}

.input-field label {

  font-size: 12px;

  font-weight: 700;

  color: rgba(255, 255, 255, 0.8);

  display: flex;

  align-items: center;

  gap: 6px;

}

.input-field label svg {

  width: 13px;

  height: 13px;

}

.input-field input {

  background: #090A0F;

  border: 1px solid rgba(255, 255, 255, 0.08);

  padding: 12px 14px;

  border-radius: 8px;

  color: #FFFFFF;

  font-family: var(--font-family);

  font-size: 13.5px;

  font-weight: 600;

  box-shadow: none;

  transition: all 0.2s ease;

}

.input-field input:focus {

  outline: none;

  background: #090A0F;

  border-color: rgba(16, 185, 129, 0.5);

  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);

}

.auth-error-message {

  font-size: 12px;

  color: #FFFFFF;

  background: rgba(239, 68, 68, 0.95);

  border: none;

  padding: 10px 12px;

  border-radius: 6px;

  line-height: 1.4;

  font-weight: 700;

  box-shadow: none;

}

.auth-submit-btn {

  background: linear-gradient(135deg, #10B981, #059669);

  color: #FFFFFF;

  border: none;

  padding: 14px;

  border-radius: 8px;

  font-family: var(--font-family);

  font-size: 14px;

  font-weight: 900;

  cursor: pointer;

  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);

  transition: all 0.2s ease;

}

.auth-submit-btn:hover {

  background: linear-gradient(135deg, #34D399, #10B981);

  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);

  transform: translateY(-1px);

}

.auth-submit-btn:active {

  transform: translateY(1px);

}

.auth-switch {

  text-align: center;

  font-size: 12.5px;

  color: rgba(255, 255, 255, 0.5);

  margin-top: 24px;

  font-weight: 500;

}

.switch-link-btn {

  background: transparent;

  border: none;

  color: var(--accent-green);

  font-family: var(--font-family);

  font-weight: 700;

  cursor: pointer;

  text-decoration: underline;

  padding: 2px 4px;

  transition: color 0.15s ease;

}

.switch-link-btn:hover {

  color: #34D399;

}



/* Pricing recharge modal */

.pricing-container {

  max-width: 1050px;

  height: auto;

  max-height: 90vh;

  overflow-y: auto;

  padding: 40px;

}

.pricing-header {

  text-align: center;

  margin-bottom: 36px;

}

.pricing-header h3 {

  font-size: 26px;

  font-weight: 900;

  color: #FFFFFF;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 8px;

}

.pricing-header p {

  font-size: 13.5px;

  color: rgba(255, 255, 255, 0.5);

  margin-top: 8px;

  font-weight: 500;

}

.pricing-grid {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 24px;

  margin-bottom: 10px;

  padding-top: 15px; /* Leave space for badges */

}

@media (max-width: 1000px) {

  .pricing-grid {

    grid-template-columns: repeat(2, 1fr);

    gap: 30px 20px;

  }

}

@media (max-width: 600px) {

  .pricing-grid {

    grid-template-columns: 1fr;

    gap: 30px 0;

  }

}

.pricing-card {

  background: rgba(20, 22, 28, 0.75);

  backdrop-filter: blur(12px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 14px;

  padding: 32px 20px 24px 20px;

  text-align: center;

  position: relative;

  display: flex;

  flex-direction: column;

  justify-content: space-between;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  min-height: 380px;

}

.pricing-card:hover {

  transform: translateY(-6px);

}



/* Specific theme glow borders for Pricing cards */

.pricing-card.pack-300 {

  border-color: rgba(245, 158, 11, 0.2);

}

.pricing-card.pack-300:hover {

  border-color: rgba(245, 158, 11, 0.6);

  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.15);

}



.pricing-card.pack-1000 {

  border-color: rgba(16, 185, 129, 0.3);

}

.pricing-card.pack-1000:hover {

  border-color: rgba(16, 185, 129, 0.7);

  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.25);

}



.pricing-card.member-starter {

  border-color: rgba(59, 130, 246, 0.2);

}

.pricing-card.member-starter:hover {

  border-color: rgba(59, 130, 246, 0.6);

  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.15);

}



.pricing-card.member-creator {

  border-color: rgba(236, 72, 153, 0.2);

}

.pricing-card.member-creator:hover {

  border-color: rgba(236, 72, 153, 0.6);

  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.15);

}



/* Card Badges - Horizontal Premium Badge labels */

.pricing-card .card-badge {

  position: absolute;

  top: -16px;

  left: 50%;

  transform: translateX(-50%); /* Removed slanted rotation for horizontal placement */

  background: rgba(255, 255, 255, 0.1);

  color: #FFFFFF;

  padding: 4px 14px;

  border-radius: 6px;

  font-size: 11.5px;

  font-weight: 800;

  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);

  white-space: nowrap;

  transition: transform 0.2s ease, background 0.2s ease;

}

.pricing-card:hover .card-badge {

  transform: translateX(-50%) scale(1.05);

}



.pricing-card.pack-300 .card-badge {

  background: var(--accent-yellow);

  color: #000000;

  border-color: var(--accent-yellow);

}

.pricing-card.pack-1000 .card-badge {

  background: var(--accent-green);

  color: #FFFFFF;

  border-color: var(--accent-green);

}

.pricing-card.member-starter .card-badge {

  background: var(--accent-blue);

  color: #FFFFFF;

  border-color: var(--accent-blue);

}

.pricing-card.member-creator .card-badge {

  background: var(--accent-pink);

  color: #FFFFFF;

  border-color: var(--accent-pink);

}



.pricing-card .card-title {

  font-size: 18px;

  font-weight: 800;

  color: #FFFFFF;

  margin-top: 10px;

  margin-bottom: 8px;

  letter-spacing: -0.5px;

}



.pricing-card .card-price {

  font-size: 26px;

  font-weight: 900;

  color: #FFFFFF;

  margin-bottom: 16px;

}

.pricing-card .price-desc {

  font-size: 12px;

  color: rgba(255, 255, 255, 0.5);

  font-weight: 600;

}



.pricing-card .card-features {

  text-align: left;

  margin-bottom: 20px;

  flex: 1;

}

.pricing-card .card-features ul {

  list-style: none;

}

.pricing-card .card-features li {

  font-size: 12.5px;

  font-weight: 500;

  color: rgba(255, 255, 255, 0.85);

  margin-bottom: 8px;

  display: flex;

  align-items: center;

  gap: 8px;

}

.pricing-card .card-features li svg {

  width: 14px;

  height: 14px;

  stroke-width: 3;

  color: #10B981;

  flex-shrink: 0;

}



.checkout-btn {

  margin-top: 16px;

  width: 100%;

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 12px;

  font-family: var(--font-family);

  font-size: 13.5px;

  font-weight: 800;

  cursor: pointer;

  box-shadow: none;

  transition: all 0.2s ease;

}



/* Customize purchase buttons matching card color theme in dark mode */

.pricing-card.pack-300 .checkout-btn {

  background-color: rgba(245, 158, 11, 0.1);

  border-color: rgba(245, 158, 11, 0.4);

  color: var(--accent-yellow);

}

.pricing-card.pack-300 .checkout-btn:hover {

  background-color: var(--accent-yellow);

  color: #000000;

  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);

}



.pricing-card.pack-1000 .checkout-btn {

  background-color: #10B981;

  border-color: transparent;

  color: #FFFFFF;

}

.pricing-card.pack-1000 .checkout-btn:hover {

  background-color: #34D399;

  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);

}



.pricing-card.member-starter .checkout-btn {

  background-color: rgba(59, 130, 246, 0.1);

  border-color: rgba(59, 130, 246, 0.4);

  color: var(--accent-blue);

}

.pricing-card.member-starter .checkout-btn:hover {

  background-color: var(--accent-blue);

  color: #FFFFFF;

  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);

}



.pricing-card.member-creator .checkout-btn {

  background-color: rgba(236, 72, 153, 0.1);

  border-color: rgba(236, 72, 153, 0.4);

  color: var(--accent-pink);

}

.pricing-card.member-creator .checkout-btn:hover {

  background-color: var(--accent-pink);

  color: #FFFFFF;

  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);

}



.checkout-btn:hover {

  transform: translateY(-2px);

}

.checkout-btn:active {

  transform: translateY(1px);

}

.manual-recharge-panel {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(181, 158, 124, 0.22);
  border-radius: 16px;
  background: rgba(181, 158, 124, 0.06);
}

.manual-eyebrow {
  display: inline-flex;
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}

.manual-recharge-copy h4 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
}

.manual-recharge-copy p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  line-height: 1.7;
}

.manual-qr-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.manual-qr-card {
  min-height: 150px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 12px;
}

.manual-qr-card span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
}

.manual-qr-card img {
  width: 112px;
  height: 112px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
}

.manual-qr-card small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 11px;
  line-height: 1.4;
}

.manual-recharge-form {
  display: grid;
  gap: 12px;
}

.manual-recharge-form label {
  display: grid;
  gap: 6px;
}

.manual-recharge-form label span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 700;
}

.manual-recharge-form input,
.manual-recharge-form select,
.manual-recharge-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  padding: 10px 12px;
  font-family: var(--font-family);
  font-size: 13px;
  outline: none;
}

.manual-recharge-form textarea {
  resize: vertical;
  min-height: 78px;
}

.manual-recharge-submit {
  border: 1px solid rgba(181, 158, 124, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, #b59e7c 0%, #8f7657 100%);
  color: #060608;
  padding: 12px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 820px) {
  .manual-recharge-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .manual-qr-row {
    grid-template-columns: 1fr;
  }
}



/* Toast component style */

.toast-container {

  position: fixed;

  bottom: 24px;

  right: 24px;

  background: rgba(20, 22, 28, 0.9);

  backdrop-filter: blur(8px);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 8px;

  padding: 12px 24px;

  color: #FFFFFF;

  font-weight: 800;

  display: flex;

  align-items: center;

  gap: 10px;

  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);

  z-index: 10000;

  transform: translateY(100px);

  opacity: 0;

  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}

.toast-container.show {

  transform: translateY(0);

  opacity: 1;

}

.toast-container.error {

  background: rgba(239, 68, 68, 0.9);

  border-color: rgba(239, 68, 68, 0.2);

  color: #FFFFFF;

}

.toast-container svg {

  width: 18px;

  height: 18px;

}



/* ==========================================================================

   ETCHSHADOW PREMIUM LOOK & FEEL UPGRADES (2026-05-25)

   ========================================================================== */



/* Ambient background glow elements */

.ambient-glow-container {

  position: fixed;

  top: 0;

  left: 0;

  width: 100vw;

  height: 100vh;

  pointer-events: none;

  z-index: -1;

  overflow: hidden;

  background: radial-gradient(circle at 50% 50%, #0c0d16 0%, #07080d 100%);

}



.ambient-glow-orb {

  position: absolute;

  border-radius: 50%;

  filter: blur(120px);

  opacity: 0.12;

  mix-blend-mode: screen;

  animation: driftOrb 24s ease-in-out infinite alternate;

}



.orb-purple {

  width: 600px;

  height: 600px;

  background: radial-gradient(circle, rgba(139, 92, 246, 0.6) 0%, transparent 80%);

  top: -10%;

  left: -5%;

  animation-delay: 0s;

}



.orb-blue {

  width: 700px;

  height: 700px;

  background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 80%);

  bottom: -15%;

  right: -5%;

  animation-delay: -4s;

  animation-duration: 32s;

}



.orb-pink {

  width: 500px;

  height: 500px;

  background: radial-gradient(circle, rgba(236, 72, 153, 0.4) 0%, transparent 80%);

  top: 40%;

  left: 60%;

  animation-delay: -8s;

  animation-duration: 28s;

}



@keyframes driftOrb {

  0% {

    transform: translate(0, 0) scale(1) rotate(0deg);

  }

  50% {

    transform: translate(8%, 12%) scale(1.15) rotate(180deg);

  }

  100% {

    transform: translate(-5%, -8%) scale(0.9) rotate(360deg);

  }

}





/* ==========================================================================

   PREMIUM EDITORIAL LOOKBOOK UPGRADE (不规则堆叠与扩散特效)

   ========================================================================== */



/* Google Font override for luxury headings */

h1, h2, .hero-brand-tag, .logo-text h1 {

  font-family: 'Cormorant Garamond', 'Outfit', serif !important;

  letter-spacing: 0.15em !important;

  text-transform: uppercase;

}



/* Page Background Setup */

body {

  background-color: #060608 !important;

  background-image: radial-gradient(circle at 50% 0%, #0c0b11 0%, #060608 100%) !important;

}



/* Ambient drift glow settings */

.ambient-glow-orb {

  filter: blur(120px) !important;

  opacity: 0.25 !important;

}



.orb-purple {

  background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%) !important;

}

.orb-blue {

  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 70%) !important;

}

.orb-pink {

  background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%) !important;

}



/* Streamlined Hero Section */

.brand-hero-strip {

  height: 200px !important;

  min-height: auto !important;

  border-radius: 16px !important;

  margin-top: 24px !important;

  margin-bottom: 32px !important;

  background: #09090c !important;

  border: 1px solid rgba(255, 255, 255, 0.04) !important;

  overflow: hidden;

}



.hero-bg-media {

  opacity: 0.15 !important;

  filter: grayscale(0.8) blur(2px) !important;

}



.brand-hero-content {

  padding: 30px !important;

  justify-content: center !important;

  align-items: center !important;

  text-align: center !important;

}



.hero-brand-tag {

  font-size: 26px !important;

  font-weight: 300 !important;

  color: #ffffff !important;

  margin-bottom: 8px !important;

  text-shadow: 0 0 20px rgba(255,255,255,0.1);

}



.hero-subtitle {

  font-family: 'Inter', sans-serif !important;

  font-size: 10px !important;

  letter-spacing: 0.25em !important;

  color: rgba(255,255,255,0.3) !important;

  text-transform: uppercase !important;

}



/* Minimalist Header Navigation */

.app-header {

  background: rgba(6, 6, 8, 0.6) !important;

  backdrop-filter: blur(25px) !important;

  -webkit-backdrop-filter: blur(25px) !important;

  border: 1px solid rgba(255, 255, 255, 0.04) !important;

  border-radius: 30px !important;

  margin-top: 16px !important;

}



.category-tabs {

  background: rgba(255, 255, 255, 0.02) !important;

  border: 1px solid rgba(255, 255, 255, 0.04) !important;

  padding: 4px !important;

  border-radius: 30px !important;

}



.tab-btn {

  border-radius: 30px !important;

  background: transparent !important;

  border: none !important;

  font-weight: 500 !important;

  transition: all 0.3s ease !important;

}



.tab-btn.active {

  background: rgba(255, 255, 255, 0.08) !important;

  color: #ffffff !important;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;

}



/* Lookbook Editorial Grid */

.masonry-grid {

  column-gap: 40px !important; /* Extra padding for fanning out cards */

  overflow: visible !important;

}



/* High-End Card Layout & Lookbook Stacks */

.gallery-card {

  background: transparent !important;

  border: none !important;

  box-shadow: none !important;

  overflow: visible !important; /* Essential for fanning out stacked layers */

  aspect-ratio: 3 / 4 !important;

  height: auto !important;

  margin-bottom: 48px !important;

  z-index: 10;

  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), z-index 0.3s ease !important;

}



/* Irregular random tilts for high-fashion scattered photo print effect */

.gallery-card:nth-child(4n+1) {

  transform: rotate(-1.5deg) translateY(4px);

}

.gallery-card:nth-child(4n+2) {

  transform: rotate(1.5deg) translateY(-2px);

}

.gallery-card:nth-child(4n+3) {

  transform: rotate(-2deg) translateY(6px);

}

.gallery-card:nth-child(4n+4) {

  transform: rotate(1deg) translateY(-4px);

}



.gallery-card:hover {

  z-index: 40 !important;

  transform: scale(1.03) rotate(0deg) translateY(-10px) !important;

}



.card-img-container {

  background: transparent !important;

  overflow: visible !important;

  height: 100% !important;

  border: none !important;

}



/* Stack Layout */

.card-stack {

  position: relative;

  width: 100%;

  height: 100%;

  overflow: visible;

}



.stack-layer {

  position: absolute;

  inset: 0;

  border-radius: 12px;

  overflow: hidden;

  background: #09090b;

  border: 1px solid rgba(255, 255, 255, 0.04);

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.45);

  transform-origin: center center;

  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, box-shadow 0.6s ease;

}



.stack-layer img,

.stack-layer video {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);

}



/* Default state for stacked cards (irregular rotation & translate offsets) */

.layer-bottom {

  transform: translate(10px, 14px) rotate(4deg);

  opacity: 0.35;

  z-index: 1;

}



.layer-middle {

  transform: translate(-10px, -6px) rotate(-3deg);

  opacity: 0.7;

  z-index: 2;

}



.layer-top {

  transform: translate(0, 0) rotate(0deg);

  z-index: 3;

}



/* Hover fanning out (Spread-Out) animation */

.gallery-card:hover .layer-bottom {

  transform: translate(32px, 20px) rotate(9deg) scale(0.96);

  opacity: 0.8;

}



.gallery-card:hover .layer-middle {

  transform: translate(-32px, -15px) rotate(-8deg) scale(0.98);

  opacity: 0.85;

}



.gallery-card:hover .layer-top {

  transform: scale(1.05) translate(0, -4px);

  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);

}



/* Hover Image Zoom inside top layer */

.gallery-card:hover .layer-top img,

.gallery-card:hover .layer-top video {

  transform: scale(1.04);

}



/* Overlay details inside top layer */

.card-details {

  position: absolute;

  bottom: 0;

  left: 0;

  width: 100%;

  padding: 32px 20px 20px 20px !important;

  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(6, 6, 8, 0.95) 100%) !important;

  border-top: none !important;

  opacity: 0;

  transform: translateY(10px);

  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;

  display: flex !important;

  flex-direction: column;

  z-index: 5;

}



.gallery-card:hover .card-details {

  opacity: 1;

  transform: translateY(0);

}



.card-title {

  font-family: 'Outfit', sans-serif !important;

  font-size: 13.5px !important;

  font-weight: 500 !important;

  letter-spacing: 0.1em !important;

  text-transform: uppercase;

  color: #ffffff;

  margin-bottom: 6px;

}



/* Hide tags & snippets in grid card list to keep it extremely clean */

.card-details .card-tags,

.card-details .card-footer {

  display: none !important;

}



/* Elegant glassmorphic remix button */

.card-hover-remix {

  position: static !important;

  background: transparent !important;

  backdrop-filter: none !important;

  -webkit-backdrop-filter: none !important;

  padding: 0 !important;

  opacity: 1 !important;

}



.quick-remix-btn {

  width: 100% !important;

  height: 36px !important;

  background: rgba(255, 255, 255, 0.08) !important;

  border: 1px solid rgba(255, 255, 255, 0.1) !important;

  backdrop-filter: blur(10px) !important;

  -webkit-backdrop-filter: blur(10px) !important;

  color: #ffffff !important;

  font-size: 11px !important;

  letter-spacing: 0.12em !important;

  text-transform: uppercase;

  font-weight: 600 !important;

  border-radius: 20px !important;

  box-shadow: none !important;

  margin-top: 8px;

}



.quick-remix-btn:hover {

  background: #ffffff !important;

  color: #000000 !important;

  border-color: #ffffff !important;

  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2) !important;

  transform: translateY(-1px) !important;

}



/* Hide elements for single image cards */

.gallery-card.single-image .layer-bottom,

.gallery-card.single-image .layer-middle {

  display: none !important;

}

.gallery-card.single-image:hover .layer-top {

  transform: scale(1.05) translate(0, -4px) !important;

}



/* Premium scrollbar */

::-webkit-scrollbar-thumb {

  background: rgba(255, 255, 255, 0.08) !important;

}

::-webkit-scrollbar-thumb:hover {

  background: rgba(255, 255, 255, 0.2) !important;

}



/* Detail Modal Premium Styling */

.modal-container {

  background: #0a0a0c !important;

  border: 1px solid rgba(255, 255, 255, 0.04) !important;

  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8) !important;

  border-radius: 20px !important;

}



.modal-close {

  background: rgba(255, 255, 255, 0.03) !important;

  border: 1px solid rgba(255, 255, 255, 0.05) !important;

  color: #ffffff !important;

  width: 44px !important;

  height: 44px !important;

  font-size: 24px !important;

  border-radius: 50% !important;

  display: flex !important;

  align-items: center !important;

  justify-content: center !important;

  transition: all 0.3s ease !important;

}



.modal-close:hover {

  background: #ffffff !important;

  color: #000000 !important;

  border-color: #ffffff !important;

  transform: rotate(90deg) !important;

}



.modal-info-panel h2 {

  font-family: 'Cormorant Garamond', 'Outfit', serif !important;

  font-size: 24px !important;

  font-weight: 400 !important;

  letter-spacing: 0.05em !important;

}



/* Form panel styling in modal */

.modal-generation-section {

  border: 1px solid rgba(255, 255, 255, 0.04) !important;

  background: rgba(255, 255, 255, 0.01) !important;

  border-radius: 12px !important;

  padding: 20px !important;

}



/* ==========================================

   LANDING COVER PAGE (时尚乱序散落画幅)

   ========================================== */

.landing-cover {

  position: fixed;

  inset: 0;

  z-index: 99999;

  background-color: #060608;

  background-image: radial-gradient(circle at 50% 50%, #0c0b10 0%, #060608 100%);

  overflow: hidden;

  transition: transform 0.9s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease-in-out;

  cursor: pointer;

  pointer-events: auto;

}



/* Slide-up transition out */

.landing-cover.exit {

  transform: translateY(-100%);

  opacity: 0;

  pointer-events: none;

}



/* Background video elements */

.landing-bg-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: transparent;
}



.landing-bg-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.95;
  filter: saturate(0.65) contrast(1.18) brightness(0.82) blur(0.2px);
  transition: opacity 1s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  animation: slow-breath 28s infinite alternate ease-in-out;
}

.landing-bg-video-blur {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: blur(55px) brightness(0.32) saturate(0.5);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

.landing-film-grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  animation: grain-animation 1s steps(6) infinite;
}

.landing-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(6, 6, 8, 0.05) 0%, rgba(6, 6, 8, 0.45) 50%, rgba(6, 6, 8, 0.85) 80%, rgba(6, 6, 8, 0.98) 100%);
  pointer-events: none;
  z-index: 4;
}



/* Giant subtle outline brand watermark on the background */

.landing-watermark-text {

  position: absolute;

  top: 48%; /* Slightly centered */

  left: 50%;

  transform: translate(-50%, -50%);

  font-family: 'Cormorant Garamond', serif;

  font-size: 15vw;

  font-weight: 300;

  letter-spacing: 0.15em;

  color: transparent;

  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.022); /* Extremely subtle Outline Watermark */

  user-select: none;

  pointer-events: none;

  z-index: 1;

  text-align: center;

  white-space: nowrap;

}



/* Central Brand Typography Overlay */

.landing-brand {

  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  z-index: 10;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  mix-blend-mode: difference;

  pointer-events: none; /* Let clicks pass to background cover */

  user-select: none;

}



.landing-brand .brand-title {

  font-family: 'Cormorant Garamond', serif;

  font-size: clamp(48px, 8vw, 100px);

  font-weight: 300;

  letter-spacing: 0.3em;

  color: #ffffff;

  text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);

  line-height: 1;

}



.landing-brand .brand-sub {

  font-family: 'Outfit', sans-serif;

  font-size: clamp(12px, 2vw, 18px);

  font-weight: 400;

  letter-spacing: 0.55em;

  color: rgba(255, 255, 255, 0.6);

  margin-top: 10px;

  text-indent: 0.55em;

}



.landing-brand .enter-btn {

  font-family: 'Outfit', sans-serif;

  font-size: 11px;

  font-weight: 500;

  letter-spacing: 0.4em;

  color: rgba(255, 255, 255, 0.4);

  border: 1px solid rgba(255, 255, 255, 0.15);

  padding: 10px 24px;

  border-radius: 30px;

  margin-top: 40px;

  background: rgba(255, 255, 255, 0.02);

  backdrop-filter: blur(8px);

  transition: all 0.3s ease;

  text-indent: 0.4em;

}



/* Lookbook Clusters layout */

.landing-clusters-container {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  z-index: 2;

  pointer-events: none;

}



.landing-cluster {

  transform: translateY(-1px) !important;

}



/* Hide elements for single image cards */

.gallery-card.single-image .layer-bottom,

.gallery-card.single-image .layer-middle {

  display: none !important;

}

.gallery-card.single-image:hover .layer-top {

  transform: scale(1.05) translate(0, -4px) !important;

}



/* Premium scrollbar */

::-webkit-scrollbar-thumb {

  background: rgba(255, 255, 255, 0.08) !important;

}

::-webkit-scrollbar-thumb:hover {

  background: rgba(255, 255, 255, 0.2) !important;

}



/* Detail Modal Premium Styling */

.modal-container {

  background: #0a0a0c !important;

  border: 1px solid rgba(255, 255, 255, 0.04) !important;

  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8) !important;

  border-radius: 20px !important;

}



.modal-close {

  background: rgba(255, 255, 255, 0.03) !important;

  border: 1px solid rgba(255, 255, 255, 0.05) !important;

  color: #ffffff !important;

  width: 44px !important;

  height: 44px !important;

  font-size: 24px !important;

  border-radius: 50% !important;

  display: flex !important;

  align-items: center !important;

  justify-content: center !important;

  transition: all 0.3s ease !important;

}



.modal-close:hover {

  background: #ffffff !important;

  color: #000000 !important;

  border-color: #ffffff !important;

  transform: rotate(90deg) !important;

}



.modal-info-panel h2 {

  font-family: 'Cormorant Garamond', 'Outfit', serif !important;

  font-size: 24px !important;

  font-weight: 400 !important;

  letter-spacing: 0.05em !important;

}



/* Form panel styling in modal */

.modal-generation-section {

  border: 1px solid rgba(255, 255, 255, 0.04) !important;

  background: rgba(255, 255, 255, 0.01) !important;

  border-radius: 12px !important;

  padding: 20px !important;

}



/* ==========================================

   LANDING COVER PAGE (时尚乱序散落画幅)

   ========================================== */

.landing-cover {

  position: fixed;

  inset: 0;

  z-index: 99999;

  background-color: #060608;

  background-image: radial-gradient(circle at 50% 50%, #0c0b10 0%, #060608 100%);

  overflow: hidden;

  transition: transform 0.9s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.8s ease-in-out;

  cursor: pointer;

  pointer-events: auto;

}



/* Slide-up transition out */

.landing-cover.exit {

  transform: translateY(-100%);

  opacity: 0;

  pointer-events: none;

}



/* Background video elements */

.landing-bg-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background: transparent;
}



.landing-bg-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
  filter: saturate(0.52) contrast(1.15) brightness(0.76) blur(0.4px);
  transition: opacity 1s ease;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  animation: slow-breath 28s infinite alternate ease-in-out;
}

.landing-bg-video-blur {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  filter: blur(55px) brightness(0.32) saturate(0.5);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}



.landing-bg-overlay {

  position: absolute;

  inset: 0;

  background: radial-gradient(circle at 50% 50%, rgba(6, 6, 8, 0.15) 0%, rgba(6, 6, 8, 0.5) 60%, rgba(6, 6, 8, 0.95) 100%);

  pointer-events: none;

}



/* Giant subtle outline brand watermark on the background */

.landing-watermark-text {

  position: absolute;

  top: 48%; /* Slightly centered */

  left: 50%;

  transform: translate(-50%, -50%);

  font-family: 'Cormorant Garamond', serif;

  font-size: 15vw;

  font-weight: 300;

  letter-spacing: 0.15em;

  color: transparent;

  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.022); /* Extremely subtle Outline Watermark */

  user-select: none;

  pointer-events: none;

  z-index: 1;

  text-align: center;

  white-space: nowrap;

}



/* Central Brand Typography Overlay */

.landing-brand {

  position: absolute;

  top: 50%;

  left: 50%;

  transform: translate(-50%, -50%);

  z-index: 10;

  display: flex;

  flex-direction: column;

  align-items: center;

  justify-content: center;

  text-align: center;

  mix-blend-mode: difference;

  pointer-events: none; /* Let clicks pass to background cover */

  user-select: none;

}



.landing-brand .brand-title {

  font-family: 'Cormorant Garamond', serif;

  font-size: clamp(48px, 8vw, 100px);

  font-weight: 300;

  letter-spacing: 0.3em;

  color: #ffffff;

  text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);

  line-height: 1;

}



.landing-brand .brand-sub {

  font-family: 'Outfit', sans-serif;

  font-size: clamp(12px, 2vw, 18px);

  font-weight: 400;

  letter-spacing: 0.55em;

  color: rgba(255, 255, 255, 0.6);

  margin-top: 10px;

  text-indent: 0.55em;

}



.landing-brand .enter-btn {

  font-family: 'Outfit', sans-serif;

  font-size: 11px;

  font-weight: 500;

  letter-spacing: 0.4em;

  color: rgba(255, 255, 255, 0.4);

  border: 1px solid rgba(255, 255, 255, 0.15);

  padding: 10px 24px;

  border-radius: 30px;

  margin-top: 40px;

  background: rgba(255, 255, 255, 0.02);

  backdrop-filter: blur(8px);

  transition: all 0.3s ease;

  text-indent: 0.4em;

}



/* Featured Asymmetric Video Card player styling */

.landing-featured-video-card {

  position: absolute;

  top: 50%;

  left: 28%;

  transform: translateY(-50%);

  width: 11vw;

  aspect-ratio: 3 / 4;

  z-index: 5;

  pointer-events: auto;

  cursor: pointer;

}



.landing-featured-video-card .video-card-inner {

  width: 100%;

  height: 100%;

  position: relative;

  border-radius: 8px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.1);

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.85);

  background: #09090b;

  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);

}



.landing-featured-video-card video {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  filter: saturate(0.85) contrast(1.05);

}



.landing-featured-video-card .video-card-caption {

  position: absolute;

  bottom: 12px;

  left: 12px;

  font-family: 'Outfit', sans-serif;

  font-size: 8px;

  font-weight: 600;

  letter-spacing: 0.2em;

  color: rgba(255, 255, 255, 0.6);

  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);

}



.landing-featured-video-card:hover .video-card-inner {

  transform: scale(1.1) rotate(-1deg);

  box-shadow: 0 25px 50px rgba(139, 92, 246, 0.25), 0 15px 45px rgba(0, 0, 0, 0.95);

  border-color: rgba(255, 255, 255, 0.3);

}



/* Modal Multi-Image Thumbnails */

.modal-thumbnails {

  display: flex;

  gap: 12px;

  justify-content: center;

  flex-wrap: nowrap; /* Keep in single row */

  overflow-x: auto; /* Horizontal scroll if overflowing */

  width: 100%;

  margin-top: 16px;

  padding: 8px 10px; /* Padding for zoom scale */

  scrollbar-width: none; /* Hide scrollbar for premium look */

}

.modal-thumbnails::-webkit-scrollbar {

  display: none; /* Hide scrollbar in chrome/safari */

}

.modal-thumb {

  width: 52px;

  height: 52px;

  border-radius: 8px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.08);

  cursor: pointer;

  background: #090A0F;

  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);

  box-shadow: none;

  flex-shrink: 0; /* Keep size invariant */

}

.modal-thumb img {

  width: 100%;

  height: 100%;

  object-fit: cover;

}

.modal-thumb:hover {

  transform: scale(1.22); /* Enlarge on hover */

  border-color: rgba(255, 255, 255, 0.35);

  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);

  z-index: 10;

}

.modal-thumb.active {

  border-color: #10B981;

  background: rgba(16, 185, 129, 0.1);

  transform: scale(1.1);

}



/* Lookbook Scattered Media Cards layout */

.scatter-media-card {

  position: absolute;

  aspect-ratio: 3 / 4;

  background: #09090b;

  border-radius: 8px;

  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.05);

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);

  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 

              opacity 0.6s ease, 

              filter 0.6s ease, 

              box-shadow 0.6s ease, 

              z-index 0.3s ease;

  pointer-events: auto;

  will-change: transform, opacity, filter;

  transform-origin: center center;

}



.scatter-media-card img,

.scatter-media-card video {

  width: 100%;

  height: 100%;

  object-fit: cover;

  display: block;

  user-select: none;

  pointer-events: none;

  filter: grayscale(0.15) contrast(1.05);

  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;

}



/* Individual card definitions (Irregular Scattered Layout inside Safe Margins) */

.scatter-media-card[data-index="1"] {

  top: 12%; left: 3%; width: 14vw;

  --base-rot: -8deg;

  transform: rotate(var(--base-rot));

  z-index: 4;

  animation: driftSlowA 16s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="2"] {

  top: 15%; left: 20%; width: 12vw;

  --base-rot: 6deg;

  transform: rotate(var(--base-rot));

  z-index: 3;

  animation: driftSlowB 18s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="3"] {

  top: 10%; right: 20%; width: 13vw;

  --base-rot: -5deg;

  transform: rotate(var(--base-rot));

  z-index: 3;

  animation: driftSlowC 20s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="4"] {

  top: 14%; right: 4%; width: 15vw;

  --base-rot: 8deg;

  transform: rotate(var(--base-rot));

  z-index: 4;

  animation: driftSlowD 22s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="5"] {

  top: 35%; left: 2%; width: 13vw;

  --base-rot: 7deg;

  transform: rotate(var(--base-rot));

  z-index: 5;

  animation: driftSlowA 17s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="6"] {

  top: 38%; left: 16%; width: 14vw;

  --base-rot: -9deg;

  transform: rotate(var(--base-rot));

  z-index: 2;

  animation: driftSlowB 19s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="7"] {

  top: 32%; right: 18%; width: 15vw;

  --base-rot: 10deg;

  transform: rotate(var(--base-rot));

  z-index: 2;

  animation: driftSlowC 21s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="8"] {

  top: 36%; right: 2%; width: 13vw;

  --base-rot: -6deg;

  transform: rotate(var(--base-rot));

  z-index: 5;

  animation: driftSlowD 23s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="9"] {

  top: 56%; left: 5%; width: 15vw;

  --base-rot: -7deg;

  transform: rotate(var(--base-rot));

  z-index: 4;

  animation: driftSlowA 18s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="10"] {

  top: 58%; left: 22%; width: 13vw;

  --base-rot: 5deg;

  transform: rotate(var(--base-rot));

  z-index: 3;

  animation: driftSlowB 20s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="11"] {

  top: 55%; right: 22%; width: 14vw;

  --base-rot: -8deg;

  transform: rotate(var(--base-rot));

  z-index: 3;

  animation: driftSlowC 22s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="12"] {

  top: 58%; right: 6%; width: 13vw;

  --base-rot: 9deg;

  transform: rotate(var(--base-rot));

  z-index: 4;

  animation: driftSlowD 24s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="13"] {

  top: 75%; left: 2%; width: 14vw;

  --base-rot: 11deg;

  transform: rotate(var(--base-rot));

  z-index: 6;

  animation: driftSlowA 19s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="14"] {

  top: 78%; left: 18%; width: 12vw;

  --base-rot: -5deg;

  transform: rotate(var(--base-rot));

  z-index: 2;

  animation: driftSlowB 21s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="15"] {

  top: 76%; right: 16%; width: 13vw;

  --base-rot: 6deg;

  transform: rotate(var(--base-rot));

  z-index: 2;

  animation: driftSlowC 23s ease-in-out infinite alternate;

}

.scatter-media-card[data-index="16"] {
  top: 74%; right: 3%; width: 15vw;
  --base-rot: -10deg;
  transform: rotate(var(--base-rot));
  z-index: 6;
  animation: driftSlowD 25s ease-in-out infinite alternate;
}

.scatter-media-card[data-index="17"] {
  top: 24%; right: 10%; width: 13vw;
  --base-rot: -4deg;
  transform: rotate(var(--base-rot));
  z-index: 3;
  animation: driftSlowA 19s ease-in-out infinite alternate;
}

.scatter-media-card[data-index="18"] {
  top: 66%; left: 12%; width: 13vw;
  --base-rot: 5deg;
  transform: rotate(var(--base-rot));
  z-index: 3;
  animation: driftSlowC 21s ease-in-out infinite alternate;
}



/* Individual Card Hover: scale up, rotate center, lift shadow, float forward, stop animation */

.scatter-media-card:hover {

  animation: none !important;

  z-index: 10000 !important;

  transform: scale(1.22) rotate(0deg) !important;

  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.95);

  border-color: rgba(255, 255, 255, 0.25) !important;

}



.scatter-media-card:hover img,

.scatter-media-card:hover video {

  transform: scale(1.06);

  filter: grayscale(0) contrast(1);

}



/* Defocus backdrop: Fade, blur and scale down all OTHER cards in the landing cover when one is focused */

.landing-cover:has(.scatter-media-card:hover) .scatter-media-card:not(:hover) {

  opacity: 0.15;

  filter: blur(3px) grayscale(0.5) scale(0.9);

}



/* Drifting Keyframes (slow and subtle) */

@keyframes driftSlowA {

  0% { transform: rotate(var(--base-rot)) translate(0, 0); }

  50% { transform: rotate(calc(var(--base-rot) + 2deg)) translate(1vw, -1vh); }

  100% { transform: rotate(calc(var(--base-rot) - 1.5deg)) translate(-0.8vw, 1.2vh); }

}

@keyframes driftSlowB {

  0% { transform: rotate(var(--base-rot)) translate(0, 0); }

  50% { transform: rotate(calc(var(--base-rot) - 2.5deg)) translate(-1vw, 1.2vh); }

  100% { transform: rotate(calc(var(--base-rot) + 1.5deg)) translate(1.2vw, -0.8vh); }

}

@keyframes driftSlowC {

  0% { transform: rotate(var(--base-rot)) translate(0, 0); }

  50% { transform: rotate(calc(var(--base-rot) + 1.8deg)) translate(0.8vw, 1.2vh); }

  100% { transform: rotate(calc(var(--base-rot) - 2deg)) translate(-1vw, -1vh); }

}

@keyframes driftSlowD {

  0% { transform: rotate(var(--base-rot)) translate(0, 0); }

  50% { transform: rotate(calc(var(--base-rot) - 2deg)) translate(-1.2vw, -1vh); }

  100% { transform: rotate(calc(var(--base-rot) + 2.5deg)) translate(0.8vw, 1.2vh); }

}



/* Responsive Media Queries */

@media (max-width: 1200px) {

  .scatter-media-card {

    width: 14vw;

  }

}



@media (max-width: 1024px) {

  .scatter-media-card {

    width: 16vw;

  }

}



@media (max-width: 768px) {

  /* Hide background/less prominent cards on tablet/mobile to keep it readable */

  .scatter-media-card[data-index="5"],
  .scatter-media-card[data-index="6"],
  .scatter-media-card[data-index="7"],
  .scatter-media-card[data-index="8"],
  .scatter-media-card[data-index="9"],
  .scatter-media-card[data-index="10"],
  .scatter-media-card[data-index="11"],
  .scatter-media-card[data-index="12"],
  .scatter-media-card[data-index="13"],
  .scatter-media-card[data-index="14"],
  .scatter-media-card[data-index="15"],
  .scatter-media-card[data-index="16"],
  .scatter-media-card[data-index="17"],
  .scatter-media-card[data-index="18"] {
    display: none !important;
  }



  .scatter-media-card {

    width: 22vw;

  }



  .scatter-media-card[data-index="1"] { top: 12%; left: 8%; }

  .scatter-media-card[data-index="2"] { top: 15%; right: 8%; left: auto; }

  .scatter-media-card[data-index="3"] { bottom: 15%; left: 8%; top: auto; }

  .scatter-media-card[data-index="4"] { bottom: 12%; right: 8%; top: auto; }

}



@media (max-width: 480px) {

  /* On small mobile screens, completely clear the cards to focus on logo/watermark and enter button */

  .scatter-media-card {

    display: none !important;

  }

}



/* ==========================================================================

   ETCHSHADOW CLEAN FREE-FLOW OVERRIDES (2026-05-26)

   ========================================================================== */



.ambient-glow-container,

.ambient-glow-orb,

.orb-purple,

.orb-blue,

.orb-pink {

  display: none !important;

}



body {

  background-color: #050506 !important;

  background-image: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.035) 0%, rgba(5, 5, 6, 0) 34%) !important;

}



.gallery-card {

  border-color: rgba(255, 255, 255, 0.06) !important;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34) !important;

  transition: transform 0.24s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.24s ease, box-shadow 0.24s ease !important;

}



.gallery-card:hover {

  transform: translateY(-3px) !important;

  border-color: rgba(255, 255, 255, 0.14) !important;

  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.48) !important;

}



.gallery-card:hover .layer-bottom {

  transform: translate(18px, 12px) rotate(4deg) scale(0.975) !important;

  opacity: 0.78 !important;

}



.gallery-card:hover .layer-middle {

  transform: translate(-18px, -8px) rotate(-4deg) scale(0.988) !important;

  opacity: 0.86 !important;

}



.gallery-card:hover .layer-top {

  transform: translateY(-2px) scale(1.025) !important;

  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.56) !important;

}



.gallery-card:hover .layer-top img,

.gallery-card:hover .layer-top video,

.gallery-card:hover .card-img-container img {

  transform: scale(1.025) !important;

}



.card-details,

.card-title,

.card-tags,

.card-footer,

.card-hover-remix {

  display: none !important;

}



.card-hover-actions {

  position: absolute;

  inset: 0;

  display: flex;

  align-items: center;

  justify-content: center;

  gap: 10px;

  opacity: 0;

  pointer-events: none;

  background: rgba(0, 0, 0, 0.16);

  transition: opacity 0.22s ease;

  z-index: 6;

}



.gallery-card:hover .card-hover-actions,

.gallery-card:focus-within .card-hover-actions {

  opacity: 1;

  pointer-events: auto;

}



.card-action-btn,

.quick-remix-btn.card-action-btn {

  width: 42px !important;

  height: 42px !important;

  min-width: 42px !important;

  min-height: 42px !important;

  padding: 0 !important;

  margin: 0 !important;

  border-radius: 50% !important;

  border: 1px solid rgba(255, 255, 255, 0.22) !important;

  background: rgba(5, 5, 7, 0.72) !important;

  color: #fff !important;

  backdrop-filter: blur(12px) !important;

  -webkit-backdrop-filter: blur(12px) !important;

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34) !important;

  display: inline-flex !important;

  align-items: center !important;

  justify-content: center !important;

  cursor: pointer;

  font-size: 0 !important;

  letter-spacing: 0 !important;

  transform: none !important;

}



.card-action-btn svg,

.quick-remix-btn.card-action-btn svg {

  width: 18px;

  height: 18px;

  stroke-width: 1.8;

}



.quick-remix-btn::before {

  content: none !important;

}



.card-action-btn:hover,

.quick-remix-btn.card-action-btn:hover {

  background: rgba(255, 255, 255, 0.92) !important;

  border-color: rgba(255, 255, 255, 0.92) !important;

  color: #050506 !important;

  transform: translateY(-1px) !important;

}



.count-badge {

  min-width: 34px;

  height: 28px;

  padding: 0 8px !important;

  border-radius: 999px !important;

  background: rgba(5, 5, 7, 0.64) !important;

  color: #fff !important;

  border: 1px solid rgba(255, 255, 255, 0.16) !important;

  font-size: 11px !important;

  line-height: 1 !important;

  letter-spacing: 0 !important;

}



.count-badge svg {

  width: 13px;

  height: 13px;

}



@media (hover: none) {

  .card-hover-actions {

    opacity: 1;

    pointer-events: auto;

    align-items: flex-end;

    justify-content: flex-end;

    padding: 10px;

    background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.38) 100%);

  }



  .card-action-btn,

  .quick-remix-btn.card-action-btn {

    width: 38px !important;

    height: 38px !important;

    min-width: 38px !important;

    min-height: 38px !important;

  }

}



.app-header {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 12px 24px !important;
  background: rgba(10, 10, 12, 0.75) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 20px !important;
  margin-top: 16px !important;
  box-sizing: border-box !important;
}

.header-logo {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  cursor: pointer !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  min-width: 0;
}

.category-tabs {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  writing-mode: horizontal-tb !important;
}

/* ============================================================
   MOBILE RESPONSIVE FIX (≤760px)
   Prevents horizontal overflow on 390px–760px viewports
   ============================================================ */

@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .app-container {
    padding: 0 12px !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .app-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    margin-top: 10px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .header-logo {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .brand-logo-horizontal {
    width: 95px !important;
    height: auto !important;
  }

  .header-logo .logo-text h1 {
    font-size: 15px !important;
  }

  .header-logo .logo-text p {
    font-size: 8px !important;
  }

  /* Category tabs: horizontal scroll, single row */
  .category-tabs {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 6px !important;
    padding: 2px 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .category-tabs::-webkit-scrollbar {
    display: none !important;
  }

  .tab-btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 12px !important;
    padding: 7px 11px !important;
    gap: 4px !important;
    min-width: 0 !important;
  }

  .tab-btn i,
  .tab-btn svg {
    width: 14px !important;
    height: 14px !important;
  }

  .tab-btn .badge {
    font-size: 9px !important;
    padding: 1px 5px !important;
    min-width: 16px !important;
  }

  /* Header actions: full width, flex row, wrap */
  .header-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .search-box {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .search-box input {
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding-top: 8px !important;
    padding-bottom: 8px !important;
  }

  .user-profile-widget {
    flex: 0 0 auto !important;
  }

  .user-logged-in {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
  }

  .login-btn {
    font-size: 12px !important;
    padding: 8px 12px !important;
  }

  #adminLink {
    font-size: 11px !important;
    padding: 8px 10px !important;
    margin-left: 0 !important;
  }

  /* Hero section */
  .brand-hero-content {
    max-width: 100% !important;
    padding: 0 12px;
    box-sizing: border-box;
  }

  .hero-brand-tag {
    font-size: 9px;
  }

  .hero-title {
    font-size: clamp(22px, 6vw, 36px) !important;
  }

  .hero-description {
    font-size: 13px !important;
  }

  /* Series filter bar */
  .series-filter-bar {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    max-width: 100% !important;
    flex-wrap: nowrap !important;
  }

  .series-filter-bar::-webkit-scrollbar {
    display: none !important;
  }

  .series-pill {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    font-size: 11px !important;
  }

  /* Gallery grid */
  .masonry-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Detail Modal */
  .modal-container {
    width: 98% !important;
    max-width: 100vw !important;
    border-radius: 12px !important;
  }

  .modal-body {
    flex-direction: column !important;
  }

  .modal-media-panel,
  .modal-info-panel {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Image strip horizontal scroll */
  .image-strip {
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr !important;
  }

  /* Footer */
  .app-footer {
    padding: 20px 12px;
    font-size: 11px;
  }
}


@media (max-width: 420px) {

  .app-container {
    padding: 0 8px;
  }

  .app-header {
    padding: 10px !important;
    gap: 8px !important;
    border-radius: 14px !important;
  }

  .brand-logo-horizontal {
    width: 90px;
  }

  .header-logo .logo-text h1 {
    font-size: 14px;
  }

  .tab-btn {
    font-size: 11px !important;
    padding: 6px 8px !important;
  }

  .tab-btn span:not(.badge) {
    display: flex !important;
  }

  .tab-btn i,
  .tab-btn svg {
    width: 16px !important;
    height: 16px !important;
  }

  .tab-btn .badge {
    display: inline-flex !important;
  }

  .hero-title {
    font-size: 20px !important;
  }

  .credits-badge {
    font-size: 11px;
  }
}



/* Elegant Description Card for Photo Sets */
.elegant-description-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  margin-top: 15px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.elegant-description-card .desc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #B59E7C;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.elegant-description-card .desc-header svg {
  width: 14px;
  height: 14px;
}

.elegant-description-card .desc-content {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  font-family: 'Inter', sans-serif;
}


@keyframes slow-breath {
  0% {
    transform: scale(1.01);
  }
  100% {
    transform: scale(1.07);
  }
}

@keyframes grain-animation {
  0%, 100% { transform:translate(0, 0) }
  10% { transform:translate(-1%, -2%) }
  30% { transform:translate(2%, 1%) }
  50% { transform:translate(-2%, 2%) }
  70% { transform:translate(1%, 0%) }
  90% { transform:translate(-1%, -1%) }
}


/* ============================================================
   Stable Launch Gallery Grid (Premium Minimalist Overrides)
   Strictly complies with:
   - Stable responsive columns (Desktop 4-5, Tablet 2-3, Mobile 1)
   - Left-aligned items, no centering/clumping when filtered
   - Minimalist style: no captions, no large rotations
   ============================================================ */

.masonry-grid {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important; /* Large screens: 5 columns */
  gap: 34px !important;
  column-count: initial !important;
  column-gap: initial !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  align-items: start !important;
}

.gallery-card {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  aspect-ratio: 3 / 4 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  transform: none !important;
  break-inside: auto !important;
}

.gallery-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: none !important;
}

.card-img-container,
.card-stack {
  width: 100% !important;
  height: 100% !important;
  overflow: visible !important;
}

.stack-layer {
  border-radius: 10px !important;
  background: #09090b !important;
  border: 1px solid rgba(255, 255, 255, 0.075) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42) !important;
}

.layer-bottom,
.layer-middle {
  pointer-events: none !important;
}

.layer-bottom {
  transform: translate(8px, 8px) scale(0.985) !important;
  opacity: 0.26 !important;
}

.layer-middle {
  transform: translate(4px, 4px) scale(0.992) !important;
  opacity: 0.42 !important;
}

.layer-top {
  transform: none !important;
  opacity: 1 !important;
}

.gallery-card:hover .layer-bottom {
  transform: translate(10px, 10px) scale(0.985) !important;
  opacity: 0.3 !important;
}

.gallery-card:hover .layer-middle {
  transform: translate(5px, 5px) scale(0.992) !important;
  opacity: 0.48 !important;
}

.gallery-card:hover .layer-top {
  transform: translateY(-2px) !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.56) !important;
}

.gallery-card:hover .layer-top img,
.gallery-card:hover .layer-top video,
.gallery-card:hover .card-img-container img {
  transform: scale(1.018) !important;
}

/* Stable responsive column overrides */
@media (max-width: 1400px) {
  .masonry-grid {
    grid-template-columns: repeat(4, 1fr) !important; /* Smaller Desktop: 4 columns */
    gap: 28px !important;
  }
}

@media (max-width: 1050px) {
  .masonry-grid {
    grid-template-columns: repeat(3, 1fr) !important; /* Tablet: 3 columns */
    gap: 24px !important;
  }
}

@media (max-width: 768px) {
  .masonry-grid {
    grid-template-columns: repeat(2, 1fr) !important; /* Tablet/Mobile: 2 columns */
    gap: 20px !important;
  }
}

@media (max-width: 500px) {
  .masonry-grid {
    grid-template-columns: 1fr !important; /* Mobile: 1 column */
    gap: 18px !important;
  }
}

/* User dropdown item modifications for mobile */
.user-dropdown-menu {
  min-width: 180px;
}
@media (max-width: 390px) {
  .user-dropdown-menu {
    right: -10px;
    width: 160px;
    min-width: 150px;
  }
  .dropdown-item {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

/* Heart/Favorite Card Actions style */
.favorite-btn i {
  transition: transform 0.2s ease, fill 0.2s ease;
}
.favorite-btn.active i {
  fill: #c5a880 !important; /* Champagne Gold */
  color: #c5a880 !important;
}
.favorite-btn:active i {
  transform: scale(0.85);
}

/* Modal Content Scrollable Area */
.modal-content-scrollable {
  padding: 30px 40px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.modal-header-title {
  font-family: 'Cormorant Garamond', 'Outfit', sans-serif;
  font-size: 1.8rem;
  color: #FFFFFF;
  margin-bottom: 25px;
  letter-spacing: 0.05em;
  font-weight: 300;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 15px;
  text-transform: uppercase;
}

/* Grid of generations (My Works) */
.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}
@media (max-width: 1024px) {
  .works-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

/* Card of work item */
.work-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.work-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 168, 128, 0.3); /* Gold tint border */
}
.work-img-container {
  position: relative;
  width: 100%;
  padding-top: 133%; /* 3:4 Aspect Ratio */
  background: #0d0e12;
  overflow: hidden;
  cursor: pointer;
}
.work-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.work-card:hover .work-img-container img {
  transform: scale(1.03);
}

/* Work Info overlays */
.work-overlay-info {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}
.work-badge {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  color: #c5a880;
  border: 1px solid rgba(197, 168, 128, 0.2);
}
.work-badge.cost-badge {
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.work-details-bottom {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0,0,0,0.2);
}
.work-title-name {
  font-size: 0.85rem;
  color: #FFFFFF;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.work-time-label {
  font-size: 0.75rem;
  color: #77777a;
}
.work-card-actions {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.work-action-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  color: #9e9ea4;
  padding: 10px 0;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.work-action-btn:last-child {
  border-right: none;
}
.work-action-btn:hover {
  background: rgba(255, 255, 255, 0.03);
  color: #FFFFFF;
}
.work-action-btn.delete-btn:hover {
  color: #ff4d4d;
}

/* Favorites Grid and Cards */
.favorites-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 10px;
}
@media (max-width: 1024px) {
  .favorites-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .favorites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 500px) {
  .favorites-grid {
    grid-template-columns: 1fr;
  }
}

.fav-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.fav-card:hover {
  transform: translateY(-2px);
  border-color: rgba(197, 168, 128, 0.3);
}
.fav-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 133%;
  background: #0d0e12;
  cursor: pointer;
}
.fav-img-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fav-card-info {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.2);
}
.fav-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: calc(100% - 36px);
}
.fav-title {
  font-size: 0.85rem;
  color: #FFFFFF;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fav-category {
  font-size: 0.75rem;
  color: #77777a;
}
.fav-remove-icon-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #ff4d4d;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.fav-remove-icon-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 77, 77, 0.1);
}

/* Credits Log Timeline */
.credits-log-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}
.log-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.log-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.log-desc {
  font-size: 0.9rem;
  color: #FFFFFF;
  font-weight: 400;
}
.log-time {
  font-size: 0.75rem;
  color: #77777a;
}
.log-amount {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.log-amount.consume {
  color: #ff4d4d; /* Red for consumption */
}
.log-amount.charge {
  color: #22c55e; /* Green for charge */
}

/* Results header styling */
.results-header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}
.save-status-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Fullscreen High-Res Image Viewer */
.viewer-container {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  touch-action: none; /* Prevent default gestures while swiping */
}
.viewer-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 40px;
}
.viewer-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80vh;
  position: relative;
}
.viewer-image-wrapper img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
}
.nav-arrow {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.nav-arrow:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}
.viewer-footer {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #050505;
}
.viewer-action-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.viewer-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.viewer-index-indicator {
  font-family: 'Outfit', sans-serif;
  color: #77777a;
  font-size: 0.9rem;
}
.viewer-close-btn {
  top: 30px !important;
  right: 30px !important;
  z-index: 1001;
}

@media (max-width: 768px) {
  .viewer-body {
    padding: 0 10px;
  }
  .nav-arrow {
    display: none; /* Hide arrows on mobile, swipe only */
  }
  .viewer-footer {
    padding: 0 20px;
    height: 70px;
  }
  .modal-content-scrollable {
    padding: 20px 20px;
  }
}


/* Custom overrides for luxury lookbook aesthetic */
.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Card image constraints & stacks */
.gallery-card {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #14161c;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-img-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
}
.card-img-container img, 
.card-img-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-card:hover .card-img-container img,
.gallery-card:hover .card-img-container video {
  transform: scale(1.05);
}

/* Series chip luxury styling */
.series-chip {
  padding: 6px 12px !important;
  border-radius: 8px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.series-chip:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
}
.series-chip.active {
  background: rgba(181, 158, 124, 0.12) !important;
  border-color: rgba(181, 158, 124, 0.4) !important;
  color: #B59E7C !important;
}

/* ============================================================
   TIGHT ALIGNMENT & ACCESSIBILITY UPGRADES (Redesign Skill)
   ============================================================ */
#creditsCount, .card-price, .credits-badge {
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" !important;
}

/* ============================================================
   PRIMARY CATEGORY ROW FIXES (Category Tabs Relocation)
   ============================================================ */
.primary-category-row {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto 16px !important;
  padding: 0 16px;
  box-sizing: border-box;
}

.primary-category-row .category-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  background: rgba(16, 17, 23, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 6px !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
}

.primary-category-row .tab-btn {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  height: 48px !important;
  padding: 0 16px !important;
  border-radius: 12px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  color: rgba(255, 255, 255, 0.5) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer !important;
}

.primary-category-row .tab-btn:hover {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.primary-category-row .tab-btn.active {
  background: rgba(181, 158, 124, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(181, 158, 124, 0.3) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
}

.primary-category-row .tab-btn .tab-zh {
  font-size: 8px !important;
  opacity: 0.5 !important;
  display: inline-block !important;
}

.primary-category-row .tab-btn.active .tab-zh {
  opacity: 0.8 !important;
}

@media (max-width: 1024px) {
  .primary-category-row {
    padding: 0 12px;
  }
  .primary-category-row .category-tabs {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    border-radius: 12px !important;
  }
  .primary-category-row .tab-btn {
    height: 44px !important;
    padding: 0 10px !important;
    gap: 6px !important;
  }
}

@media (max-width: 480px) {
  .primary-category-row {
    padding: 0 8px;
  }
  .primary-category-row .category-tabs {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  .primary-category-row .tab-btn {
    height: 40px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
  }
}

/* Generation flow overrides: selected single shot + reusable face + body template */
.single-shot-tabs {
  display: none !important;
}

.generator-section {
  padding: 16px;
}

.generator-workbench {
  display: grid;
  grid-template-columns: minmax(190px, 0.78fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin-bottom: 12px;
}

.generator-workbench .reference-upload-container,
.generator-workbench .body-template-section {
  margin: 0;
}

.generator-workbench .reference-upload-container {
  min-height: 0;
  padding: 12px;
  justify-content: flex-start;
}

.generator-workbench .ref-upload-label {
  min-height: 74px;
  justify-content: center;
}

.generator-workbench .ref-upload-label svg {
  width: 22px;
  height: 22px;
  margin-bottom: 5px;
}

.generator-workbench .upload-subtitle {
  display: none;
}

.generator-workbench .upload-security-notice {
  margin-top: 8px;
  padding: 7px 9px;
  font-size: 10.5px;
}

.generator-workbench .saved-reference-list {
  margin-top: 10px;
  max-height: 52px;
}

.body-template-section {
  margin-bottom: 12px;
}

.body-template-header {
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 8px;
}

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

.body-template-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  border-radius: 8px;
  padding: 0;
  text-align: left;
  cursor: pointer;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.body-template-card.active {
  border-color: rgba(16, 185, 129, 0.58);
  background: rgba(16, 185, 129, 0.12);
}

.body-template-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  background: #111;
}

.body-template-copy {
  min-height: 38px;
  padding: 7px 8px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.body-template-name {
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.body-template-desc {
  font-size: 10.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.56);
}

.body-template-meta {
  font-size: 8.8px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.42);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.generator-input-group {
  margin-bottom: 12px;
}

.privacy-agreement-tip {
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: center;
}

.privacy-agreement-tip .tip-en {
  display: none;
}

.privacy-agreement-tip .tip-zh {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.46);
}

.generate-cta-btn {
  min-height: 50px;
  padding: 11px 14px;
}

.saved-reference-list {
  width: 100%;
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.saved-reference-chip {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border-radius: 8px;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 0 0 auto;
  max-width: 150px;
}

.saved-reference-chip.active {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.12);
}

.saved-reference-chip img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 6px;
}

.saved-reference-chip span {
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.result-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.expand-generation-btn {
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
  color: #d7ffee;
  border-radius: 999px;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 900;
  cursor: pointer;
}

.expand-generation-btn svg {
  width: 14px;
  height: 14px;
}

.promotion-policy-panel,
.premium-service-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.promotion-policy-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.promotion-policy-panel strong {
  color: #f4d58d;
  font-weight: 900;
}

.referral-panel {
  border: 1px solid rgba(244, 213, 141, 0.16);
  background: rgba(244, 213, 141, 0.05);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.82fr);
  gap: 14px;
  align-items: center;
}

.referral-eyebrow {
  display: block;
  color: rgba(244, 213, 141, 0.82);
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.referral-copy strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.referral-copy p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.referral-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
}

.referral-actions input {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 12px;
  outline: none;
}

.referral-actions button {
  border: 1px solid rgba(244, 213, 141, 0.28);
  background: rgba(244, 213, 141, 0.12);
  color: #ffe8ad;
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.premium-service-panel {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.premium-service-panel strong {
  color: #fff;
  font-size: 13px;
}

.premium-service-panel p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.55;
}

.premium-service-btn {
  border: 1px solid rgba(244, 213, 141, 0.36);
  background: rgba(244, 213, 141, 0.12);
  color: #ffe8ad;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  flex: 0 0 auto;
}

.premium-request-form {
  margin-top: 12px;
  border: 1px solid rgba(244, 213, 141, 0.18);
  background: rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.premium-request-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.premium-request-form span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 800;
}

.premium-request-form input,
.premium-request-form select,
.premium-request-form textarea {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  border-radius: 8px;
  padding: 10px 11px;
  font-size: 12px;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.premium-request-form textarea {
  resize: vertical;
  min-height: 78px;
}

.premium-form-wide {
  grid-column: 1 / -1;
}

.premium-request-submit {
  grid-column: 1 / -1;
  border: 1px solid rgba(244, 213, 141, 0.36);
  background: rgba(244, 213, 141, 0.14);
  color: #ffe8ad;
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 640px) {
  .generator-workbench {
    grid-template-columns: 1fr;
  }

  .body-template-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .body-template-copy {
    min-height: 42px;
    padding: 7px 7px 8px;
  }

  .body-template-name {
    font-size: 10.5px;
  }

  .body-template-meta {
    display: none;
  }

  .result-header-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .promotion-policy-panel,
  .premium-service-panel,
  .referral-panel {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .referral-actions {
    grid-template-columns: 1fr;
  }

  .premium-request-form {
    grid-template-columns: 1fr;
  }
}

/* Detail generator redesign: first-screen face reference + text body choices */
#detailModal .modal-container {
  width: min(94vw, 1720px);
  max-width: 1720px;
  height: min(92vh, 880px);
  max-height: 880px;
  border-radius: 14px;
}

#detailModal .modal-body {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(420px, 0.95fr);
}

#detailModal .modal-media-panel {
  width: auto;
  padding: 28px 32px 36px;
  gap: 16px;
  pointer-events: auto;
}

#detailModal .modal-info-panel {
  width: auto;
  padding: 42px 42px 24px;
  gap: 12px;
  overflow-x: hidden;
  overflow-y: auto;
}

#detailModal[data-category="portrait_set"][data-mode="detail"] .modal-media-panel .reference-upload-container {
  display: none !important;
}

#detailModal[data-category="portrait_set"][data-mode="detail"] .modal-media-panel .image-wrapper-protected {
  display: flex !important;
}

#detailModal[data-category="portrait_set"][data-mode="detail"] .modal-thumbnails {
  display: flex !important;
}

#detailModal[data-category="portrait_set"][data-mode="generate"] .modal-media-panel .image-wrapper-protected,
#detailModal[data-category="portrait_set"][data-mode="generate"] .modal-thumbnails {
  display: none !important;
}

#detailModal[data-category="portrait_set"][data-mode="generate"] .modal-media-panel .reference-upload-container {
  display: flex !important;
}

#detailModal:not([data-category="portrait_set"]) .modal-media-panel .reference-upload-container {
  display: none !important;
}

#detailModal:not([data-category="portrait_set"]) .modal-media-panel .image-wrapper-protected {
  display: flex;
}

#detailModal .modal-header-info {
  min-height: 32px;
  padding-right: 86px;
}

#detailModal .modal-title {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(30px, 2.4vw, 44px);
  line-height: 1.12;
  font-weight: 500;
  letter-spacing: 0;
  max-height: 100px;
  overflow: hidden;
}

#detailModal .modal-description {
  margin: 0;
}

#detailModal .elegant-description-card {
  padding: 15px 20px;
  border-radius: 8px;
}

#detailModal .desc-header {
  margin-bottom: 10px;
  font-size: 13px;
}

#detailModal .desc-content {
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
}

#detailModal .lookbook-generate-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 14px;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.96), rgba(5, 150, 105, 0.96));
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

#detailModal .lookbook-generate-btn svg {
  width: 17px;
  height: 17px;
}

#detailModal .lookbook-generate-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.22);
}

#detailModal .generator-section {
  padding: 14px 24px 16px;
  border-radius: 8px;
}

#detailModal .generator-header {
  align-items: center;
  margin-bottom: 10px;
}

#detailModal .generator-header h3 {
  font-size: 20px;
}

#detailModal .cost-indicator {
  padding: 8px 14px;
  font-size: 13px;
  white-space: nowrap;
}

#detailModal .legacy-reference-upload {
  display: none !important;
}

#detailModal .generator-workbench {
  display: block;
  margin: 0 0 14px;
}

#detailModal .body-template-header {
  margin-bottom: 9px;
  font-size: 14px;
}

#detailModal .body-template-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

#detailModal .body-template-card {
  min-height: 54px;
  padding: 9px 14px;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  border-radius: 8px;
}

#detailModal .body-template-card img {
  display: none !important;
}

#detailModal .body-template-radio {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  display: block;
  position: relative;
}

#detailModal .body-template-card.active .body-template-radio {
  border-color: #10B981;
}

#detailModal .body-template-card.active .body-template-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #10B981;
}

#detailModal .body-template-copy {
  min-height: 0;
  padding: 0;
  gap: 2px;
}

#detailModal .body-template-name {
  font-size: 13px;
  line-height: 1.2;
}

#detailModal .body-template-meta {
  font-size: 10px;
  line-height: 1.2;
  display: block;
}

#detailModal .body-template-desc {
  font-size: 10.5px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.58);
}

#detailModal .generate-cta-btn {
  min-height: 56px;
  padding: 13px 18px;
  border-radius: 9px;
  font-size: 17px;
}

#detailModal .privacy-agreement-tip {
  display: none;
}

#detailModal .privacy-agreement-tip .tip-zh {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.45);
}

#detailModal .modal-media-panel .reference-upload-container {
  width: 100%;
  height: 100%;
  max-width: 760px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  background: #07080d;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

#detailModal .modal-media-panel .ref-upload-label {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 8px;
}

#detailModal .modal-media-panel .ref-upload-label svg {
  display: none;
}

#detailModal .face-reference-sample {
  position: relative;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0b0c11;
}

#detailModal .face-reference-sample img,
#detailModal .ref-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

#detailModal .face-reference-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  backdrop-filter: blur(10px);
}

#detailModal .modal-media-panel .upload-title {
  padding: 0 18px;
  font-size: 15px;
  line-height: 1.25;
}

#detailModal .modal-media-panel .upload-subtitle {
  display: block;
  padding: 0 18px 18px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.55);
}

#detailModal .modal-media-panel .ref-preview-wrapper {
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}

#detailModal .modal-media-panel .remove-ref-btn {
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  z-index: 4;
}

#detailModal .modal-media-panel .saved-reference-list {
  width: 100%;
  max-height: 74px;
  padding: 10px 12px 12px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  overflow-x: auto;
}

@media (max-width: 900px) {
  #detailModal .modal-container {
    height: 94vh;
  }

  #detailModal .modal-body {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(240px, 42vh) minmax(0, 1fr);
  }

  #detailModal .modal-info-panel {
    padding: 16px 18px 18px;
    overflow-x: hidden;
    overflow-y: auto;
  }

  #detailModal .modal-title {
    font-size: 28px;
    max-height: none;
  }

  #detailModal[data-category="portrait_set"][data-mode="generate"] .modal-header-info,
  #detailModal[data-category="portrait_set"][data-mode="generate"] .modal-title,
  #detailModal[data-category="portrait_set"][data-mode="generate"] .modal-description,
  #detailModal[data-category="portrait_set"][data-mode="generate"] #modalTagsContainer {
    display: none !important;
  }

  #detailModal[data-category="portrait_set"] .generator-section {
    padding: 12px 14px 14px;
  }

  #detailModal[data-category="portrait_set"] .generator-header {
    margin-bottom: 8px;
  }

  #detailModal[data-category="portrait_set"] .generator-header h3 {
    font-size: 17px;
  }

  #detailModal[data-category="portrait_set"] .cost-indicator {
    font-size: 11px;
    padding: 7px 9px;
  }

  #detailModal[data-category="portrait_set"] .body-template-header {
    font-size: 12px;
    margin-bottom: 7px;
  }

  #detailModal[data-category="portrait_set"] .body-template-grid {
    gap: 6px;
  }

  #detailModal[data-category="portrait_set"] .body-template-card {
    min-height: 49px;
    padding: 7px 10px;
    grid-template-columns: 16px minmax(0, 1fr);
  }

  #detailModal[data-category="portrait_set"] .body-template-name {
    font-size: 12px;
  }

  #detailModal[data-category="portrait_set"] .body-template-meta {
    display: none;
  }

  #detailModal[data-category="portrait_set"] .body-template-desc {
    font-size: 10px;
    line-height: 1.25;
  }

  #detailModal[data-category="portrait_set"] .generate-cta-btn {
    min-height: 50px;
    font-size: 14px;
    padding: 10px 12px;
  }
}

