/* ============================================================
   Image Prompt AI â€” Prism Forge v6.1 LIGHT
   Advanced AI Platform UI Â· Soft ice canvas Â· Prism accents
   Compact cards Â· Scroll prompt boxes Â· Micro icon actions
   Authority layer â€” loads LAST. Full visual redesign.
   ============================================================ */

/* ------------------------------------------------------------
   0. TOKENS
   ------------------------------------------------------------ */
:root {
  /* Void surfaces */
  --pf-void: #F3F6FB;
  --pf-void-soft: #EAF0F8;
  --pf-surface: #FFFFFF;
  --pf-surface-2: #F8FAFC;
  --pf-elevated: #FFFFFF;
  --pf-panel: rgba(255, 255, 255, 0.94);
  --pf-glass: rgba(255, 255, 255, 0.86);

  /* Prism accents */
  --pf-cyan: #0891B2;
  --pf-cyan-dim: #0E7490;
  --pf-violet: #7C3AED;
  --pf-violet-deep: #7C3AED;
  --pf-magenta: #DB2777;
  --pf-amber: #D97706;
  --pf-emerald: #059669;
  --pf-rose: #E11D48;

  /* Text */
  --pf-text: #334155;
  --pf-text-soft: #64748B;
  --pf-text-muted: #94A3B8;
  --pf-text-heading: #0F172A;
  --pf-text-on: #FFFFFF;

  /* Borders & glows */
  --pf-border: rgba(15, 23, 42, 0.08);
  --pf-border-strong: rgba(8, 145, 178, 0.28);
  --pf-glow-cyan: 0 0 20px rgba(8, 145, 178, 0.16);
  --pf-glow-violet: 0 0 20px rgba(124, 58, 237, 0.14);
  --pf-glow-card: 0 4px 18px rgba(15, 23, 42, 0.06), 0 0 0 1px var(--pf-border);
  --pf-glow-card-hover: 0 12px 28px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(8, 145, 178, 0.28), 0 0 24px rgba(8, 145, 178, 0.08);

  /* Gradients */
  --pf-grad-prism: linear-gradient(135deg, #22D3EE 0%, #A78BFA 50%, #F472B6 100%);
  --pf-grad-btn: linear-gradient(135deg, #0891B2 0%, #7C3AED 100%);
  --pf-grad-btn-hover: linear-gradient(135deg, #22D3EE 0%, #A78BFA 100%);
  --pf-grad-surface: linear-gradient(160deg, rgba(34, 211, 238, 0.08) 0%, rgba(167, 139, 250, 0.06) 50%, rgba(244, 114, 182, 0.04) 100%);
  --pf-mesh:
    radial-gradient(ellipse 80% 50% at 12% -8%, rgba(6, 182, 212, 0.14), transparent 55%),
    radial-gradient(ellipse 60% 40% at 92% 8%, rgba(139, 92, 246, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 100%, rgba(236, 72, 153, 0.07), transparent 55%),
    radial-gradient(ellipse 40% 30% at 70% 55%, rgba(8, 145, 178, 0.06), transparent 50%);

  /* Map legacy tokens â†’ Prism Forge */
  --primary: #0891B2;
  --primary-dark: #0891B2;
  --primary-soft: rgba(34, 211, 238, 0.14);
  --secondary: #7C3AED;
  --secondary-dark: #7C3AED;
  --secondary-soft: rgba(167, 139, 250, 0.14);
  --accent: #DB2777;
  --accent-soft: rgba(244, 114, 182, 0.14);
  --accent-coral: #DB2777;
  --accent-teal: #0891B2;
  --fuchsia: #7C3AED;
  --success: #059669;
  --warning: #D97706;
  --danger: #E11D48;

  --primary-gradient: var(--pf-grad-btn);
  --primary-gradient-rev: linear-gradient(135deg, #7C3AED 0%, #0891B2 100%);
  --primary-gradient-h: var(--pf-grad-prism);
  --hero-gradient: transparent;

  --bg-body: var(--pf-void);
  --bg-card: var(--pf-surface);
  --bg-muted: var(--pf-surface-2);
  --bg-elevated: var(--pf-elevated);
  --bg-section: var(--pf-void-soft);
  --bg-warm: var(--pf-surface-2);
  --bg-deep: #0F172A;

  --text-main: var(--pf-text);
  --text-heading: var(--pf-text-heading);
  --text-sub: var(--pf-text-soft);
  --text-muted: var(--pf-text-muted);
  --text-on-primary: var(--pf-text-on);

  --glass-bg: var(--pf-glass);
  --glass-bg-strong: rgba(255, 255, 255, 0.96);
  --glass-blur: 18px;
  --glass-border: var(--pf-border);
  --glass-border-soft: rgba(148, 163, 184, 0.08);
  --glass-specular: linear-gradient(135deg, rgba(255,255,255,0.95), transparent 40%);
  --glass-shadow: var(--pf-glow-card);
  --glass-shadow-lg: var(--pf-glow-card-hover);

  --shadow-xs: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-md: var(--pf-glow-card);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 24px 60px rgba(15, 23, 42, 0.12);
  --shadow-card: var(--pf-glow-card);
  --shadow-card-hover: var(--pf-glow-card-hover);
  --ring-focus: 0 0 0 3px rgba(8, 145, 178, 0.28);
  --glow-primary: var(--pf-glow-cyan);
  --glow-teal: var(--pf-glow-cyan);
  --glow-accent: var(--pf-glow-violet);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.28s;

  --header-h: 64px;
  --bottom-nav-h: 68px;
  --container-max: 1280px;

  /* Neumorphic aliases â†’ prism (kill soft UI) */
  --neu-bg: var(--pf-void);
  --neu-bg-soft: var(--pf-void-soft);
  --neu-white: var(--pf-surface);
  --neu-surface: var(--pf-surface);
  --neu-ice: var(--pf-surface-2);
  --neu-ice-deep: var(--pf-elevated);
  --neu-gray: #CBD5E1;
  --neu-gray-soft: #E2E8F0;
  --neu-blue: var(--pf-cyan);
  --neu-blue-mid: var(--pf-cyan);
  --neu-blue-deep: var(--pf-cyan-dim);
  --neu-blue-soft: rgba(8, 145, 178, 0.16);
  --neu-mint: var(--pf-emerald);
  --neu-rose: var(--pf-magenta);
  --neu-lavender: var(--pf-violet);
  --neu-text: var(--pf-text);
  --neu-text-heading: var(--pf-text-heading);
  --neu-text-muted: var(--pf-text-muted);
  --neu-text-soft: var(--pf-text-soft);
  --neu-light: #FFFFFF;
  --neu-shadow: rgba(15, 23, 42, 0.08);
  --neu-shadow-soft: rgba(15, 23, 42, 0.06);
  --neu-shadow-deep: rgba(15, 23, 42, 0.1);
  --neu-out: var(--pf-glow-card);
  --neu-out-sm: 0 4px 14px rgba(15, 23, 42, 0.08);
  --neu-out-lg: var(--pf-glow-card-hover);
  --neu-out-xl: 0 20px 50px rgba(15, 23, 42, 0.1);
  --neu-in: inset 0 2px 8px rgba(15, 23, 42, 0.1);
  --neu-in-sm: inset 0 1px 4px rgba(15, 23, 42, 0.08);
  --neu-in-deep: inset 0 3px 12px rgba(15, 23, 42, 0.1);
}

/* ------------------------------------------------------------
   1. GLOBAL CANVAS
   ------------------------------------------------------------ */
html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body.ipa-prism,
body.ipa-neu,
body.ipa-premium-light,
body.ipa-apex,
body.ipa-nebula,
body.ipa-futura,
body {
  background: var(--pf-void) !important;
  background-image: var(--pf-mesh) !important;
  background-attachment: fixed !important;
  color: var(--pf-text) !important;
  font-family: 'Sora', 'Plus Jakarta Sans', 'Nunito', system-ui, -apple-system, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* Ambient soft mesh layer (light) */
body.ipa-prism::before {
  content: "" !important;
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  background:
    radial-gradient(circle at 18% 22%, rgba(6, 182, 212, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 82% 18%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 88%, rgba(236, 72, 153, 0.06) 0%, transparent 48%) !important;
  animation: pfMeshDrift 22s ease-in-out infinite alternate !important;
}

@keyframes pfMeshDrift {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, 1%); }
}

body.ipa-prism::after,
body.ipa-neu::after,
.ipa-mesh-stage,
.ipa-cursor-glow,
.ipa-particles,
.cm-spotlight,
.cm-progress,
#ipaScrollProgress,
.hero-bg-shapes,
.orb,
.fx-orb,
.apex-mesh {
  display: none !important;
  opacity: 0 !important;
  content: none !important;
}

.theme-toggle,
#ipaThemeToggle,
#ipaThemeToggleMobile,
.ipa-theme-toggle {
  display: none !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--pf-text-heading) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em;
  font-family: 'Space Grotesk', 'Sora', sans-serif !important;
}

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(12px, 2.5vw, 22px);
}

/* Prism scrollbar */
body::-webkit-scrollbar { width: 8px; }
body::-webkit-scrollbar-track { background: var(--pf-void); }
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22D3EE, #A78BFA);
  border-radius: 100px;
  border: 2px solid var(--pf-void);
}

::selection {
  background: rgba(8, 145, 178, 0.22);
  color: #0F172A;
}

/* ------------------------------------------------------------
   2. ICON SYSTEM â€” prism gradient pills
   ------------------------------------------------------------ */
.pf-icon,
.neu-pill-icon,
.popup-icon,
.pp-icon,
.ah-nav a i,
.mobile-bottom-nav .nav-item i,
.header-icon-btn i,
.ah-icon-btn i,
.card-overlay-btn i,
.action-btn-sm i,
.footer-social a i,
.scroll-top i,
.slider-nav-btn i {
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.neu-pill-icon,
.pf-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(8, 145, 178, 0.12), rgba(167, 139, 250, 0.12)) !important;
  box-shadow: inset 0 0 0 1px var(--pf-border-strong), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
  color: var(--pf-cyan) !important;
  font-size: 14px;
  flex-shrink: 0;
}

.neu-pill-icon:hover,
.pf-icon:hover {
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  box-shadow: var(--pf-glow-cyan) !important;
  transform: translateY(-1px);
}

/* Colored icon variants for menu */
.popup-icon {
  width: 38px !important;
  height: 38px !important;
  border-radius: 12px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08) !important;
}
.popup-icon.pi-blue {
  background: linear-gradient(145deg, rgba(34,211,238,0.25), rgba(8,145,178,0.15)) !important;
  color: var(--pf-cyan) !important;
}
.popup-icon.pi-orange {
  background: linear-gradient(145deg, rgba(251,191,36,0.25), rgba(245,158,11,0.12)) !important;
  color: var(--pf-amber) !important;
}
.popup-icon.pi-pink {
  background: linear-gradient(145deg, rgba(244,114,182,0.25), rgba(236,72,153,0.12)) !important;
  color: var(--pf-magenta) !important;
}
.popup-icon.pi-purple {
  background: linear-gradient(145deg, rgba(167,139,250,0.28), rgba(124,58,237,0.15)) !important;
  color: var(--pf-violet) !important;
}
.popup-icon.pi-green {
  background: linear-gradient(145deg, rgba(52,211,153,0.25), rgba(16,185,129,0.12)) !important;
  color: var(--pf-emerald) !important;
}

