:root {
  --app-bg: #090b10;
  --app-bg-2: #0f1220;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --border-glass: rgba(255, 255, 255, 0.08);
}

body.bg-app {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 10% -5%, rgba(99, 102, 241, 0.10), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(236, 72, 153, 0.08), transparent 60%),
    linear-gradient(180deg, var(--app-bg), var(--app-bg-2));
}

.bg-orb {
  position: fixed;
  width: 22rem;
  height: 22rem;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  top: -6rem;
  left: -5rem;
  background: #6d5efc;
}

.orb-2 {
  top: 10rem;
  right: -6rem;
  background: #f43f5e;
}

.glass-nav {
  background: rgba(10, 12, 20, 0.65);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
}

.glass-card {
  background: linear-gradient(180deg, var(--glass), var(--glass-strong));
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 1;
}

.brand-badge {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.letter-spacing {
  letter-spacing: .12em;
}

.bulk-bar {
  position: sticky;
  top: 72px;
  z-index: 9;
}

.gallery-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.gallery-item {
  position: relative;
}

.preview-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.preview-btn img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #11131a;
}

.select-toggle {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  z-index: 2;
  cursor: pointer;
}

.gallery-item.is-selected .select-toggle {
  background: #fff;
  border-color: #fff;
}

.gallery-item.is-selected .select-toggle::after {
  content: "✓";
  color: #000;
  font-weight: 700;
  font-size: 14px;
  line-height: 26px;
  display: grid;
  place-items: center;
}

.no-preview {
  min-height: 220px;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 6px;
  padding: 14px;
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.02);
}

.no-preview small {
  word-break: break-word;
}

.no-preview.big {
  min-height: 45vh;
}

.modal-image-frame {
  min-height: 40vh;
  max-height: 75vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-image-frame img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.form-control.bg-dark-subtle::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 767.98px) {
  .bulk-bar {
    top: 120px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-btn img {
    aspect-ratio: 1 / 1.1;
  }
}