/* ==========================================================================
   OpenPix Modern Dark Bento Design System
   STRICTLY EXTERNAL CSS - ZERO INLINE STYLES ALLOWED IN VIEWS
   ========================================================================== */

:root {
  --op-bg-dark: #07090e;
  --op-bg-card: #0e131f;
  --op-bg-card-hover: #141c2e;
  --op-bg-surface: #121826;
  --op-border-subtle: rgba(255, 255, 255, 0.08);
  --op-border-active: rgba(56, 189, 248, 0.4);
  --op-text-primary: #f8fafc;
  --op-text-secondary: #94a3b8;
  --op-text-muted: #64748b;
  --op-accent-cyan: #38bdf8;
  --op-accent-indigo: #6366f1;
  --op-accent-purple: #a855f7;
  --op-accent-emerald: #10b981;
  --op-accent-rose: #f43f5e;
  --op-glass-bg: rgba(14, 19, 31, 0.75);
  --op-glass-border: rgba(255, 255, 255, 0.12);
  --op-shadow-glow: 0 0 35px rgba(56, 189, 248, 0.15);
  --op-radius-sm: 8px;
  --op-radius-md: 14px;
  --op-radius-lg: 20px;
  --op-radius-full: 9999px;
  --op-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets & Typography */
body {
  background-color: var(--op-bg-dark);
  color: var(--op-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(56, 189, 248, 0.07) 0%, transparent 40%),
    radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
}

.main-content {
  flex: 1;
  padding-bottom: 4rem;
}

/* Container Constraint for Desktop */
.openpix-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.openpix-navbar {
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--op-border-subtle);
  padding: 0.875rem 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--op-radius-md);
  object-fit: contain;
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0;
  line-height: 1;
}

.brand-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--op-radius-full);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--op-accent-cyan);
  text-transform: uppercase;
  margin-left: 0.5rem;
}

.nav-link-custom {
  color: var(--op-text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--op-radius-full);
  transition: var(--op-transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.nav-link-custom:hover,
.nav-link-custom.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link-custom.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--op-accent-cyan);
}

/* Language Switcher */
.lang-btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--op-radius-full);
  border: 1px solid var(--op-border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--op-text-secondary);
  transition: var(--op-transition);
  text-decoration: none;
  line-height: 1.2;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.lang-btn.active {
  background: var(--op-accent-cyan);
  color: #07090e;
  border-color: var(--op-accent-cyan);
}

@media (max-width: 576px) {
  .openpix-navbar {
    padding: 0.5rem 0;
  }
  .brand-title {
    font-size: 1.15rem;
  }
  .brand-logo-img {
    width: 32px;
    height: 32px;
  }
  .nav-link-custom {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }
  .lang-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  .brand-title {
    font-size: 1.05rem;
  }
  .nav-link-custom {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }
}

/* ==========================================================================
   Bento Cards & Layout
   ========================================================================== */
.bento-card {
  background: var(--op-bg-card);
  border: 1px solid var(--op-border-subtle);
  border-radius: var(--op-radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--op-transition);
}

.bento-card-studio {
  overflow: visible;
}

.bento-card:hover {
  border-color: var(--op-border-active);
  box-shadow: var(--op-shadow-glow);
}

.bento-card-compact {
  padding: 1rem;
}

.bento-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.bento-subtitle {
  font-size: 0.85rem;
  color: var(--op-text-secondary);
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   Hero Inspiration Card
   ========================================================================== */
.hero-card {
  position: relative;
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  border: 1px solid var(--op-border-subtle);
  background: var(--op-bg-surface);
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.hero-card:hover .hero-image {
  transform: scale(1.03);
}

.hero-gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 9, 14, 0.2) 0%, rgba(7, 9, 14, 0.5) 40%, rgba(7, 9, 14, 0.95) 100%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 1.5rem;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: var(--op-accent-cyan);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.75rem;
  border-radius: var(--op-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.hero-prompt-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Prompt Studio Form & Controls
   ========================================================================== */
.prompt-textarea-box {
  display: flex;
  flex-direction: column;
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--op-border-subtle);
  border-radius: var(--op-radius-md);
  overflow: hidden;
  transition: var(--op-transition);
  margin-bottom: 1.25rem;
}

.prompt-textarea-box:focus-within {
  border-color: var(--op-accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.prompt-textarea {
  width: 100%;
  min-height: 110px;
  background: transparent;
  border: none;
  border-radius: 0;
  color: #fff;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: none;
  outline: none;
  flex: 1;
}

.prompt-textarea:focus {
  outline: none;
  background: rgba(7, 9, 14, 0.25);
}

.prompt-textarea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
  color: var(--op-text-muted);
}

.prompt-footer-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.prompt-footer-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

/* Integrated Dropdowns (Matching Bild 4 Reference) */
.prompt-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.prompt-pill-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--op-radius-full);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--op-transition);
  outline: none;
  white-space: nowrap;
}