/* Premium bolt / brand icon */
.pp-icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 11px !important;
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  box-shadow: var(--pf-glow-cyan), inset 0 1px 0 rgba(255,255,255,0.25) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 13px !important;
}

/* CTA base */
.neu-cta,
.btn-hero-primary,
.btn-hero-secondary,
.action-btn-full,
.ah-gallery-btn,
.search-btn,
.btn.btn-primary,
.btn.btn-outline,
.btn-copy-sm,
.btn-face-copy,
.btn-face-view,
.view-all-pill,
.refresh-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px !important;
  border-radius: 12px !important;
  border: none !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.22s var(--ease-out) !important;
  text-decoration: none !important;
  position: relative;
}

.neu-cta--primary,
.btn-hero-primary,
.action-btn-full,
.ah-gallery-btn,
.search-btn,
.btn.btn-primary,
.btn-copy-sm,
.btn-face-copy,
.view-all-pill {
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.35), inset 0 1px 0 rgba(255,255,255,0.2) !important;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.neu-cta--primary:hover,
.btn-hero-primary:hover,
.action-btn-full:hover,
.ah-gallery-btn:hover,
.btn.btn-primary:hover {
  background: var(--pf-grad-btn-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.4), 0 0 0 1px rgba(8,145,178,0.24) !important;
}

