/**
 * NineJoe Formal Studio 2.0 - Unified Design System & UX/UI Overhaul
 * Performance-first, fully responsive across mobile, tablet, foldable, and desktop screens.
 */

:root {
  --nj-bg-deep: #101112;
  --nj-bg-surface: #141516;
  --nj-bg-card: #171819;
  --nj-bg-card-hover: #1e2022;
  --nj-border: #343536;
  --nj-border-hover: #ff4655;
  --nj-border-glow: transparent;
  --nj-brand: #ff4655;
  --nj-brand-glow: transparent;
  --nj-brand-light: #ff6b78;
  --nj-text-primary: #f5f5f2;
  --nj-text-secondary: #a5a5a5;
  --nj-text-muted: #777777;
  --nj-font-heading: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --nj-font-body: "Inter", system-ui, -apple-system, sans-serif;
  --nj-radius-sm: 4px;
  --nj-radius-md: 6px;
  --nj-radius-lg: 8px;
  --nj-radius-xl: 10px;
  --nj-transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --nj-transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);

  /* Tailwind CSS variable alignment */
  --background: 220 5% 7%;
  --foreground: 60 4% 96%;
  --card: 210 3% 9%;
  --card-foreground: 60 4% 96%;
  --popover: 210 3% 9%;
  --popover-foreground: 60 4% 96%;
  --border: 210 3% 21%;
  --primary: 355 100% 64%;
  --primary-foreground: 220 5% 7%;
  --muted: 210 3% 14%;
  --muted-foreground: 0 0% 65%;
  --radius: 0.375rem;
}

/* 1. Global Reset & Smooth Scrolling */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--nj-bg-deep) !important;
  color: var(--nj-text-primary) !important;
  font-family: var(--nj-font-body);
  overflow-x: hidden;
  selection-background-color: var(--nj-brand);
}

::selection {
  background: #ff4655;
  color: #101112;
}

/* 2. Sleek Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #04060a;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 999px;
  border: 2px solid #04060a;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--nj-brand);
}

/* 3. Performance & GPU Acceleration */
.nj-accelerate {
  transform: translateZ(0);
  backface-visibility: hidden;
  will-change: transform, opacity;
}

/* Content Visibility for below-the-fold elements */
.content-auto {
  content-visibility: auto;
  contain-intrinsic-size: 0 420px;
}

/* 4. Glassmorphism Card System */
.nj-glass-card {
  background: var(--nj-bg-card) !important;
  backdrop-filter: blur(18px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
  border: 1px solid var(--nj-border) !important;
  border-radius: var(--nj-radius-lg) !important;
  transition: transform var(--nj-transition-smooth), border-color var(--nj-transition-smooth), box-shadow var(--nj-transition-smooth) !important;
  position: relative;
  overflow: hidden;
}

.nj-glass-card:hover {
  transform: translateY(-5px) !important;
  border-color: var(--nj-border-hover) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45), 0 0 24px var(--nj-brand-glow) !important;
}

/* 5. Formal Studio Badges */
.nj-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.28);
  color: var(--nj-brand-light);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--nj-font-heading);
}

.nj-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--nj-brand);
  box-shadow: 0 0 8px var(--nj-brand);
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

/* 6. Active State Indicator for Navigation */
.nj-nav-active {
  color: var(--nj-brand) !important;
  position: relative;
}

.nj-nav-active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--nj-brand);
  box-shadow: 0 0 10px var(--nj-brand);
  border-radius: 999px;
}

/* 7. Formal Profile Card (About Section) */
.nj-profile-card {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 380px;
  gap: 32px;
  align-items: center;
  padding: 32px 36px;
  border-radius: var(--nj-radius-xl);
  background: linear-gradient(135deg, rgba(16, 22, 35, 0.85), rgba(7, 10, 16, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

@media (max-width: 1024px) {
  .nj-profile-card {
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .nj-profile-stats {
    grid-column: span 2;
    margin-top: 16px;
  }
}

@media (max-width: 680px) {
  .nj-profile-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 20px;
    gap: 20px;
  }
  .nj-profile-avatar-wrap {
    margin: 0 auto;
  }
  .nj-profile-stats {
    grid-column: span 1;
  }
}

/* 8. Responsive Touch Target Fixes (Mobile Accessibility) */
@media (max-width: 768px) {
  button, a.btn, a.card, [role="button"] {
    min-height: 44px;
  }
  
  /* Responsive Heading Scaling */
  h1, .hero-title {
    font-size: clamp(32px, 8vw, 64px) !important;
    line-height: 1.08 !important;
  }
  
  h2, .section-title {
    font-size: clamp(24px, 5.5vw, 40px) !important;
    line-height: 1.15 !important;
  }

  .section-padding {
    padding: 42px 18px !important;
  }
}

/* 9. High-contrast Formal Typography */
.font-formal {
  font-family: var(--nj-font-heading) !important;
  letter-spacing: -0.02em;
}

.text-formal-lead {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.68;
  color: var(--nj-text-secondary);
}


/* ==========================================================================
   NineJoe Studio — Unified Universal Hero & Content Design System
   ========================================================================== */

/* 1. Universal Page Hero Container */
.nj-hero-section {
  text-align: center;
  max-width: 860px;
  margin: 0 auto 2.5rem auto;
  padding: 2rem 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 2. Floating Eyebrow Pill Badge */
.nj-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.3);
  color: #ff1744;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 14px rgba(255, 23, 68, 0.15);
}

.nj-hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff1744;
  display: inline-block;
  animation: nj-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes nj-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

/* 3. Grand Headline with Safe Solid Accent (Never Invisible!) */
.nj-hero-title {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-align: center;
}

.nj-hero-title-accent {
  color: #ff1744;
  background: linear-gradient(92deg, #ff4569 0%, #ff1744 60%, #ff8a80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* 4. Hero Subtitle */
.nj-hero-subtitle {
  font-size: clamp(14px, 1.8vw, 16px);
  line-height: 1.7;
  color: #94a3b8;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

/* 5. Toolbar & Search Bar */
.nj-toolbar {
  max-width: 1280px;
  margin: 0 auto 2.5rem auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.nj-search-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
@media (min-width: 640px) {
  .nj-search-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.nj-search-box {
  position: relative;
  width: 100%;
  max-width: 580px;
}

.nj-search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
}

.nj-search-input {
  width: 100%;
  height: 48px;
  padding-left: 44px;
  padding-right: 16px;
  border-radius: 14px;
  background: rgba(16, 20, 30, 0.65) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  outline: none;
  transition: all 0.2s ease;
}

.nj-search-input:focus {
  border-color: #ff1744 !important;
  box-shadow: 0 0 0 3px rgba(255, 23, 68, 0.2) !important;
}

.nj-search-input::placeholder {
  color: #64748b !important;
}

.nj-counter-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(16, 20, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: nowrap;
}

/* 6. Filter Chips */
.nj-chips-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.nj-chips-row::-webkit-scrollbar {
  display: none;
}

.nj-chip-btn {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 20, 30, 0.6);
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(12px);
}

.nj-chip-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(24, 30, 44, 0.8);
}

.nj-chip-btn.active {
  background: #ff1744 !important;
  color: #ffffff !important;
  border-color: #ff1744 !important;
  box-shadow: 0 4px 18px rgba(255, 23, 68, 0.35);
  transform: scale(1.04);
}

/* 7. Grid of Content Cards */
.nj-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .nj-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .nj-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* 8. Unified Card Component */
.nj-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.72) 0%, rgba(10, 13, 20, 0.45) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.nj-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 23, 68, 0.45);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45), 0 0 24px rgba(255, 23, 68, 0.15);
}