.prompt-pill-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.prompt-pill-btn:focus {
  border-color: var(--op-accent-cyan);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.25);
}

.prompt-pill-arrow {
  font-size: 0.65rem;
  color: var(--op-text-muted);
  transition: transform 0.2s ease;
}

.prompt-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  bottom: auto;
  left: 0;
  background: #0d1322;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.35rem;
  min-width: 185px;
  max-height: 280px;
  overflow-y: auto;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75), 0 0 20px rgba(56, 189, 248, 0.15);
  z-index: 1050;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.prompt-dropdown-menu::-webkit-scrollbar {
  width: 5px;
}

.prompt-dropdown-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.prompt-dropdown-menu.show {
  display: block;
}

.prompt-dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: var(--op-transition);
  white-space: nowrap;
}

.prompt-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.prompt-dropdown-item.active {
  background: rgba(56, 189, 248, 0.15);
  color: var(--op-accent-cyan);
  font-weight: 700;
}

.prompt-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.25rem 0;
}

.btn-clear-prompt {
  pointer-events: auto;
  background: transparent;
  border: none;
  color: var(--op-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.5rem;
  border-radius: var(--op-radius-sm);
  transition: var(--op-transition);
}

.btn-clear-prompt:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}


/* Style Direction Pills */
.style-scroll-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.style-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--op-border-subtle);
  border-radius: var(--op-radius-full);
  color: var(--op-text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--op-transition);
}

.style-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.style-pill.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.2));
  border-color: var(--op-accent-cyan);
  color: #fff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

.btn-more-styles {
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed var(--op-border-subtle);
}

/* Aspect Ratio Selector */
.ratio-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .ratio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ratio-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--op-border-subtle);
  border-radius: var(--op-radius-md);
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--op-transition);
  color: var(--op-text-secondary);
}

.ratio-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.ratio-btn.active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--op-accent-cyan);
  color: var(--op-accent-cyan);
}

.ratio-icon-preview {
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 3px;
  margin-bottom: 0.4rem;
}

/* Specific aspect ratio preview icons */
.ratio-icon-standard   { width: 20px; height: 15px; }
.ratio-icon-story      { width: 12px; height: 21px; }
.ratio-icon-portrait   { width: 15px; height: 20px; }
.ratio-icon-square     { width: 18px; height: 18px; }
.ratio-icon-cinematic  { width: 22px; height: 12px; }

.ratio-label {
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.ratio-sub {
  font-size: 0.65rem;
  color: var(--op-text-muted);
}

/* CTA Generate Button */
.btn-generate {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--op-accent-cyan), var(--op-accent-indigo));
  border: none;
  border-radius: var(--op-radius-full);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.35);
  transition: var(--op-transition);
}

.btn-generate:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.45);
  filter: brightness(1.08);
}

.btn-generate:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Progress / Generation Box */
.generation-progress-box {
  background: rgba(7, 9, 14, 0.75);
  border: 1px solid var(--op-border-active);
  border-radius: var(--op-radius-lg);
  padding: 2rem;
  text-align: center;
  margin-top: 1.5rem;
  display: none;
}

.generation-progress-box.visible {
  display: block;
}

.pulse-spinner {
  width: 50px;
  height: 50px;
  margin: 0 auto 1.25rem auto;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--op-accent-cyan);
  animation: spinPulse 1s linear infinite;
}

@keyframes spinPulse {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Image Aspect Ratio Classes (Zero Inline-CSS)
   ========================================================================== */
.ratio-standard  { aspect-ratio: 4 / 3; }
.ratio-story     { aspect-ratio: 9 / 16; }
.ratio-portrait  { aspect-ratio: 3 / 4; }
.ratio-square    { aspect-ratio: 1 / 1; }
.ratio-cinematic { aspect-ratio: 16 / 9; }

/* ==========================================================================
   Bento Gallery Grid & Image Cards
/* ==========================================================================
   Bento Gallery Grid & Image Cards
   ========================================================================== */
.gallery-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  background: var(--op-bg-card);
  padding: 0.65rem 1.15rem;
  border-radius: var(--op-radius-full);
  border: 1px solid var(--op-border-subtle);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.filter-pills-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.filter-pills-group::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--op-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--op-text-secondary);
  background: var(--op-bg-surface);
  border: 1px solid var(--op-border-subtle);
  text-decoration: none;
  white-space: nowrap;
  transition: var(--op-transition);
}