.neu-cta--primary:active,
.btn-hero-primary:active,
.action-btn-full:active,
.ah-gallery-btn:active,
.search-btn:active {
  transform: translateY(0) scale(0.98) !important;
}

.neu-cta--secondary,
.btn-hero-secondary,
.btn.btn-outline,
.btn-face-view,
.refresh-pill {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--pf-text) !important;
  box-shadow: inset 0 0 0 1px var(--pf-border-strong), 0 4px 14px rgba(15, 23, 42, 0.07) !important;
}

.neu-cta--secondary:hover,
.btn-hero-secondary:hover,
.btn.btn-outline:hover {
  color: var(--pf-cyan) !important;
  box-shadow: inset 0 0 0 1px var(--pf-cyan), var(--pf-glow-cyan) !important;
  transform: translateY(-1px) !important;
}

.neu-accent-text,
.hero-title .fx-grad-text {
  background: var(--pf-grad-prism) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: transparent !important;
}

/* ------------------------------------------------------------
   3. HEADER â€” compact crystal bar
   ------------------------------------------------------------ */
.advanced-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 10px 14px 0 !important;
  pointer-events: none;
  transition: padding 0.3s var(--ease-out) !important;
}

.advanced-header .ah-container {
  pointer-events: auto;
  max-width: 1240px;
  margin: 0 auto;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  padding: 8px 12px 8px 14px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.4) !important;
  border: 1px solid var(--pf-border) !important;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  overflow: visible !important;
}

.advanced-header .ah-container::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  left: 12%;
  right: 12%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8,145,178,0.35), rgba(167,139,250,0.5), transparent) !important;
  opacity: 1 !important;
  pointer-events: none;
}

.advanced-header.scrolled {
  padding: 6px 12px 0 !important;
}

.advanced-header.scrolled .ah-container {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: rgba(34, 211, 238, 0.18) !important;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.1) !important;
  border-radius: 14px !important;
}

.ah-brand a,
.ipa-brand-link,
.logo {
  display: flex !important;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--pf-text-heading) !important;
  letter-spacing: -0.02em;
  font-family: 'Space Grotesk', sans-serif !important;
}

.ipa-brand-icon,
.ah-brand img,
.custom-logo {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--pf-border-strong), var(--pf-glow-cyan);
  background: var(--pf-surface);
}

.ipa-brand-icon--fallback {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pf-grad-btn);
  box-shadow: var(--pf-glow-cyan);
  color: #fff;
  font-size: 13px;
}

.ah-nav {
  display: flex !important;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.ah-nav a {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: var(--pf-text-soft) !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: all 0.22s var(--ease-out) !important;
}

.ah-nav a i {
  width: 26px !important;
  height: 26px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 11px !important;
  background: rgba(8, 145, 178, 0.1) !important;
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.12) !important;
  color: var(--pf-cyan) !important;
}

.ah-nav a:hover {
  color: var(--pf-cyan) !important;
  background: rgba(8, 145, 178, 0.08) !important;
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.16) !important;
}

.ah-nav a.active,
.ah-nav a.current-menu-item,
.ah-nav .current-menu-item > a {
  color: #fff !important;
  background: linear-gradient(135deg, rgba(8,145,178,0.14), rgba(167,139,250,0.16)) !important;
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.28) !important;
}

.ah-nav a.active i,
.ah-nav a.current-menu-item i {
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  box-shadow: var(--pf-glow-cyan) !important;
}

.ah-actions {
  display: flex !important;
  align-items: center;
  gap: 6px;
}

.ah-search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.95) !important;
  box-shadow: inset 0 0 0 1px var(--pf-border) !important;
  border: none;
  min-width: 140px;
  transition: box-shadow 0.25s ease;
}

.ah-search-pill:focus-within {
  box-shadow: inset 0 0 0 1px var(--pf-cyan), var(--ring-focus) !important;
}

.ah-search-pill i { color: var(--pf-cyan); font-size: 12px; }
.ah-search-pill input {
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--pf-text-heading) !important;
  width: 100%;
  font-family: inherit;
}
.ah-search-pill input::placeholder { color: var(--pf-text-muted); }

.ah-icon-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: none;
  background: rgba(8, 145, 178, 0.08) !important;
  color: var(--pf-text-soft) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--pf-border) !important;
  transition: all 0.22s var(--ease-out);
  position: relative;
  font-size: 13px;
}

.ah-icon-btn:hover {
  color: var(--pf-cyan) !important;
  background: rgba(8, 145, 178, 0.12) !important;
  box-shadow: inset 0 0 0 1px var(--pf-border-strong), var(--pf-glow-cyan) !important;
}

.ah-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  font-size: 9px !important;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.5);
}

.ah-gallery-btn {
  padding: 8px 14px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  white-space: nowrap;
}

/* Mobile header */
.mobile-header-modern,
.mobile-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(18px) !important;
  -webkit-backdrop-filter: blur(18px) !important;
  border-bottom: 1px solid var(--pf-border) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08) !important;
  padding: env(safe-area-inset-top, 0) 0 0 !important;
}

.mobile-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  min-height: 52px;
}

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

.header-icon-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: none !important;
  background: rgba(8, 145, 178, 0.08) !important;
  color: var(--pf-text-soft) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--pf-border) !important;
  font-size: 14px;
  text-decoration: none;
  position: relative;
}

.header-icon-btn:hover {
  color: var(--pf-cyan) !important;
  background: rgba(8, 145, 178, 0.12) !important;
}

/* Menu overlay */
.menu-overlay-popup {
  background: rgba(15, 23, 42, 0.35) !important;
  backdrop-filter: blur(8px) !important;
}

.menu-overlay-popup .popup-card {
  background: var(--pf-surface) !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: 20px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(34,211,238,0.1) !important;
  color: var(--pf-text) !important;
}