.nj-card-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgba(14, 18, 27, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nj-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nj-card:hover .nj-card-thumb img {
  transform: scale(1.06);
}

.nj-card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(3, 6, 10, 0.85);
  color: #ff1744;
  border: 1px solid rgba(255, 23, 68, 0.25);
  backdrop-filter: blur(8px);
}

.nj-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.nj-card-date {
  font-size: 11px;
  font-family: ui-monospace, monospace;
  color: #64748b;
}

.nj-card-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.nj-card:hover .nj-card-title {
  color: #ff1744;
}

.nj-card-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nj-card-footer {
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.nj-card-chip {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
}

/* 9. Loading & Infinite Scroll Indicators */
.nj-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
  gap: 1rem;
}

.nj-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 23, 68, 0.2);
  border-top-color: #ff1744;
  border-radius: 50%;
  animation: nj-spin 0.8s linear infinite;
}

.nj-loadmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  color: #ff1744;
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(255, 23, 68, 0.15);
}

.nj-loadmore-btn:hover {
  background: #ff1744;
  color: #ffffff;
  box-shadow: 0 6px 24px rgba(255, 23, 68, 0.4);
  transform: translateY(-2px);
}


/* Global Safety: ensure any bg-clip-text element across the entire app properly clips text, with solid fallback */
.bg-clip-text, [class*="bg-clip-text"] {
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

@supports not (-webkit-background-clip: text) {
  .text-transparent {
    color: inherit !important;
  }
}


/* 10. Wallpaper Showcase & Gallery System (Collections) */
.nj-wallpaper-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.75rem;
}
@media (min-width: 480px) {
  .nj-wallpaper-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 860px) {
  .nj-wallpaper-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
}
@media (min-width: 1200px) {
  .nj-wallpaper-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

.nj-wallpaper-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.75) 0%, rgba(8, 11, 17, 0.6) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}
.nj-wallpaper-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 23, 68, 0.5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 23, 68, 0.2);
}

.nj-wallpaper-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #05080e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nj-wallpaper-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.nj-wallpaper-card:hover .nj-wallpaper-thumb img {
  transform: scale(1.06);
}

.nj-wallpaper-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(3, 6, 10, 0.88);
  color: #ff1744;
  border: 1px solid rgba(255, 23, 68, 0.3);
  backdrop-filter: blur(12px);
  z-index: 2;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.nj-wallpaper-badge-right {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 600;
  color: #f1f5f9;
  background: rgba(3, 6, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.nj-wallpaper-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.nj-wallpaper-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.nj-wallpaper-card:hover .nj-wallpaper-title {
  color: #ff1744;
}
.nj-wallpaper-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nj-wallpaper-action-row {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.nj-wallpaper-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #ff1744;
}
.nj-wallpaper-card:hover .nj-wallpaper-btn {
  color: #ff4569;
}

/* Wallpaper Detail Page: Phone Mockup Stage & Gallery */
.nj-wallpaper-detail-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}

.nj-wallpaper-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .nj-wallpaper-detail-grid {
    grid-template-columns: 420px 1fr;
    gap: 3.5rem;
  }
}

.nj-wallpaper-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 40px;
  border: 3px solid rgba(255, 255, 255, 0.16);
  background: #03060a;
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.85), 0 0 40px rgba(255, 23, 68, 0.15);
  overflow: hidden;
  aspect-ratio: 9 / 16;
}

.nj-wallpaper-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000000;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
  pointer-events: none;
}

.nj-wallpaper-stage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 0.3s ease;
  cursor: zoom-in;
}

.nj-wallpaper-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(3, 6, 10, 0.75);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 15;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.nj-wallpaper-nav-btn:hover {
  background: #ff1744;
  color: #ffffff;
  border-color: #ff1744;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 23, 68, 0.5);
}
.nj-wallpaper-nav-btn.prev { left: 14px; }
.nj-wallpaper-nav-btn.next { right: 14px; }