.filter-pill:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.filter-pill.active {
  background: var(--op-accent-indigo);
  border-color: var(--op-accent-indigo);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}

.creations-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--op-text-secondary);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.35rem 0.85rem;
  border-radius: var(--op-radius-full);
  border: 1px solid var(--op-border-subtle);
  white-space: nowrap;
}

@media (max-width: 576px) {
  .gallery-filter-bar {
    padding: 0.65rem 0.75rem;
    border-radius: var(--op-radius-lg);
    gap: 0.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .filter-pills-group {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
  }

  .creations-counter-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    padding: 0.25rem 0.65rem;
  }
}


.live-pulsing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--op-accent-cyan);
  box-shadow: 0 0 8px var(--op-accent-cyan);
  animation: bentoLivePulse 1.8s infinite ease-in-out;
}

@keyframes bentoLivePulse {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
    box-shadow: 0 0 12px var(--op-accent-cyan);
  }
}

/* Bento Masonry Multi-Column Layout (Matching React Native 2-Column Staggered Bento) */
.bento-masonry-grid {
  column-count: 4;
  column-gap: 1rem;
  width: 100%;
}

@media (max-width: 1200px) {
  .bento-masonry-grid {
    column-count: 3;
    column-gap: 0.9rem;
  }
}

@media (max-width: 768px) {
  .bento-masonry-grid {
    column-count: 2;
    column-gap: 0.65rem;
  }
}

.bento-empty-state {
  column-span: all;
  text-align: center;
  padding: 4rem 1rem;
}

/* Bento Image Tile Card (Matching BentoImageTile from kyven-free) */
.bento-tile-card,
.image-tile-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  background: #0f172a;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.bento-tile-card:hover,
.image-tile-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.5), 0 0 16px rgba(99, 102, 241, 0.15);
}

.bento-media-anchor,
.card-media-anchor {
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #0a0f1d;
}

.bento-thumbnail-img,
.card-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1);
}

.bento-tile-card:hover .bento-thumbnail-img,
.image-tile-card:hover .card-thumbnail-img {
  transform: scale(1.035);
}

/* Smooth Bottom Scrim Gradient Overlay */
.bento-scrim-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.25) 40%, rgba(15, 23, 42, 0) 100%);
  opacity: 0.85;
  transition: opacity 0.25s ease;
}

.bento-tile-card:hover .bento-scrim-gradient {
  opacity: 0.95;
}

/* Sleek Frosted Glass Watermark Badge */
.bento-watermark-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
  padding: 3px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* In-Feed Bento AdSense Card */
.bento-ad-card {
  min-height: 220px;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.bento-ad-container {
  width: 100%;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  box-sizing: border-box;
}

.watermark-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: var(--op-accent-indigo);
}

.watermark-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ==========================================================================
   Bento Compact Tile Component (Exact Mobile App Replica)
   ========================================================================== */
.bento-compact-tile {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.bento-compact-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.6), 0 0 12px rgba(99, 102, 241, 0.2);
}

.bento-compact-media {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #0f172a;
}

.bento-compact-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.bento-compact-tile:hover .bento-compact-img {
  transform: scale(1.05);
}

.bento-compact-scrim {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 45%, rgba(15, 23, 42, 0) 100%);
}

.bento-compact-watermark {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.25);
  padding: 2px 6px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 3.5px;
  z-index: 2;
}

.bento-compact-bottom-row {
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 2;
}

.bento-compact-download-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.7rem;
  color: #ffffff;
}

.bento-compact-stat {
  font-weight: 700;
  font-size: 0.7rem;
}

/* Bento Action Bar / Meta Footer */
.bento-action-bar,
.card-meta-bar {
  padding: 0.55rem 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.bento-like-group,
.vote-action-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.bento-download-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-vote-icon {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  width: 28px;
  height: 28px;
  border-radius: var(--op-radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--op-transition);
}

.btn-vote-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-vote-icon.upvote:hover,
.btn-vote-icon.upvoted {
  color: var(--op-accent-cyan);
  border-color: var(--op-accent-cyan);
}

.vote-counter-text,
.download-counter-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  min-width: 14px;
}

/* ==========================================================================
   Detail View Components
   ========================================================================== */