.popup-header {
  border-bottom: 1px solid var(--pf-border) !important;
  padding: 14px 16px !important;
}

.popup-title {
  font-weight: 700 !important;
  color: var(--pf-text-heading) !important;
  font-size: 15px !important;
}

.popup-close {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: none;
  background: rgba(251, 113, 133, 0.12) !important;
  color: var(--pf-rose) !important;
  font-size: 18px;
  cursor: pointer;
}

.popup-item {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 11px 14px !important;
  border-radius: 12px !important;
  color: var(--pf-text) !important;
  background: transparent !important;
  transition: background 0.2s ease;
  border: none;
  text-align: left;
}

.popup-item:hover {
  background: rgba(8, 145, 178, 0.08) !important;
}

.popup-arrow {
  margin-left: auto;
  color: var(--pf-text-muted) !important;
  font-size: 11px;
}

/* ------------------------------------------------------------
   4. HERO â€” compact
   ------------------------------------------------------------ */
main#main-content,
#main-content {
  padding-top: 88px !important;
  min-height: 60vh;
}

.hero,
.ipa-hero,
.neu-hero {
  text-align: center;
  padding: 28px 16px 20px !important;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.stats-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.premium-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px !important;
  border-radius: 100px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--pf-border) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.04) !important;
  color: var(--pf-text) !important;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.premium-pill:hover {
  border-color: var(--pf-border-strong) !important;
  box-shadow: var(--pf-glow-cyan) !important;
  transform: translateY(-1px);
}

.pp-text {
  font-size: 12px !important;
  font-weight: 600;
  color: var(--pf-text-soft) !important;
  text-align: left;
  line-height: 1.25;
}

.pp-count {
  display: block;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--pf-text-heading) !important;
  font-family: 'Space Grotesk', sans-serif !important;
  background: var(--pf-grad-prism);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pp-arrow {
  color: var(--pf-cyan) !important;
  font-size: 12px;
}

.hero-title {
  font-size: clamp(1.55rem, 4.2vw, 2.45rem) !important;
  line-height: 1.15 !important;
  margin: 0 0 12px !important;
  font-weight: 700 !important;
  color: var(--pf-text-heading) !important;
}

.hero-subtitle {
  font-size: clamp(0.88rem, 1.8vw, 1.02rem) !important;
  color: var(--pf-text-soft) !important;
  line-height: 1.55 !important;
  max-width: 560px;
  margin: 0 auto 18px !important;
  font-weight: 400 !important;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 18px;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 11px 18px !important;
  font-size: 13px !important;
  border-radius: 12px !important;
}

.search-wrapper {
  max-width: 520px;
  margin: 0 auto 14px;
}

.search-wrapper form,
#searchForm {
  display: flex !important;
  align-items: center;
  gap: 0;
  padding: 5px 5px 5px 16px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid var(--pf-border) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255,255,255,0.04) !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-wrapper form:focus-within,
#searchForm:focus-within {
  border-color: rgba(34, 211, 238, 0.4) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08), 0 0 0 3px rgba(8,145,178,0.12) !important;
}

.search-input,
#ipa-search {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  font-size: 13.5px !important;
  font-weight: 500;
  color: var(--pf-text-heading) !important;
  padding: 10px 8px !important;
  font-family: inherit;
  min-width: 0;
}

.search-input::placeholder { color: var(--pf-text-muted); }

.search-btn {
  width: 42px !important;
  height: 42px !important;
  padding: 0 !important;
  border-radius: 11px !important;
  flex-shrink: 0;
}

.neu-utility-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.neu-utility-nav a {
  display: inline-flex;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--pf-text-soft) !important;
  background: rgba(248, 250, 252, 0.95) !important;
  border: 1px solid var(--pf-border) !important;
  transition: all 0.2s ease;
}

.neu-utility-nav a:hover {
  color: var(--pf-cyan) !important;
  border-color: var(--pf-border-strong) !important;
  background: rgba(8, 145, 178, 0.1) !important;
}

/* ------------------------------------------------------------
   5. CATEGORY SLIDER
   ------------------------------------------------------------ */
.category-slider-section {
  margin: 8px 0 16px;
  padding: 0 4px;
}

.category-slider-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(8px, 2vw, 18px);
}

.category-slider {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.category-slider::-webkit-scrollbar { display: none; }

.category-slider-item {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 7px 12px !important;
  border-radius: 100px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--pf-border) !important;
  color: var(--pf-text-soft) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  white-space: nowrap;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2) !important;
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.category-slider-item i {
  font-size: 11px !important;
  color: var(--pf-cyan) !important;
}

.category-slider-item:hover {
  border-color: var(--pf-border-strong) !important;
  color: var(--pf-text-heading) !important;
  background: rgba(8, 145, 178, 0.08) !important;
}

.category-slider-item.active {
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(8, 145, 178, 0.4) !important;
}

.category-slider-item.active i {
  color: #fff !important;
}

.count-badge {
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 6px;
  border-radius: 100px;
  background: rgba(255,255,255,0.1) !important;
  color: inherit !important;
}

.category-slider-item.active .count-badge {
  background: rgba(255,255,255,0.22) !important;
}

.slider-nav-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  border: none !important;
  background: rgba(255, 255, 255, 0.96) !important;
  color: var(--pf-cyan) !important;
  box-shadow: inset 0 0 0 1px var(--pf-border), 0 4px 12px rgba(15, 23, 42, 0.06) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.slider-nav-btn:hover {
  background: rgba(8, 145, 178, 0.12) !important;
  box-shadow: var(--pf-glow-cyan) !important;
}

/* ------------------------------------------------------------
   6. TOOLBAR
   ------------------------------------------------------------ */
.ipa-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--pf-border) !important;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07) !important;
  backdrop-filter: blur(12px);
  position: relative !important;
  transform: none !important;
  opacity: 1 !important;
}

.ipa-toolbar-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--pf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ipa-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ipa-layout-toggle {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.95) !important;
  box-shadow: inset 0 0 0 1px var(--pf-border) !important;
}