.nj-wallpaper-counter-pill {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(3, 6, 10, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
  backdrop-filter: blur(12px);
  z-index: 15;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.nj-wallpaper-zoom-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(3, 6, 10, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 20;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}
.nj-wallpaper-zoom-btn:hover {
  background: #ff1744;
  transform: scale(1.1);
}

/* Interactive Thumbnails Strip — flex wrap so last row is centered */
.nj-wallpaper-thumbs-container {
  max-width: 420px;
  margin: 1.25rem auto 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.nj-wallpaper-thumbs-container .nj-wallpaper-thumb-item {
  flex: 0 0 calc(25% - 8px);
  max-width: 92px;
}
@media (max-width: 440px) {
  .nj-wallpaper-thumbs-container .nj-wallpaper-thumb-item {
    flex: 0 0 calc(33.33% - 8px);
    max-width: 80px;
  }
}

.nj-wallpaper-thumb-item {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #05080e;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}
.nj-wallpaper-thumb-item:hover {
  border-color: rgba(255, 23, 68, 0.5);
  transform: translateY(-2px);
}
.nj-wallpaper-thumb-item.active {
  border-color: #ff1744 !important;
  box-shadow: 0 0 16px rgba(255, 23, 68, 0.55);
  transform: scale(1.06);
}
.nj-wallpaper-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nj-wallpaper-thumb-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
}

/* Detail Right Column */
.nj-wallpaper-details-card {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.7) 0%, rgba(10, 13, 20, 0.5) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.nj-wallpaper-cta-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
@media (min-width: 640px) {
  .nj-wallpaper-cta-box {
    flex-direction: row;
    align-items: center;
  }
}

.nj-btn-primary-download {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 9999px;
  background: #ff1744;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(255, 23, 68, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nj-btn-primary-download:hover {
  background: #ff2a55;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 23, 68, 0.6);
}

.nj-btn-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all 0.2s ease;
}
.nj-btn-secondary-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.nj-wallpaper-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: rgba(8, 11, 17, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.25rem;
}
@media (max-width: 480px) {
  .nj-wallpaper-specs-grid {
    grid-template-columns: 1fr;
  }
}
.nj-wallpaper-spec-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nj-wallpaper-spec-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.nj-wallpaper-spec-val {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
}

/* Lightbox Modal */
.nj-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: nj-fade-in 0.25s ease;
}
@keyframes nj-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nj-lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.nj-lightbox-img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}
.nj-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
}
.nj-lightbox-close:hover {
  background: #ff1744;
  border-color: #ff1744;
}


/* 11. AI Prompts Showcase System */
.nj-prompt-grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1.75rem;
}
@media (min-width: 480px) {
  .nj-prompt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
}
@media (min-width: 860px) {
  .nj-prompt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; }
}
@media (min-width: 1200px) {
  .nj-prompt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
}

.nj-prompt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.75) 0%, rgba(8, 11, 17, 0.6) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  color: inherit;
}
.nj-prompt-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 23, 68, 0.5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 23, 68, 0.2);
}

.nj-prompt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #05080e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nj-prompt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.nj-prompt-card:hover .nj-prompt-thumb img {
  transform: scale(1.06);
}