.detail-stage-card {
  background: var(--op-bg-card);
  border: 1px solid var(--op-border-subtle);
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}

.detail-image-box {
  position: relative;
  background: #090d16;
  width: 100%;
  height: 380px;
  max-height: 380px;
  overflow: hidden;
  cursor: zoom-in;
  display: block;
}

.detail-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

.detail-image-box:hover .detail-main-img {
  transform: scale(1.02);
}

/* Detail Action Bar (Responsive Upvote / Downvote / Download / Report) */
.detail-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-radius: var(--op-radius-md);
  background: rgba(14, 19, 31, 0.75);
  border: 1px solid var(--op-border-subtle);
  margin-bottom: 1.5rem;
}

.detail-vote-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-meta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.detail-download-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--op-text-secondary);
  white-space: nowrap;
}

.btn-report-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: var(--op-accent-rose);
  padding: 0.3rem 0.75rem;
  border-radius: var(--op-radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--op-transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-report-action:hover {
  background: rgba(244, 63, 94, 0.18);
  border-color: var(--op-accent-rose);
  color: #fff;
}

@media (max-width: 576px) {
  .detail-image-box {
    height: 260px;
    max-height: 260px;
  }
  .detail-action-bar {
    padding: 0.65rem 0.85rem;
    justify-content: space-between;
  }
  .detail-meta-group {
    gap: 0.5rem;
  }
  .btn-report-action {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
  }
}

.detail-tap-fullscreen-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(7, 9, 14, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--op-border-subtle);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--op-radius-full);
  pointer-events: none;
}

/* Obfuscated Prompt Container (Rule 4.3) */
.obfuscated-prompt-box {
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--op-border-subtle);
  border-radius: var(--op-radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.prompt-first-line {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.prompt-blur-overlay {
  position: relative;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--op-radius-sm);
  overflow: hidden;
}

.prompt-blur-content {
  filter: blur(8px);
  -webkit-filter: blur(8px);
  opacity: 0.45;
  user-select: none;
}

.prompt-lock-notice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(14, 19, 31, 0.9);
  border: 1px solid var(--op-border-subtle);
  padding: 0.35rem 0.85rem;
  border-radius: var(--op-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--op-accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
}

/* Specs Table List */
.specs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.spec-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--op-border-subtle);
  border-radius: var(--op-radius-sm);
  padding: 0.6rem 0.85rem;
}

.spec-key {
  font-size: 0.75rem;
  color: var(--op-text-muted);
  margin-bottom: 0.15rem;
}

.spec-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

/* ==========================================================================
   Modals & Lightbox (Bootstrap Overrides without inline styles)
   ========================================================================== */
.modal-content-dark {
  background-color: var(--op-bg-card);
  border: 1px solid var(--op-border-active);
  border-radius: var(--op-radius-lg);
  color: var(--op-text-primary);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.modal-header-dark {
  border-bottom: 1px solid var(--op-border-subtle);
  padding: 1.25rem 1.5rem;
}

.modal-footer-dark {
  border-top: 1px solid var(--op-border-subtle);
  padding: 1rem 1.5rem;
}

.btn-close-white {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Style Option Card in Modal (Prevents text overflow) */
.style-option-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--op-border-subtle);
  border-radius: var(--op-radius-md);
  transition: var(--op-transition);
  cursor: pointer;
  overflow: hidden;
  box-sizing: border-box;
}

.style-option-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.style-option-card.active {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--op-accent-indigo);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.style-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  white-space: normal;
}

.style-card-desc {
  font-size: 0.8rem;
  font-weight: 400;
  color: #94a3b8;
  line-height: 1.4;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.lightbox-dialog {
  max-width: 90vw;
  margin: 1.75rem auto;
}

.lightbox-content {
  background: rgba(7, 9, 14, 0.95);
  border: none;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--op-radius-md);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.openpix-footer {
  background: var(--op-bg-card);
  border-top: 1px solid var(--op-border-subtle);
  padding: 2.5rem 0 2rem 0;
  font-size: 0.85rem;
  color: var(--op-text-muted);
}


/* Fixierter Banner am unteren Bildschirmrand */
.openpix-ad-banner-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    background-color: rgba(18, 18, 18, 0.95);
    border-top: 1px solid #2a2a2a;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
    padding: 6px 0;
}

.openpix-ad-banner-inner {
    width: 100%;
    max-width: 970px;
    text-align: center;
}

/* Wichtig: Verhindert, dass der Banner den unteren Seiteninhalt verdeckt */
body {
    padding-bottom: 90px;
}