.ipa-layout-toggle button {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  border: none;
  background: transparent;
  color: var(--pf-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: all 0.2s ease;
}

.ipa-layout-toggle button:hover {
  color: var(--pf-cyan);
  background: rgba(8, 145, 178, 0.1);
}

.ipa-layout-toggle button.active {
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.35);
}

.ipa-kbd-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--pf-text-muted);
}

.ipa-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(248, 250, 252, 0.92) !important;
  border: 1px solid var(--pf-border) !important;
  color: var(--pf-text-soft) !important;
  box-shadow: none !important;
}

/* ------------------------------------------------------------
   7. PROMPT CARDS â€” compact + scroll prompt + micro actions
   ------------------------------------------------------------ */
.masonry-grid,
.ipa-prompt-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)) !important;
  gap: 12px !important;
  padding-bottom: 28px;
}

.prompt-card {
  background: rgba(255, 255, 255, 0.98) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid var(--pf-border) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  transition: all 0.3s var(--ease-out) !important;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: none !important;
  isolation: isolate;
}

.prompt-card::before,
.prompt-card::after {
  display: none !important;
}

.prompt-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(8, 145, 178, 0.28) !important;
  box-shadow: var(--pf-glow-card-hover) !important;
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--pf-void-soft);
  margin: 0;
  border-radius: 13px 13px 0 0;
  box-shadow: none;
  transform: translateZ(0);
}

.card-image-wrapper img,
.card-image-wrapper .card-image-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.4s var(--ease-out);
  border-radius: 0;
}

.prompt-card:hover .card-image-wrapper img,
.prompt-card:hover .card-image-wrapper .card-image-link img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
}

.model-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  padding: 4px 9px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  color: var(--pf-cyan) !important;
  text-decoration: none !important;
  border: 1px solid rgba(8, 145, 178, 0.2) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07) !important;
}

.model-tag:hover {
  background: rgba(8, 145, 178, 0.12) !important;
  color: #fff !important;
  border-color: var(--pf-cyan) !important;
}

.model-tag--meta {
  background: rgba(8, 145, 178, 0.1) !important;
  border-color: rgba(8, 145, 178, 0.16) !important;
  box-shadow: none !important;
  padding: 3px 8px !important;
}

.card-image-wrapper > .card-image-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
  cursor: pointer;
  overflow: hidden;
}

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, rgba(15, 23, 42, 0.4) 100%) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 2;
  border-radius: 0;
  pointer-events: none;
}

.prompt-card:hover .card-image-overlay { opacity: 1; }

.card-overlay-btn {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: none;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: inset 0 0 0 1px rgba(8,145,178,0.24), 0 6px 16px rgba(15, 23, 42, 0.08) !important;
  color: var(--pf-cyan) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.2s var(--ease-out);
  transform: none !important;
}

.card-overlay-btn:hover {
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  box-shadow: var(--pf-glow-cyan) !important;
  transform: translateY(-2px) !important;
}

.card-body {
  padding: 10px 11px 11px !important;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.card-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--pf-text-heading) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-family: 'Space Grotesk', 'Sora', sans-serif !important;
}

.card-title a:hover {
  color: var(--pf-cyan) !important;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--pf-text-muted);
  font-weight: 600;
}

.card-meta-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.card-views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pf-text-muted);
}

.card-views i { color: var(--pf-violet); font-size: 10px; }
.views-label { display: none; }

.card-time {
  color: var(--pf-text-muted);
  font-size: 10px;
}

/* Scrollable prompt box on cards */
.prompt-text,
.prompt-card .prompt-text,
.card-body .prompt-text {
  font-size: 11px !important;
  line-height: 1.5 !important;
  color: var(--pf-text-soft) !important;
  display: block !important;
  -webkit-line-clamp: unset !important;
  max-height: 72px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  background: rgba(241, 245, 249, 0.95) !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
  box-shadow: inset 0 1px 4px rgba(15, 23, 42, 0.07) !important;
  font-family: 'Sora', ui-monospace, SFMono-Regular, Menlo, monospace !important;
  scrollbar-width: thin;
  scrollbar-color: var(--pf-cyan-dim) transparent;
}

.prompt-text::-webkit-scrollbar { width: 4px; }
.prompt-text::-webkit-scrollbar-track { background: transparent; }
.prompt-text::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #22D3EE, #A78BFA);
  border-radius: 4px;
}

.card-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 2px;
}

/* Micro action row: View / Like / Download / Share */
.action-row-top {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 5px !important;
}

.action-btn-sm {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  padding: 6px 2px !important;
  min-height: 44px !important;
  border-radius: 10px !important;
  border: 1px solid var(--pf-border) !important;
  background: rgba(241, 245, 249, 0.9) !important;
  color: var(--pf-text-muted) !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
  font-family: inherit;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.action-btn-sm i {
  font-size: 13px !important;
  color: var(--pf-cyan) !important;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(8, 145, 178, 0.1);
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.12);
}

.action-btn-sm .action-label {
  font-size: 9px !important;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.action-btn-sm:hover {
  color: var(--pf-text-heading) !important;
  border-color: rgba(8, 145, 178, 0.28) !important;
  background: rgba(8, 145, 178, 0.08) !important;
  transform: translateY(-1px);
}

.action-btn-sm:hover i {
  background: var(--pf-grad-btn);
  color: #fff !important;
  box-shadow: var(--pf-glow-cyan);
}

.action-btn-sm:nth-child(2) i { color: var(--pf-magenta) !important; background: rgba(244, 114, 182, 0.12); box-shadow: inset 0 0 0 1px rgba(244,114,182,0.2); }
.action-btn-sm:nth-child(3) i { color: var(--pf-emerald) !important; background: rgba(52, 211, 153, 0.12); box-shadow: inset 0 0 0 1px rgba(52,211,153,0.2); }
.action-btn-sm:nth-child(4) i { color: var(--pf-violet) !important; background: rgba(167, 139, 250, 0.12); box-shadow: inset 0 0 0 1px rgba(167,139,250,0.2); }

.action-btn-sm.liked,
.btn-like.liked {
  color: var(--pf-rose) !important;
  border-color: rgba(251, 113, 133, 0.4) !important;
  background: rgba(251, 113, 133, 0.1) !important;
}

.action-btn-sm.liked i,
.btn-like.liked i {
  color: #fff !important;
  background: linear-gradient(135deg, #FB7185, #F472B6) !important;
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.45) !important;
}

/* Copy Prompt â€” full width compact CTA */
.action-btn-full {
  width: 100%;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none !important;
  cursor: pointer;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  min-height: 38px;
}

.action-btn-full i {
  font-size: 13px;
}

.action-btn-full.copied-flash {
  background: linear-gradient(135deg, #10B981, #059669) !important;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4) !important;
}

/* Dense grid layouts */
.ipa-prompt-grid[data-layout="grid3"],
body.layout-grid3 .ipa-prompt-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)) !important;
  gap: 10px !important;
}