.nj-prompt-badge-model {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(3, 6, 10, 0.88);
  color: #ff1744;
  border: 1px solid rgba(255, 23, 68, 0.3);
  backdrop-filter: blur(12px);
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.nj-prompt-badge-cat {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(3, 6, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.nj-prompt-info {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.nj-prompt-title {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}
.nj-prompt-card:hover .nj-prompt-title {
  color: #ff1744;
}
.nj-prompt-snippet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nj-prompt-action-row {
  margin-top: auto;
  padding-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.nj-prompt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #ff1744;
}
.nj-prompt-card:hover .nj-prompt-btn {
  color: #ff4569;
}

/* Prompt Detail Page Layout */
.nj-prompt-detail-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 6rem;
}
.nj-prompt-stage-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .nj-prompt-stage-grid {
    grid-template-columns: 500px 1fr;
    gap: 3.5rem;
  }
}

.nj-prompt-art-box {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #03060a;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), 0 0 35px rgba(255, 23, 68, 0.15);
  aspect-ratio: 4 / 5;
}
.nj-prompt-art-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}
.nj-prompt-art-img:hover {
  transform: scale(1.02);
}

.nj-prompt-console {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(14, 18, 28, 0.8) 0%, rgba(8, 11, 17, 0.6) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.nj-prompt-console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nj-prompt-console-body {
  padding: 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.7;
  color: #f1f5f9;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.25);
  max-height: 280px;
  overflow-y: auto;
}

.nj-info-card {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(14, 18, 28, 0.90) 0%, rgba(8, 11, 18, 0.80) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 1.75rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.nj-info-card:hover {
  border-color: rgba(255, 23, 68, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 23, 68, 0.08);
}


/* ==========================================================================
   NineJoe Formal Studio 2.0 - Case Study & Detail Pages Design System
   ========================================================================== */

/* 1. Case Study Hero Showcase */
.nj-case-study-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.nj-case-study-hero {
  position: relative;
  padding: 3rem 0 2rem;
}

.nj-case-study-badge-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.nj-case-study-title {
  font-family: var(--nj-font-heading);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 1.25rem;
  max-width: 1080px;
}

.nj-case-study-desc {
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  max-width: 860px;
  margin-bottom: 2rem;
}

/* 2. Primary Figma Action Button & Secondary Toolbars */
.nj-action-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.nj-figma-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1e2538 0%, #111624 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 23, 68, 0.2);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.nj-figma-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.25) 0%, rgba(255, 77, 0, 0.15) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.nj-figma-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 23, 68, 0.6);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 23, 68, 0.4);
}

.nj-figma-btn:hover::before {
  opacity: 1;
}

.nj-figma-btn > * {
  position: relative;
  z-index: 1;
}

.nj-figma-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* 3. Screen Showcase & Multi-Screen Gallery Switcher */
.nj-screen-stage {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #05080e;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 23, 68, 0.12);
  aspect-ratio: 16 / 9;
  max-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .nj-screen-stage {
    border-radius: 18px;
    aspect-ratio: 16 / 10;
  }
}

.nj-screen-stage-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #04060a;
  cursor: zoom-in;
  transition: transform 0.4s ease;
}

.nj-screen-stage-img:hover {
  transform: scale(1.015);
}

.nj-screen-thumbs-bar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.nj-screen-thumb-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  background: rgba(14, 18, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nj-screen-thumb-btn:hover {
  background: rgba(255, 23, 68, 0.12);
  border-color: rgba(255, 23, 68, 0.35);
  color: #ffffff;
}

.nj-screen-thumb-btn.active {
  background: rgba(255, 23, 68, 0.2);
  border-color: #ff1744;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 23, 68, 0.3);
}

.nj-screen-thumb-preview {
  width: 32px;
  height: 22px;
  border-radius: 4px;
  object-fit: cover;
}

/* 4. Quick Specs Metric Grid */
.nj-specs-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .nj-specs-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.nj-spec-item {
  background: rgba(10, 14, 23, 0.75);
  padding: 1.25rem 1.5rem;
  backdrop-filter: blur(16px);
}

.nj-spec-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.4rem;
}

.nj-spec-value {
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* 5. Main Content Grid Layout */
.nj-case-study-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  margin-top: 3.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .nj-case-study-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

/* 6. Overview Callout Box */
.nj-overview-box {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(135deg, rgba(16, 22, 36, 0.8) 0%, rgba(9, 13, 21, 0.6) 100%);
  padding: 2.25rem;
  backdrop-filter: blur(20px);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

.nj-overview-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff1744 0%, #ff6b81 100%);
}

.nj-section-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #ff1744;
  margin-bottom: 0.5rem;
}

.nj-section-h2 {
  font-family: var(--nj-font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #ffffff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nj-overview-p {
  font-size: 1.12rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

/* 7. Challenge vs Solution Grid */
.nj-challenge-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .nj-challenge-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nj-challenge-card {
  border-radius: 22px;
  padding: 1.85rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.nj-challenge-card.problem {
  background: linear-gradient(180deg, rgba(30, 16, 22, 0.7) 0%, rgba(16, 9, 13, 0.5) 100%);
  border: 1px solid rgba(255, 23, 68, 0.25);
}

.nj-challenge-card.solution {
  background: linear-gradient(180deg, rgba(12, 28, 22, 0.7) 0%, rgba(8, 18, 14, 0.5) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.nj-challenge-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--nj-font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.nj-challenge-card.problem .nj-challenge-header {
  color: #ff4d6d;
}

.nj-challenge-card.solution .nj-challenge-header {
  color: #34d399;
}

.nj-challenge-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.nj-challenge-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.nj-challenge-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

.nj-challenge-card.problem .nj-challenge-dot {
  background: #ff1744;
  box-shadow: 0 0 8px #ff1744;
}

.nj-challenge-card.solution .nj-challenge-dot {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* 8. Process Stepper Timeline */
.nj-process-stepper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.nj-process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding: 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 25, 0.6);
  backdrop-filter: blur(16px);
  transition: all 0.2s ease;
}

.nj-process-step:hover {
  border-color: rgba(255, 23, 68, 0.35);
  background: rgba(16, 22, 36, 0.75);
  transform: translateX(4px);
}

.nj-step-num {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 23, 68, 0.12);
  border: 1px solid rgba(255, 23, 68, 0.3);
  color: #ff1744;
  font-family: var(--nj-font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nj-step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nj-step-title {
  font-family: var(--nj-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.nj-step-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* 9. Key Features Grid */
.nj-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .nj-feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.nj-feature-card {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 26, 0.65);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

.nj-feature-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(18, 24, 38, 0.8);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.nj-feature-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 23, 68, 0.12);
  border: 1px solid rgba(255, 23, 68, 0.25);
  color: #ff1744;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.nj-feature-title {
  font-family: var(--nj-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.45rem;
}

.nj-feature-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* 10. Tools & Deliverables Badges */
.nj-tools-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.nj-tool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nj-tool-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* 11. Prominent High-Converting Figma Download Banner */
.nj-download-cta-banner {
  border-radius: 28px;
  border: 1px solid rgba(255, 23, 68, 0.3);
  background: radial-gradient(circle at top right, rgba(255, 23, 68, 0.18) 0%, rgba(14, 18, 28, 0.85) 60%), #080b12;
  padding: 2.75rem 2.25rem;
  margin-top: 4rem;
  backdrop-filter: blur(24px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(255, 23, 68, 0.2);
}

.nj-download-cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  align-items: flex-start;
  justify-content: space-between;
}

@media (min-width: 860px) {
  .nj-download-cta-inner {
    flex-direction: row;
    align-items: center;
  }
}

.nj-download-cta-text h3 {
  font-family: var(--nj-font-heading);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.nj-download-cta-text p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  max-width: 540px;
}

.nj-download-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

/* ==========================================================================
   SECTION: Blog Detail — Balanced Hero & Article Typography
   ========================================================================== */

/* Blog Hero: 2-column 40/60 balanced layout */
.nj-blog-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .nj-blog-hero-grid {
    grid-template-columns: 40% 1fr;
    gap: 2.5rem;
  }
}
@media (min-width: 1200px) {
  .nj-blog-hero-grid {
    grid-template-columns: 420px 1fr;
    gap: 3rem;
  }
}

.nj-blog-hero-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 240px;
  background: #0a0d15;
}
@media (min-width: 768px) {
  .nj-blog-hero-img-wrap {
    min-height: 360px;
  }
}
.nj-blog-hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nj-blog-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem 0;
}
@media (min-width: 768px) {
  .nj-blog-hero-info {
    padding: 2rem 0;
  }
}

.nj-blog-hero-title {
  font-family: var(--nj-font-heading);
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

.nj-blog-hero-desc {
  font-size: clamp(0.95rem, 1.1vw, 1.1rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}

.nj-blog-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nj-blog-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nj-blog-meta-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--nj-text-muted);
  font-family: monospace;
}
.nj-blog-meta-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--nj-text-primary);
}

/* Article body balanced typography */
.nj-article-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.82);
}
.nj-article-body h2 {
  font-family: var(--nj-font-heading);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 700;
  color: #ffffff;
  margin: 2.5rem 0 1rem;
  line-height: 1.3;
}
.nj-article-body h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  font-weight: 700;
  color: #f1f5f9;
  margin: 2rem 0 0.75rem;
}
.nj-article-body p { margin: 0 0 1.25rem; }
.nj-article-body ul, .nj-article-body ol {
  padding-left: 1.5rem;
  margin: 0 0 1.25rem;
}
.nj-article-body li { margin-bottom: 0.5rem; }
.nj-article-body figure { margin: 2rem 0; }
.nj-article-body figure img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.nj-article-body figcaption {
  text-align: center;
  font-size: 13px;
  color: var(--nj-text-muted);
  margin-top: 0.5rem;
}
.nj-article-body blockquote {
  border-left: 3px solid #ff1744;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: rgba(255, 23, 68, 0.06);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}
.nj-article-body code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 5px;
  font-family: monospace;
  font-size: 0.9em;
  color: #f97316;
}

/* ==========================================================================
   SECTION: Portfolio Feature Showcase Grid (for non-case-study items)
   ========================================================================== */

.nj-feature-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .nj-feature-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .nj-feature-showcase-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

.nj-feature-card {
  background: linear-gradient(135deg, rgba(14, 18, 28, 0.85) 0%, rgba(8, 11, 17, 0.75) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.nj-feature-card:hover {
  border-color: rgba(255, 23, 68, 0.25);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 23, 68, 0.08);
}

.nj-feature-card-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.nj-feature-card-title {
  font-family: var(--nj-font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin: 0;
}

.nj-feature-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.68);
}
.nj-feature-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.nj-feature-card-list li::before {
  content: "›";
  color: #ff1744;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

.nj-feature-card-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
}

/* Full width feature card variant (for longer content) */
.nj-feature-card.wide {
  grid-column: 1 / -1;
}

/* Live Demo highlight card */
.nj-feature-card.highlight {
  border-color: rgba(255, 23, 68, 0.25);
  background: linear-gradient(135deg, rgba(255, 23, 68, 0.08) 0%, rgba(14, 18, 28, 0.90) 100%);
}
.nj-feature-card.highlight .nj-feature-card-title {
  color: #ff4569;
}

/* ==========================================================================
   SECTION: Reviews Page — Modal Sizing Fix
   ========================================================================== */

.nj-review-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 1rem) 1rem env(safe-area-inset-bottom, 1rem) 1rem;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nj-review-modal-box {
  position: relative;
  width: 100%;
  max-width: min(780px, calc(100vw - 2rem));
  max-height: calc(100vh - 3rem);
  max-height: calc(100dvh - 3rem);
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0e18;
  padding: 2rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 0, 0, 0.5);
}
@media (max-width: 480px) {
  .nj-review-modal-box {
    padding: 1.25rem;
    border-radius: 20px;
  }
}

.nj-review-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  z-index: 10;
}
.nj-review-modal-close:hover {
  background: rgba(255, 23, 68, 0.3);
  border-color: rgba(255, 23, 68, 0.5);
}

.nj-review-modal-img {
  width: 100%;
  height: auto;
  max-height: 55vh;
  object-fit: contain;
  border-radius: 12px;
  background: #000;
  display: block;
}

/* ==========================================================================
   SECTION: Black screen / Loading Performance Fixes
   ========================================================================== */

/* Prevent layout shift black flash */
#root {
  min-height: 100vh;
  background: #03060a;
}

.nj-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  gap: 1rem;
}

/* Spinner smooth animation */
@keyframes nj-spin {
  to { transform: rotate(360deg); }
}
.nj-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ff1744;
  border-radius: 50%;
  animation: nj-spin 0.8s linear infinite;
}

/* Skeleton pulse for cards */
@keyframes nj-skeleton-pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
.nj-skeleton {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  animation: nj-skeleton-pulse 1.6s ease-in-out infinite;
}

/* Image lazy load fade-in */
img[loading="lazy"] {
  transition: opacity 0.3s ease;
}

/* ==========================================================================
   SECTION: Prompt Detail — Info Cards Grid (below hero)
   ========================================================================== */

.nj-prompt-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 3.5rem;
}
@media (min-width: 640px) {
  .nj-prompt-info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* Related prompts inside detail — 4 equal columns */
.nj-prompt-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .nj-prompt-related-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

/* ==========================================================================
   SECTION: Responsive Utilities & Global Fixes
   ========================================================================== */

/* Ensure images never overflow */
img {
  max-width: 100%;
  height: auto;
}

/* Prevent horizontal overflow on any container */
.nj-listing-page,
.nj-wallpaper-detail-container,
.nj-prompt-detail-container,
.nj-case-study-container,
.nj-article {
  overflow-x: hidden;
}

/* Full-width sections correct padding on mobile */
@media (max-width: 375px) {
  .nj-listing-page { padding-left: 1rem !important; padding-right: 1rem !important; }
  .nj-case-study-container { padding-left: 1rem; padding-right: 1rem; }
  .nj-wallpaper-detail-container { padding-left: 1rem; padding-right: 1rem; }
  .nj-prompt-detail-container { padding-left: 1rem; padding-right: 1rem; }
  .nj-hero-title { font-size: clamp(1.75rem, 8vw, 2.25rem) !important; }
}

/* Tablet-specific grid fixes */
@media (min-width: 640px) and (max-width: 1023px) {
  .nj-wallpaper-detail-grid {
    grid-template-columns: 1fr !important;
  }
  .nj-wallpaper-stage {
    max-width: 360px;
  }
}

/* ==========================================================================
   SECTION: Modern Studio Media Viewer (Reference Design: Xiaohongshu / Midjourney)
   Eliminates all wasted space, vertical thumbnail strip, integrated More Like This
   ========================================================================== */

.nj-studio-viewer {
  max-width: 1560px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
  min-height: calc(100vh - 80px);
}

.nj-studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.nj-studio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}
.nj-studio-back-link:hover {
  color: #ffffff;
}

.nj-studio-top-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nj-studio-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
}

.nj-studio-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nj-studio-icon-btn:hover {
  background: rgba(255, 23, 68, 0.2);
  border-color: rgba(255, 23, 68, 0.4);
}

/* Two-column layout */
.nj-studio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .nj-studio-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 2rem;
  }
}
@media (min-width: 1300px) {
  .nj-studio-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 2.5rem;
  }
}

/* Left Stage with embedded vertical thumbnail strip */
.nj-studio-stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #04060b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  min-height: 520px;
  max-height: 82vh;
  overflow: hidden;
}
@media (min-width: 768px) {
  .nj-studio-stage-wrap {
    min-height: 640px;
    padding: 2rem;
  }
}

.nj-studio-main-img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nj-studio-main-img:hover {
  transform: scale(1.01);
}

/* Vertical Thumbnails Column inside stage (right edge) */
.nj-studio-vertical-thumbs {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 80%;
  overflow-y: auto;
  padding: 4px;
  z-index: 10;
}
@media (max-width: 640px) {
  .nj-studio-vertical-thumbs {
    position: static;
    transform: none;
    flex-direction: row;
    margin-top: 1rem;
    overflow-x: auto;
    justify-content: center;
  }
}

.nj-studio-vthumb-btn {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #000;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.nj-studio-vthumb-btn.wallpaper-mode {
  width: 48px;
  height: 72px;
}
.nj-studio-vthumb-btn:hover {
  border-color: rgba(255, 23, 68, 0.6);
  transform: scale(1.08);
}
.nj-studio-vthumb-btn.active {
  border-color: #ff1744 !important;
  box-shadow: 0 0 14px rgba(255, 23, 68, 0.6);
  transform: scale(1.08);
}
.nj-studio-vthumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Right Studio Inspector Sidebar */
.nj-studio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .nj-studio-sidebar {
    position: sticky;
    top: 5.5rem;
    max-height: calc(100vh - 6.5rem);
    overflow-y: auto;
    padding-right: 6px;
  }
}