.ipa-prompt-grid[data-layout="list"] .prompt-card,
body.layout-list .prompt-card {
  flex-direction: row !important;
  min-height: 0;
}

.ipa-prompt-grid[data-layout="list"] .card-image-wrapper,
body.layout-list .card-image-wrapper {
  width: 120px;
  min-width: 120px;
  aspect-ratio: 1;
  border-radius: 13px 0 0 13px;
}

/* ------------------------------------------------------------
   8. SINGLE PROMPT PAGE â€” compact
   ------------------------------------------------------------ */
.ipa-single-prompt {
  padding-top: 88px !important;
  padding-bottom: 40px;
  max-width: 1100px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--pf-text-muted);
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid var(--pf-border);
}

.breadcrumb a {
  color: var(--pf-cyan) !important;
  font-weight: 600;
}

.breadcrumb i {
  font-size: 9px;
  color: var(--pf-text-muted);
}

.detail-wrapper {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.image-card,
.info-card,
.face-ref-card,
.glass-card {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08) !important;
  overflow: hidden;
}

.image-card {
  padding: 0;
}

.image-wrapper {
  position: relative;
  cursor: zoom-in;
  background: var(--pf-void);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: contain;
  margin: 0 auto;
}

.model-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(8,145,178,0.24);
  color: var(--pf-cyan);
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.image-overlay-like {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(244,114,182,0.3);
  color: var(--pf-magenta);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.image-overlay-like:hover,
.image-overlay-like.liked {
  background: linear-gradient(135deg, rgba(251,113,133,0.3), rgba(244,114,182,0.25));
  color: #fff;
}

.ipa-zoom-chip {
  position: absolute;
  bottom: 10px;
  right: 10px;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid var(--pf-border);
  color: var(--pf-text-soft);
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.image-stats {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  font-size: 11px;
  color: var(--pf-text-muted);
  border-top: 1px solid var(--pf-border);
  background: rgba(241, 245, 249, 0.75);
}

.image-stats i { color: var(--pf-cyan); margin-right: 4px; }

.info-card {
  padding: 16px !important;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meta-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11.5px;
  color: var(--pf-text-muted);
  margin-bottom: 6px;
}

.meta-header i { color: var(--pf-violet); margin-right: 4px; }

.info-card .title {
  font-size: clamp(1.2rem, 2.5vw, 1.55rem) !important;
  margin: 0 0 8px !important;
  line-height: 1.25 !important;
}

.info-card .desc {
  font-size: 13px !important;
  color: var(--pf-text-soft) !important;
  line-height: 1.55 !important;
  margin: 0;
}

.stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.stat-item {
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.9) !important;
  border: 1px solid var(--pf-border) !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.stat-item:hover {
  border-color: rgba(8, 145, 178, 0.24) !important;
  background: rgba(34, 211, 238, 0.06) !important;
}

.stat-val {
  display: block;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--pf-text-heading) !important;
  font-family: 'Space Grotesk', sans-serif !important;
}

.stat-lbl {
  font-size: 10px !important;
  color: var(--pf-text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Single prompt box with scroll */
.prompt-box {
  background: rgba(248, 250, 252, 0.95) !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: 14px !important;
  padding: 12px !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03) !important;
}

.prompt-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.prompt-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--pf-cyan) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prompt-label i {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 145, 178, 0.1);
  font-size: 10px;
}

.btn-copy-sm {
  padding: 6px 12px !important;
  font-size: 11px !important;
  border-radius: 8px !important;
  min-height: 30px;
}

/* Scrollable full prompt on single page */
.prompt-box .prompt-text,
#fullPrompt {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: var(--pf-text) !important;
  max-height: 160px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 10px 12px !important;
  margin: 0 0 12px !important;
  border-radius: 10px !important;
  background: rgba(241, 245, 249, 0.9) !important;
  border: 1px solid rgba(8, 145, 178, 0.1) !important;
  font-family: 'Sora', ui-monospace, SFMono-Regular, Menlo, monospace !important;
  white-space: pre-wrap;
  word-break: break-word;
  scrollbar-width: thin;
  scrollbar-color: var(--pf-cyan-dim) transparent;
  -webkit-line-clamp: unset !important;
  display: block !important;
}

.prompt-box .prompt-text::-webkit-scrollbar,
#fullPrompt::-webkit-scrollbar { width: 5px; }
.prompt-box .prompt-text::-webkit-scrollbar-thumb,
#fullPrompt::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--pf-cyan), var(--pf-violet));
  border-radius: 4px;
}

.action-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.action-row .btn {
  padding: 10px 12px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
  min-height: 40px;
}

/* Compact micro actions on single (view-like strip) */
.ipa-micro-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.ipa-micro-actions .action-btn-sm {
  min-height: 48px !important;
  padding: 8px 4px !important;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--pf-violet) !important;
  background: rgba(167, 139, 250, 0.1) !important;
  border: 1px solid rgba(167, 139, 250, 0.22) !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.tag-pill:hover {
  background: rgba(167, 139, 250, 0.2) !important;
  color: #fff !important;
}

.face-ref-card {
  margin-top: 16px;
  padding: 14px 16px !important;
}

.face-ref-header {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--pf-text-heading) !important;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.face-ref-header i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(167,139,250,0.25), rgba(244,114,182,0.2));
  color: var(--pf-violet);
  font-size: 12px;
}

.face-ref-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-face-copy,
.btn-face-view {
  padding: 9px 14px !important;
  font-size: 12px !important;
  border-radius: 10px !important;
}

.face-hidden-content {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid var(--pf-border);
}