/* Author Row */
.nj-studio-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nj-studio-author-info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nj-studio-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255, 23, 68, 0.4);
}
.nj-studio-author-name {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 4px;
}
.nj-studio-model-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-family: monospace;
}

/* Action buttons row */
.nj-studio-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nj-studio-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nj-studio-action-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Prompt Box */
.nj-studio-prompt-card {
  background: rgba(14, 18, 28, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nj-studio-prompt-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}
.nj-studio-prompt-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #f1f5f9;
  margin: 0;
  word-break: break-word;
  white-space: pre-wrap;
}

/* More Like This (2-column mini grid in sidebar) */
.nj-studio-more-heading {
  font-family: var(--nj-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 0.5rem 0 0.25rem;
}
.nj-studio-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.nj-studio-more-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c101a;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, border-color 0.2s;
}
.nj-studio-more-item.wallpaper-mode {
  aspect-ratio: 9 / 16;
}
.nj-studio-more-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 23, 68, 0.5);
}
.nj-studio-more-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nj-studio-more-title {
  position: absolute;
  inset-x: 0;
  bottom: 0;
  padding: 6px 8px;
  background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, transparent 100%);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sticky Bottom Action Buttons */
.nj-studio-bottom-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 0.5rem;
}
.nj-studio-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ff1744;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(255, 23, 68, 0.4);
  transition: all 0.2s ease;
}
.nj-studio-btn-primary:hover {
  background: #ff2a55;
  transform: translateY(-1px);
}
.nj-studio-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.nj-studio-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}


/* ==========================================================================
   NINEJOE STUDIO & PRODIGY EDITORIAL DESIGN SYSTEM (v20260904_studio)
   Matches media_1788524370120.png & media_1788524653316.png
   ========================================================================== */

/* Studio Media Viewer Elements */
.nj-studio-viewer {
  max-width: 1560px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 5rem;
  min-height: calc(100vh - 80px);
}

.nj-studio-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 12px;
}

.nj-studio-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.nj-studio-back-link:hover {
  color: #ff1744;
  transform: translateX(-3px);
}

.nj-studio-top-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nj-studio-pill-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.04em;
}

.nj-studio-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.nj-studio-icon-btn:hover {
  background: rgba(255, 23, 68, 0.2);
  border-color: #ff1744;
  transform: translateY(-2px);
}

/* Studio 2-Column Layout */
.nj-studio-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .nj-studio-layout {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 2.25rem;
  }
}
@media (min-width: 1360px) {
  .nj-studio-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 2.75rem;
  }
}

/* Stage & Art Display */
.nj-studio-stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 30%, rgba(26, 35, 50, 0.5), rgba(4, 6, 11, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem 1.5rem;
  min-height: 540px;
  box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
@media (min-width: 768px) {
  .nj-studio-stage-wrap {
    min-height: 680px;
    padding: 2.5rem;
  }
}

.nj-studio-art-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nj-studio-main-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.2);
  cursor: zoom-in;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nj-studio-main-img.wallpaper-mode {
  aspect-ratio: 9/16;
  max-height: 76vh;
  width: auto;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.08);
}
.nj-studio-main-img:hover {
  transform: scale(1.015);
}

/* Vertical Thumbnails Column */
.nj-studio-vertical-thumbs {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 80%;
  overflow-y: auto;
  padding: 6px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
@media (max-width: 768px) {
  .nj-studio-vertical-thumbs {
    position: static;
    transform: none;
    flex-direction: row;
    margin-top: 1.25rem;
    overflow-x: auto;
    width: 100%;
    justify-content: center;
  }
}

.nj-studio-vthumb-btn {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: #000;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.nj-studio-vthumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.nj-studio-vthumb-btn:hover {
  border-color: #ff1744;
  transform: scale(1.08);
}
.nj-studio-vthumb-btn.active {
  border-color: #ffffff !important;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.6);
  transform: scale(1.1);
}

/* Right Studio Inspector Sidebar */
.nj-studio-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(13, 17, 26, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}
@media (min-width: 1024px) {
  .nj-studio-sidebar {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
  }
}

/* Creator Profile Card */
.nj-studio-creator-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nj-studio-creator-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nj-studio-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 23, 68, 0.4);
}
.nj-studio-creator-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nj-studio-check-badge {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ff1744;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}
.nj-studio-creator-handle {
  font-size: 12px;
  color: #64748b;
  font-family: monospace;
}
.nj-studio-model-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  white-space: nowrap;
}

/* Action / Engagement Row */
.nj-studio-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nj-studio-pill-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.nj-studio-pill-action:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}
.nj-studio-pill-action.active {
  background: rgba(255, 23, 68, 0.15);
  border-color: rgba(255, 23, 68, 0.4);
  color: #ff1744;
}

/* Information & Prompt Box */
.nj-studio-info-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nj-studio-title {
  font-family: var(--nj-font-heading, 'Space Grotesk', system-ui, sans-serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
}
.nj-studio-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #94a3b8;
  margin: 0;
}
.nj-studio-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.nj-studio-tag-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

/* Prompt Box */
.nj-studio-prompt-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nj-studio-prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nj-studio-prompt-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #64748b;
}
.nj-studio-prompt-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #ff1744;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.nj-studio-prompt-copy-btn:hover {
  text-decoration: underline;
}
.nj-studio-prompt-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: #e2e8f0;
  word-break: break-word;
  white-space: pre-wrap;
  max-height: 200px;
  overflow-y: auto;
}

/* "More like this" 2-Column Grid (Fills Sidebar Vertically - No Empty Gap!) */
.nj-studio-more-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.nj-studio-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nj-studio-more-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.nj-studio-more-link {
  font-size: 12px;
  color: #ff1744;
  text-decoration: none;
  font-weight: 600;
}
.nj-studio-more-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.nj-studio-more-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1/1;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s ease;
}
.nj-studio-more-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.nj-studio-more-card:hover {
  border-color: #ff1744;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.nj-studio-more-card:hover img {
  transform: scale(1.08);
}
.nj-studio-more-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nj-studio-more-card:hover .nj-studio-more-overlay {
  opacity: 1;
}
.nj-studio-more-card-title {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

/* Sticky Bottom Actions in Sidebar */
.nj-studio-bottom-actions {
  display: flex;
  gap: 10px;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: auto;
}
.nj-studio-btn-primary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  background: #ff1744;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.nj-studio-btn-primary:hover {
  background: #d50000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 23, 68, 0.4);
}
.nj-studio-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.nj-studio-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* Lightbox Modal */
.nj-studio-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 6, 11, 0.95);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.nj-studio-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.nj-studio-lightbox-close:hover {
  background: #ff1744;
  border-color: #ff1744;
}
.nj-studio-lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}
.nj-studio-lightbox-nav {
  position: absolute;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.nj-studio-lightbox-nav button {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
}

/* ==========================================================================
   PRODIGY EDITORIAL SINGLE COLUMN (Blog & Portfolio)
   Reference: media_1788524653316.png
   ========================================================================== */
.nj-prodigy-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 6rem;
}
.nj-prodigy-article.case-study {
  max-width: 860px;
}

.nj-prodigy-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.nj-prodigy-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 23, 68, 0.1);
  border: 1px solid rgba(255, 23, 68, 0.25);
  color: #ff1744;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.nj-prodigy-title {
  font-family: var(--nj-font-heading, 'Space Grotesk', system-ui, sans-serif);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 1.25rem 0;
}
.nj-prodigy-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #94a3b8;
  font-size: 13px;
  font-weight: 500;
}
.nj-dot-separator {
  color: #475569;
}

.nj-prodigy-hero-wrap {
  margin-bottom: 3rem;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  background: #04060b;
}
.nj-prodigy-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

/* Editorial Body Typography */
.nj-prodigy-body {
  font-size: 17px;
  line-height: 1.85;
  color: #cbd5e1;
  margin-bottom: 4rem;
}
.nj-prodigy-body h1,
.nj-prodigy-h1 {
  font-family: var(--nj-font-heading, 'Space Grotesk', system-ui, sans-serif);
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  margin: 2.75rem 0 1rem 0;
  letter-spacing: -0.02em;
}
.nj-prodigy-body h2,
.nj-prodigy-h2 {
  font-family: var(--nj-font-heading, 'Space Grotesk', system-ui, sans-serif);
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin: 2.5rem 0 1rem 0;
  letter-spacing: -0.01em;
}
.nj-prodigy-body h3,
.nj-prodigy-h3 {
  font-family: var(--nj-font-heading, 'Space Grotesk', system-ui, sans-serif);
  font-size: 20px;
  font-weight: 600;
  color: #f1f5f9;
  margin: 2rem 0 0.75rem 0;
}
.nj-prodigy-body h4 {
  font-family: var(--nj-font-heading, 'Space Grotesk', system-ui, sans-serif);
  font-size: 17px;
  font-weight: 600;
  color: #e2e8f0;
  margin: 1.5rem 0 0.5rem 0;
}
.nj-prodigy-body p,
.nj-prodigy-p {
  margin: 0 0 1.5rem 0;
  line-height: 1.85;
}
.nj-prodigy-body ul {
  margin: 0 0 1.75rem 1.25rem;
  padding-left: 0.5rem;
  list-style-type: disc;
}
.nj-prodigy-body ol {
  margin: 0 0 1.75rem 1.25rem;
  padding-left: 0.5rem;
  list-style-type: decimal;
}
.nj-prodigy-body li {
  margin-bottom: 0.5rem;
  color: #cbd5e1;
  line-height: 1.75;
}
.nj-prodigy-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin: 2.5rem 0;
}
.nj-prodigy-body a {
  color: #ff1744;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}
.nj-prodigy-body a:hover {
  color: #ff5277;
}
.nj-prodigy-body blockquote,
.nj-prodigy-quote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid #ff1744;
  background: rgba(255, 23, 68, 0.04);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 18px;
  color: #f1f5f9;
}
.nj-prodigy-body strong {
  color: #ffffff;
  font-weight: 600;
}
.nj-prodigy-body em {
  color: #e2e8f0;
}
.nj-prodigy-body figure {
  margin: 2.5rem 0;
}
.nj-prodigy-body figure img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
}
.nj-prodigy-body figcaption {
  margin-top: 0.75rem;
  font-size: 13px;
  color: #64748b;
  text-align: center;
}
.nj-prodigy-body pre {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: #02040a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow-x: auto;
}
.nj-prodigy-body code {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 14px;
  color: #38bdf8;
}

/* Reviews Dedicated 50/50 Split Grid */
.nj-review-split-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 860px) {
  .nj-review-split-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

/* Author Bio Card */
.nj-prodigy-author-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 1.5rem 1.75rem;
  background: rgba(14, 18, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}
.nj-prodigy-author-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nj-prodigy-author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255, 23, 68, 0.4);
}
.nj-prodigy-author-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}
.nj-prodigy-author-role {
  font-size: 12px;
  color: #94a3b8;
}
.nj-prodigy-share-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Prodigy CTA Banner */
.nj-prodigy-cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 2rem 2.25rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin-bottom: 5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  flex-wrap: wrap;
}

/* Related 3-Column Grid */
.nj-prodigy-related-section {
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.nj-prodigy-related-heading {
  font-family: var(--nj-font-heading, 'Space Grotesk', system-ui, sans-serif);
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 2rem 0;
  text-align: center;
}
.nj-prodigy-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .nj-prodigy-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.nj-prodigy-related-card {
  display: flex;
  flex-direction: column;
  background: rgba(14, 18, 28, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nj-prodigy-related-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 23, 68, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}
.nj-prodigy-related-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #000;
}
.nj-prodigy-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.nj-prodigy-related-card:hover .nj-prodigy-related-thumb img {
  transform: scale(1.06);
}
.nj-prodigy-related-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.nj-prodigy-related-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nj-prodigy-badge-sm {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #ff1744;
  background: rgba(255, 23, 68, 0.08);
  border: 1px solid rgba(255, 23, 68, 0.2);
  padding: 3px 8px;
  border-radius: 999px;
}
.nj-prodigy-related-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nj-prodigy-related-desc {
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Case Study Meta Bar */
.nj-case-meta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 1.25rem 1.75rem;
  background: rgba(14, 18, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  margin-bottom: 2.5rem;
}
.nj-case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nj-case-meta-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #64748b;
}
.nj-case-meta-val {
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}
.nj-case-meta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}