.face-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--pf-cyan);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.face-text {
  font-size: 12px;
  color: var(--pf-text-soft);
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid var(--pf-border);
  white-space: pre-wrap;
}

.glass-card {
  padding: 16px !important;
  margin-top: 16px;
}

.section-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--pf-text-heading) !important;
}

/* ------------------------------------------------------------
   9. FOOTER
   ------------------------------------------------------------ */
.small-footer,
.premium-footer,
.site-footer {
  background: rgba(255, 255, 255, 0.98) !important;
  border-top: 1px solid var(--pf-border) !important;
  padding: 32px 16px 100px !important;
  margin-top: 24px;
  box-shadow: none !important;
}

.footer-wrapper,
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-brand-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--pf-text-heading) !important;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif !important;
}

.footer-brand-icon {
  width: 36px !important;
  height: 36px !important;
  border-radius: 11px !important;
  object-fit: cover;
}

.footer-brand-icon--fallback {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  box-shadow: var(--pf-glow-cyan);
  font-size: 14px;
}

.footer-copy {
  font-size: 12px !important;
  color: var(--pf-text-muted) !important;
  line-height: 1.55;
  margin: 0 0 12px;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 145, 178, 0.08) !important;
  color: var(--pf-cyan) !important;
  border: 1px solid var(--pf-border) !important;
  font-size: 13px;
  transition: all 0.2s ease;
}

.footer-social a:hover {
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  box-shadow: var(--pf-glow-cyan);
  border-color: transparent !important;
}

.footer-col-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pf-text-heading) !important;
  margin: 0 0 10px !important;
}

.footer-links-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links-compact a {
  font-size: 12.5px !important;
  color: var(--pf-text-soft) !important;
  padding: 3px 0;
  transition: color 0.2s ease;
}

.footer-links-compact a:hover {
  color: var(--pf-cyan) !important;
}

/* ------------------------------------------------------------
   10. MOBILE BOTTOM NAV â€” new icon design
   ------------------------------------------------------------ */
.mobile-bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 999 !important;
  display: flex !important;
  align-items: flex-end;
  justify-content: space-around;
  gap: 2px;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  backdrop-filter: blur(20px) saturate(1.3) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.3) !important;
  border-top: 1px solid var(--pf-border) !important;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.08) !important;
  border-radius: 0 !important;
}

.mobile-bottom-nav .nav-item {
  flex: 1;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 4px !important;
  border: none !important;
  background: transparent !important;
  color: var(--pf-text-muted) !important;
  font-size: 9.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  cursor: pointer;
  font-family: inherit;
  border-radius: 10px;
  transition: color 0.2s ease;
  min-width: 0;
}

.mobile-bottom-nav .nav-item i {
  width: 32px !important;
  height: 28px !important;
  border-radius: 10px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 14px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
  transition: all 0.22s ease;
}

.mobile-bottom-nav .nav-item.active {
  color: var(--pf-cyan) !important;
}

.mobile-bottom-nav .nav-item.active i {
  background: linear-gradient(135deg, rgba(8,145,178,0.16), rgba(167,139,250,0.18)) !important;
  color: var(--pf-cyan) !important;
  box-shadow: inset 0 0 0 1px rgba(8,145,178,0.28), 0 0 16px rgba(8,145,178,0.16) !important;
}

.nav-gallery-wrapper {
  position: relative;
  top: -14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.nav-gallery-btn {
  width: 50px !important;
  height: 50px !important;
  border-radius: 16px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(8, 145, 178, 0.45), 0 0 0 3px rgba(255, 255, 255, 0.95) !important;
  font-size: 18px !important;
  text-decoration: none !important;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-gallery-btn:hover,
.nav-gallery-btn.active {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 28px rgba(34, 211, 238, 0.5), 0 0 0 3px rgba(255, 255, 255, 0.95) !important;
}

.nav-gallery-btn i {
  color: #fff !important;
  background: none !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
}

.gallery-text {
  font-size: 9.5px !important;
  font-weight: 700;
  color: var(--pf-text-muted);
}

.play-mini-glow {
  position: absolute;
  inset: -4px;
  border-radius: 18px;
  background: var(--pf-grad-prism);
  opacity: 0.35;
  filter: blur(8px);
  z-index: -1;
  animation: pfPulse 2.8s ease-in-out infinite;
}

@keyframes pfPulse {
  0%, 100% { opacity: 0.25; transform: scale(0.95); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

/* ------------------------------------------------------------
   11. FEATURE STRIP / CHIPS / TAGS / PAGINATION
   ------------------------------------------------------------ */
.neu-feature-strip,
.apex-feature-strip,
.ipa-feature-strip-bottom {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 20px 0 12px;
  padding: 0;
}

.neu-feature-chip,
.apex-feature-chip {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--pf-border) !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06) !important;
}

.neu-feature-chip i,
.apex-feature-chip i {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  background: linear-gradient(145deg, rgba(8,145,178,0.14), rgba(167,139,250,0.14));
  color: var(--pf-cyan);
  box-shadow: inset 0 0 0 1px rgba(8,145,178,0.16);
}

.neu-feature-chip strong,
.apex-feature-chip strong {
  display: block;
  font-size: 12.5px;
  color: var(--pf-text-heading) !important;
  margin-bottom: 2px;
}

.neu-feature-chip span,
.apex-feature-chip span {
  font-size: 11px;
  color: var(--pf-text-muted) !important;
  line-height: 1.4;
}

.popular-tags,
.ipa-popular-tags {
  margin: 16px 0;
}

.ipa-pagination,
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 16px 0 24px;
}

.ipa-pagination a,
.ipa-pagination span,
.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid var(--pf-border) !important;
  color: var(--pf-text-soft) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

.ipa-pagination a:hover,
.pagination a:hover {
  color: var(--pf-cyan) !important;
  border-color: var(--pf-border-strong) !important;
}

.ipa-pagination .current,
.ipa-pagination span.current,
.pagination .current {
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 14px rgba(8,145,178,0.35) !important;
}

/* ------------------------------------------------------------
   12. MODALS / CMD / FAV / TOAST / SCROLL
   ------------------------------------------------------------ */
.custom-sort-modal,
.ipa-cmd-panel,
.ipa-fav-panel {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: 18px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(34,211,238,0.1) !important;
  color: var(--pf-text) !important;
  backdrop-filter: blur(20px);
}

.custom-sort-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1002;
  width: min(360px, 92vw);
  padding: 0;
  overflow: hidden;
}