/* ==========================================================================
   NineJoe Formal Studio - Modern Accessible SEO Pagination Component
   ========================================================================== */
.nj-pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 3.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.nj-pagination {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nj-pagination-btn,
.nj-pagination-link,
.nj-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #a5a5a5;
  text-decoration: none;
  background: #141516;
  border: 1px solid #2a2b2c;
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
  font-family: inherit;
}

.nj-pagination-link:hover:not(.is-disabled):not(.is-active),
.nj-pagination-btn:hover:not(:disabled):not(.is-active),
.nj-page-btn:hover:not(.is-disabled):not(.is-active) {
  color: #ffffff;
  background: #1d1e20;
  border-color: #484a4d;
}

.nj-pagination-link.is-active,
.nj-pagination-btn.is-active,
.nj-page-btn.active,
.nj-pagination-link[aria-current="page"],
.nj-page-btn[aria-current="page"] {
  color: #101112 !important;
  background: #ff4655 !important;
  border-color: #ff4655 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
}

.nj-pagination-link.is-disabled,
.nj-pagination-btn:disabled,
.nj-page-btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent;
  border-color: #222324;
  color: #555555;
  box-shadow: none;
}

.nj-pagination-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 38px;
  color: #666666;
  font-size: 14px;
  user-select: none;
}

.nj-pagination-info {
  font-size: 12px;
  color: #71717a;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin: 0;
}
.nj-pagination-info strong {
  color: #b4b4b8;
  font-weight: 600;
}


/* About Page Split Layout */
.nj-about-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nj-about-split-layout {
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 2.5rem !important;
    align-items: start !important;
  }
}


/* ==========================================================================
   Contact Page - Studio Split Layout & Anti-Bot Shield (v20260904e)
   ========================================================================== */

.nj-contact-page {
  width: 100%;
  max-width: 1280px !important;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.nj-contact-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .nj-contact-split-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) !important;
    gap: 3rem !important;
  }
}

.nj-chips-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.nj-filter-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.nj-filter-chip-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nj-filter-chip-btn.is-active {
  color: #ffffff !important;
  background: rgba(255, 23, 68, 0.15) !important;
  border-color: #ff1744 !important;
  box-shadow: 0 0 14px rgba(255, 23, 68, 0.3);
}

.nj-shield-box {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .nj-shield-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.nj-shield-box.is-verified {
  border-color: rgba(34, 197, 94, 0.5) !important;
  background: rgba(34, 197, 94, 0.06) !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.12);
}

.nj-verify-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #f1f5f9;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nj-verify-trigger-btn:hover:not(:disabled) {
  border-color: #ff1744;
  background: rgba(255, 23, 68, 0.12);
  color: #ffffff;
}

.nj-verify-trigger-btn.is-success {
  border-color: #22c55e !important;
  background: rgba(34, 197, 94, 0.2) !important;
  color: #4ade80 !important;
  cursor: default;
}

.nj-contact-card {
  border-radius: 16px;
  background: rgba(18, 18, 24, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nj-contact-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.nj-copy-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nj-copy-badge-btn:hover {
  color: #ffffff;
  border-color: #ff1744;
  background: rgba(255, 23, 68, 0.1);
}


/* ==========================================================================
   Editorial Blog Detail - Full Lane & 2-Column Split Layout (v20260904e)
   ========================================================================== */

.nj-editorial-container {
  width: 100%;
  max-width: 1320px !important;
  margin: 0 auto;
  padding: 2rem 1.5rem 6rem;
}

.nj-editorial-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .nj-editorial-split {
    grid-template-columns: minmax(0, 1fr) 380px !important;
    gap: 3.5rem !important;
  }
}

.nj-editorial-main {
  min-width: 0; /* Prevents overflow */
}

.nj-editorial-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .nj-editorial-sidebar {
    position: sticky;
    top: 96px;
  }
}

.nj-sidebar-card {
  border-radius: 16px;
  background: rgba(15, 17, 26, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.nj-sidebar-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.nj-sidebar-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* Recommended Articles List in Sidebar */
.nj-recommended-item {
  display: flex;
  gap: 0.875rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.nj-recommended-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.nj-recommended-item:first-child {
  padding-top: 0;
}

.nj-recommended-item:hover .nj-recommended-title {
  color: #ff1744;
}

.nj-recommended-thumb {
  width: 76px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nj-recommended-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nj-recommended-content {
  flex: 1;
  min-width: 0;
}

.nj-recommended-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #ff1744;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}

.nj-recommended-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

/* Table of Contents in Sidebar */
.nj-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nj-toc-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: #94a3b8;
  text-decoration: none;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nj-toc-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  padding-left: 0.85rem;
}

.nj-toc-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff1744;
  shrink-0: 0;
}


.nj-recommended-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #ff1744;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
}

.nj-recommended-meta {
  font-size: 0.6875rem;
  color: #64748b;
  margin-top: 0.25rem;
}


/* ==========================================================================
   Interactive Hero Media Stage with Locked Aspect Ratio & Hover Zoom
   ========================================================================== */
.nj-cover-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background-color: #070b14;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.nj-cover-stage img.nj-cover-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nj-cover-stage:hover img.nj-cover-main-img {
  transform: scale(1.03);
}

.nj-cover-zoom-overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 18, 0.4);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.nj-cover-stage:hover .nj-cover-zoom-overlay {
  opacity: 1;
}

.nj-cover-zoom-badge {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  transform: translateY(6px);
  transition: transform 0.25s ease;
}

.nj-cover-stage:hover .nj-cover-zoom-badge {
  transform: translateY(0);
}

.nj-cover-zoom-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(11, 15, 25, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  width: 38px;
  height: 38px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  z-index: 5;
}

.nj-cover-stage:hover .nj-cover-zoom-corner {
  opacity: 1;
  transform: scale(1.08);
  background: rgba(239, 68, 68, 0.85);
  border-color: rgba(239, 68, 68, 0.5);
}

@keyframes njFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.nj-lightbox-fade {
  animation: njFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