.sort-header,
.ipa-fav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pf-border);
}

.sort-header h3,
.ipa-fav-header h3 {
  margin: 0 !important;
  font-size: 15px !important;
}

.sort-option-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: var(--pf-text-soft) !important;
  border-bottom: 1px solid rgba(148,163,184,0.06);
  transition: background 0.2s ease;
}

.sort-option-item:hover,
.sort-option-item.active {
  background: rgba(8, 145, 178, 0.08) !important;
  color: var(--pf-cyan) !important;
}

.sort-icon-wrapper i {
  color: var(--pf-cyan);
  margin-right: 8px;
}

.ipa-cmd-overlay,
.ipa-fav-overlay {
  background: rgba(15, 23, 42, 0.32) !important;
  backdrop-filter: blur(6px);
}

.ipa-cmd-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pf-border);
}

.ipa-cmd-input-wrap i { color: var(--pf-cyan); }

.ipa-cmd-input-wrap input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  color: var(--pf-text-heading) !important;
  font-size: 15px;
  font-family: inherit;
}

.ipa-cmd-hint {
  display: flex;
  gap: 12px;
  padding: 10px 16px;
  font-size: 11px;
  color: var(--pf-text-muted);
  border-top: 1px solid var(--pf-border);
}

#toast {
  background: rgba(255, 255, 255, 0.98) !important;
  color: var(--pf-text-heading) !important;
  border: 1px solid var(--pf-border-strong) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1), var(--pf-glow-cyan) !important;
  font-size: 13px !important;
  font-weight: 600;
  padding: 12px 16px !important;
}

.scroll-top {
  width: 42px !important;
  height: 42px !important;
  border-radius: 12px !important;
  border: none !important;
  background: var(--pf-grad-btn) !important;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(8,145,178,0.4) !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  z-index: 90;
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--pf-glow-cyan) !important;
}

/* ------------------------------------------------------------
   13. BLOG CARDS / MICRO GALLERY / ADS / MISC
   ------------------------------------------------------------ */
.blog-card,
.micro-gallery-item,
.content-none,
.no-results {
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid var(--pf-border) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
  color: var(--pf-text) !important;
}

.ad-slot,
.ipa-ad-slot {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(241, 245, 249, 0.9);
  border: 1px dashed var(--pf-border);
}

/* Kill neumorphic heavy shadows leftover */
.neu-out,
.neu-in {
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07) !important;
  border: 1px solid var(--pf-border) !important;
}

/* Form elements */
input, textarea, select, button {
  font-family: inherit;
}

/* ------------------------------------------------------------
   14. RESPONSIVE
   ------------------------------------------------------------ */
@media (min-width: 768px) {
  .mobile-header,
  .mobile-header-modern,
  .mobile-bottom-nav {
    display: none !important;
  }

  .advanced-header {
    display: block !important;
  }

  main#main-content,
  #main-content {
    padding-top: 84px !important;
  }

  .small-footer,
  .premium-footer {
    padding-bottom: 40px !important;
  }
}

@media (max-width: 767px) {
  .advanced-header {
    display: none !important;
  }

  main#main-content,
  #main-content,
  .ipa-single-prompt {
    padding-top: calc(58px + env(safe-area-inset-top, 0px)) !important;
  }

  .hero,
  .ipa-hero {
    padding: 18px 12px 14px !important;
  }

  .hero-title {
    font-size: 1.4rem !important;
  }

  .masonry-grid,
  .ipa-prompt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .card-body {
    padding: 8px !important;
    gap: 6px;
  }

  .card-title {
    font-size: 11.5px !important;
  }

  .prompt-text,
  .prompt-card .prompt-text {
    max-height: 56px !important;
    font-size: 10px !important;
    padding: 6px 8px !important;
  }

  .action-btn-sm {
    min-height: 40px !important;
    padding: 5px 1px !important;
    font-size: 8px !important;
  }

  .action-btn-sm i {
    width: 22px;
    height: 22px;
    font-size: 11px !important;
    border-radius: 7px;
  }

  .action-btn-full {
    padding: 8px !important;
    font-size: 11px !important;
    min-height: 34px;
  }

  .action-label {
    font-size: 8px !important;
  }

  .detail-wrapper {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .footer-wrapper,
  .footer-inner {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .ipa-kbd-hint {
    display: none;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .masonry-grid,
  .ipa-prompt-grid {
    grid-template-columns: 1fr !important;
  }

  .action-row-top {
    gap: 4px !important;
  }
}

/* Laptop visibility failsafe overrides */
@media (min-width: 768px) {
  #main-content,
  .prompt-card,
  .hero,
  [data-aos] {
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* ------------------------------------------------------------
   15. SEARCH / ARCHIVE / 404 polish
   ------------------------------------------------------------ */
.search-results-header,
.archive-header,
.page-header {
  text-align: center;
  padding: 20px 12px 12px;
}

.search-results-header h1,
.archive-header h1,
.page-header h1 {
  font-size: clamp(1.3rem, 3vw, 1.8rem) !important;
  margin-bottom: 8px;
}

/* Related grid on single */
.related-prompts,
.ipa-related {
  margin-top: 20px;
}

/* Ensure blog-card-visual images not clipped oddly */
.blog-card-visual,
.blog-card-visual img {
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  background: var(--pf-void-soft) !important;
}

/* Override light ui-fixes leftovers on blog/gallery cards */
.blog-card,
.ipa-gallery-hero .blog-card,
.more-blog-card,
.blog-card-visual {
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid var(--pf-border) !important;
  color: var(--pf-text) !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

.blog-card-visual {
  background: var(--pf-void-soft) !important;
}

.is-pressed {
  transform: scale(0.96) !important;
  opacity: 0.92;
}

/* Micro gallery strip */
.micro-gallery,
.ipa-micro-gallery {
  margin-bottom: 12px;
}

.micro-gallery-item img {
  border-radius: 10px;
}
