/* ============================================================================
   RANGE CRAFT — COMMUNITY DATABASE / MARKETPLACE (database.html, database-pack.html)
   Same tokens as the home page: beige hero, dark zone, navy #3563c9,
   ice blue #93C5FD, slate #94A3B8, dark glass cards. All classes prefixed "db-".
   ============================================================================ */
:root {
  --db-navy: #3563c9;
  --db-navy-hover: #2c4a8f;
  --db-ice: #93C5FD;
  --db-slate: #94A3B8;
  --db-ink: #0A0E1A;
  --db-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 45%, rgba(255, 255, 255, 0.06) 100%);
  --db-glass-border: rgba(255, 255, 255, 0.14);
  --db-panel: #101426;
}

html.db-lock, body.db-lock { overflow: hidden !important; overscroll-behavior: none; }
.db-modal, .db-modal-dialog, .db-drawer { overscroll-behavior: contain; }

/* ---------- Demo banner ---------- */
.db-demo-banner {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 22px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-size: 13px;
  color: #5A657D;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(10, 14, 26, 0.08);
}
.db-demo-banner b {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: #FFFFFF;
  background: var(--db-ink);
}

/* ---------- Hero ---------- */
.db-hero .rc-container { text-align: center; }
.db-hero .hero-subtitle { max-width: 680px; margin-left: auto; margin-right: auto; }

.db-search {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 680px;
  margin: 30px auto 0;
  padding: 7px 7px 7px 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 1px 0 #FFFFFF, 0 12px 32px rgba(10, 14, 26, 0.08);
}
.db-search svg { width: 20px; height: 20px; color: #5A657D; flex-shrink: 0; }
.db-search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--db-ink);
}
.db-search input::placeholder { color: #94A3B8; }
.db-search:focus-within { box-shadow: 0 0 0 3px rgba(53, 99, 201, 0.18), 0 12px 32px rgba(10, 14, 26, 0.08); }

.db-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.db-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border-radius: 999px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #1E293B;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.db-chip:hover { border-color: rgba(10, 14, 26, 0.14); }
.db-chip.is-on { color: #FFFFFF; background: var(--db-navy); border-color: var(--db-navy); }
.db-chip svg { width: 13px; height: 13px; }

.db-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-top: 28px;
  font-size: 14px;
  color: #5A657D;
}
.db-stats b { color: var(--db-ink); font-weight: 700; margin-right: 4px; }

.db-hero-links { margin-top: 14px; font-size: 14px; color: #5A657D; }
.db-hero-links a { color: var(--green-italic-light, #1E3A6E); font-weight: 600; }
.db-hero-links span { margin: 0 10px; opacity: 0.5; }

/* ---------- Buttons ---------- */
.db-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.db-btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.db-btn--sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.db-btn--sm svg { width: 15px; height: 15px; }
.db-btn--block { width: 100%; }
.db-btn--primary { color: #FFFFFF !important; background: var(--db-navy); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.db-btn--primary:hover { background: var(--db-navy-hover); }
.db-btn--ghost { color: #FFFFFF !important; background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); }
.db-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.db-btn--owned { color: var(--db-ice) !important; background: rgba(147, 197, 253, 0.10); border-color: rgba(147, 197, 253, 0.28); }
.db-btn--google { color: var(--db-ink) !important; background: #FFFFFF; }
.db-btn--google:hover { background: #EEF1F6; }
.db-btn--apple { color: #FFFFFF !important; background: #000000; border: 1px solid rgba(255, 255, 255, 0.28); }
.db-btn--apple:hover { background: #000000; border-color: rgba(255, 255, 255, 0.55); }
.db-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.db-social .db-btn { width: 100%; min-width: 0; }
@media (max-width: 420px) { .db-social { grid-template-columns: 1fr; } }
.db-btn:disabled { opacity: 0.7; cursor: progress; }
.db-btn:focus-visible, .db-chip:focus-visible, .db-link-btn:focus-visible { outline: 2px solid var(--db-ice); outline-offset: 2px; }

.db-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--db-ice);
  cursor: pointer;
}
.db-link-btn:hover { text-decoration: underline; }

.db-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
  cursor: pointer;
}
.db-icon-btn svg { width: 16px; height: 16px; }

.db-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  animation: db-spin 0.7s linear infinite;
}
@keyframes db-spin { to { transform: rotate(360deg); } }

/* ---------- Dark zone sections ---------- */
.db-zone .st-head { margin-bottom: 36px; }
.db-section-link { display: block; text-align: center; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--db-ice) !important; }

.db-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.db-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .db-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .db-grid, .db-grid--4 { grid-template-columns: 1fr; } }

/* ---------- Pack card (shared bits) ---------- */
.db-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }

.db-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.db-tags li {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
.db-tags--lg li { font-size: 13px; padding: 5px 12px; }

.db-creator { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; color: #CBD5E1; }
.db-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, #3563c9 0%, #1E3A6E 100%);
}
.db-avatar--lg { width: 46px; height: 46px; font-size: 15px; }
.db-verified { display: inline-flex; color: var(--db-ice); }
.db-verified svg { width: 15px; height: 15px; }
.db-rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: #CBD5E1; }
.db-rating svg { width: 14px; height: 14px; color: #FBBF24; }

.db-price { display: inline-flex; align-items: baseline; gap: 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: #FFFFFF; }
.db-price s { font-size: 14px; font-weight: 500; color: var(--db-slate); }
.db-price--free { color: var(--db-ice); }
.db-price--lg { font-size: 34px; }
.db-save {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--db-ink);
  background: var(--db-ice);
}

/* ---------- Browse: sidebar + toolbar ---------- */
.db-browse { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.db-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 20px;
  border-radius: 22px;
  background: var(--db-glass);
  border: 1px solid var(--db-glass-border);
}
.db-sidebar-head { display: none; }
.db-sidebar-foot { display: none; }
.db-fgroup { margin: 0 0 18px; padding: 0 0 16px; border: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.db-fgroup:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.db-fgroup legend {
  margin-bottom: 10px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--db-slate);
}
.db-fcheck { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: #E2E8F0; cursor: pointer; }
.db-fcheck input { width: 16px; height: 16px; accent-color: var(--db-navy); margin: 0; }
.db-fcheck span { flex: 1; }
.db-fcheck small { font-size: 12px; color: var(--db-slate); }

.db-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.db-toolbar .db-q {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.db-toolbar .db-q svg { width: 17px; height: 17px; color: var(--db-slate); flex-shrink: 0; }
.db-toolbar input, .db-toolbar select {
  font: inherit;
  font-size: 14px;
  color: #FFFFFF;
  background: transparent;
  border: 0;
  outline: 0;
}
.db-toolbar input { flex: 1; min-width: 0; }
.db-toolbar input::placeholder { color: #94A3B8; }
.db-toolbar select {
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  cursor: pointer;
}
.db-toolbar select option { color: var(--db-ink); }
.db-q:focus-within, .db-toolbar select:focus-visible { border-color: rgba(147, 197, 253, 0.5); }
.db-filter-toggle { display: none; }
.db-filter-toggle b {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 11.5px;
  line-height: 20px;
  color: var(--db-ink);
  background: var(--db-ice);
}
.db-results-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 36px; margin-bottom: 16px; }
.db-count { margin-right: 6px; font-size: 14px; font-weight: 600; color: #FFFFFF; }
.db-results-meta .db-chip { height: 30px; font-size: 12.5px; }
.db-more-wrap { text-align: center; margin-top: 26px; }

@media (max-width: 960px) {
  .db-browse { grid-template-columns: 1fr; }
  .db-filter-toggle { display: inline-flex; }
  .db-sidebar {
    position: fixed;
    inset: 0 0 0 auto;
    top: 0;
    z-index: 100050;
    width: min(360px, 92vw);
    max-height: none;
    border-radius: 0;
    background: #101426;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .db-sidebar:not(.is-open) { visibility: hidden; transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.3s; }
  .db-sidebar.is-open { transform: none; box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5); }
  .db-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .db-sidebar-head h3 { margin: 0; font-size: 18px; color: #FFFFFF; }
  .db-sidebar form { flex: 1; overflow-y: auto; padding: 18px 20px; }
  .db-sidebar-foot { display: block; padding: 14px 20px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
}
@media (max-width: 620px) {
  .db-toolbar { flex-wrap: wrap; }
  .db-toolbar .db-q { flex-basis: 100%; }
  .db-toolbar select { flex: 1; }
}

/* ---------- Empty states ---------- */
.db-empty { text-align: center; padding: 26px 10px; color: rgba(255, 255, 255, 0.7); }
.db-empty h3 { margin: 0 0 8px; font-size: 19px; color: #FFFFFF; }
.db-empty p { margin: 0 0 16px; font-size: 14.5px; }
.db-empty--wide {
  grid-column: 1 / -1;
  padding: 44px 20px;
  border-radius: 22px;
  background: var(--db-glass);
  border: 1px dashed rgba(255, 255, 255, 0.16);
}

/* ---------- Library ---------- */
.db-lib-note { margin: 0 0 16px; text-align: center; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.db-lib-note b { color: #FFFFFF; }
.db-lib-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .db-lib-grid { grid-template-columns: 1fr; } }
.db-lib-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--db-glass);
  border: 1px solid var(--db-glass-border);
}
.db-lib-item strong { display: block; font-size: 15px; }
.db-lib-item strong a { color: #FFFFFF !important; }
.db-lib-item small { font-size: 12.5px; color: var(--db-slate); }

/* ---------- Creator CTA ---------- */
.db-creator-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 40px;
  border-radius: 26px;
  color: #FFFFFF;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0) 55%),
    linear-gradient(135deg, #142A61 0%, #0E1C44 55%, #0A1433 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.db-creator-cta h2 { margin: 6px 0 12px; font-size: clamp(26px, 3vw, 36px); font-weight: 600; letter-spacing: -0.03em; color: #FFFFFF; }
.db-creator-cta p { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.db-creator-cta .st-eyebrow { font-size: 13px; color: var(--db-ice); }
.db-creator-cta ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.db-creator-cta li { display: flex; gap: 10px; font-size: 14.5px; color: rgba(255, 255, 255, 0.85); }
.db-creator-cta li svg { width: 18px; height: 18px; color: var(--db-ice); flex-shrink: 0; margin-top: 2px; }
@media (max-width: 860px) { .db-creator-cta { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Floating cart + drawer ---------- */
.db-cart-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 20px 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--db-ink);
  box-shadow: 0 14px 36px rgba(10, 14, 26, 0.35);
  cursor: pointer;
  transform: translateY(0);
  transition: background-color 0.15s ease;
}
.db-cart-fab svg { width: 20px; height: 20px; }
.db-cart-fab.has-items { background: var(--db-navy); }
.db-cart-count {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  color: var(--db-ink);
  background: #FFFFFF;
}

.db-overlay { position: fixed; inset: 0; z-index: 100040; background: rgba(8, 10, 20, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.db-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100045;
  display: flex;
  flex-direction: column;
  width: min(420px, 94vw);
  color: #FFFFFF;
  background: #101426;
  border-left: 1px solid rgba(255, 255, 255, 0.10);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}
.db-drawer:not(.is-open) { visibility: hidden; transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.32s; }
.db-drawer.is-open { transform: none; }
.db-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.db-drawer-head h2 { margin: 0; font-size: 20px; font-weight: 600; color: #FFFFFF; }
.db-drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.db-drawer-foot { padding: 18px 22px 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.db-drawer-foot:empty { display: none; }
.db-line { display: flex; justify-content: space-between; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.db-line strong { display: block; font-size: 15px; font-weight: 600; }
.db-line small { font-size: 12.5px; color: var(--db-slate); }
.db-line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-weight: 700; }
.db-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 15px; }
.db-total small { margin-left: 6px; font-size: 12px; color: var(--db-slate); }
.db-total strong { font-size: 24px; }
.db-fine { display: block; margin: 12px 0 0; font-size: 12.5px; line-height: 1.5; text-align: center; color: var(--db-slate); }
.db-fine svg { display: inline-block; width: 13px; height: 13px; margin-right: 5px; vertical-align: -2px; }
.db-fine a { color: var(--db-ice) !important; }

/* ---------- Checkout modal ---------- */
.db-modal { position: fixed; inset: 0; z-index: 100060; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 10, 20, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.db-modal[hidden] { display: none; }
.db-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 30px;
  border-radius: 24px;
  color: #FFFFFF;
  background: #101426;
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  animation: db-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.db-modal-dialog { scrollbar-width: none; -ms-overflow-style: none; }
.db-modal-dialog::-webkit-scrollbar { display: none; width: 0; height: 0; }
@keyframes db-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.db-modal-close { position: absolute; top: 18px; right: 18px; }
.db-steps { display: flex; gap: 8px; margin: 0 40px 22px 0; padding: 0; list-style: none; font-size: 12.5px; font-weight: 600; color: var(--db-slate); }
.db-steps li { display: flex; align-items: center; gap: 7px; flex: 1; }
.db-steps li + li::before { content: ''; flex: 0 0 14px; height: 1px; background: rgba(255, 255, 255, 0.18); }
.db-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11.5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.db-steps span svg { width: 12px; height: 12px; }
.db-steps .is-current { color: #FFFFFF; }
.db-steps .is-current span { background: var(--db-navy); border-color: var(--db-navy); }
.db-steps .is-done span { color: var(--db-ink); background: var(--db-ice); border-color: var(--db-ice); }
.db-co-title { margin: 0 0 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: #FFFFFF; }
.db-co-sub { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, 0.7); }
.db-co-sub b { color: #FFFFFF; }
.db-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); }
.db-tabs button { flex: 1; height: 36px; border: 0; border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--db-slate); background: transparent; cursor: pointer; }
.db-tabs button.is-active { color: #FFFFFF; background: rgba(255, 255, 255, 0.12); }
.db-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; font-size: 12px; color: #64748B; }
.db-or::before, .db-or::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.1); }
.db-field { display: block; margin-bottom: 12px; }
.db-field > span { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #CBD5E1; }
.db-field small { font-weight: 500; color: var(--db-slate); }
.db-field input, .db-field select {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font: inherit;
  font-size: 14.5px;
  color: #FFFFFF;
  background: rgba(8, 10, 20, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.10);
  outline: 0;
  box-sizing: border-box;
}
.db-field select option { color: var(--db-ink); }
.db-field input:focus, .db-field select:focus { border-color: var(--db-navy); box-shadow: 0 0 0 3px rgba(53, 99, 201, 0.25); }
.db-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.db-check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, 0.75); cursor: pointer; }
.db-check input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--db-navy); flex-shrink: 0; }
.db-check a, .db-form-error a { color: var(--db-ice) !important; }
.db-forgot { display: block; margin: -4px 0 12px auto; }
.db-form-error { margin: 8px 0 12px; padding: 10px 12px; border-radius: 10px; font-size: 13px; color: #FECACA; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); }
.db-form-error[hidden] { display: none; }
.db-form-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px; line-height: 1.5; color: #BBF7D0; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }
#db-auth-form .db-btn--primary, #db-pay-form .db-btn--primary { margin-top: 8px; }

.db-summary { margin-bottom: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); }
.db-sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.db-sum-line small { padding: 1px 7px; margin-left: 4px; border-radius: 999px; font-size: 11px; color: var(--db-ink); background: var(--db-ice); }
.db-sum-disc { color: var(--db-ice); }
.db-sum-vat { font-size: 12.5px; color: var(--db-slate); }
.db-sum-total { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.10); font-size: 15px; font-weight: 600; }
.db-sum-total strong { font-size: 20px; }
.db-promo { display: flex; gap: 8px; margin-bottom: 16px; }
.db-promo input { flex: 1; min-width: 0; height: 36px; padding: 0 14px; border-radius: 999px; font: inherit; font-size: 13.5px; color: #FFFFFF; background: rgba(8, 10, 20, 0.65); border: 1px solid rgba(255, 255, 255, 0.10); outline: 0; }
.db-methods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.db-methods legend { margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #CBD5E1; }
.db-method { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; padding: 6px 10px; border-radius: 10px; text-align: center; font-size: 12.5px; font-weight: 700; color: #0A0E1A; background: #FFFFFF; border: 2px solid transparent; cursor: pointer; opacity: 0.75; transition: opacity 0.15s ease, border-color 0.15s ease; }
.db-method:hover { opacity: 1; }
.db-method img { display: block; max-width: 100%; max-height: 22px; object-fit: contain; }
.db-method input { position: absolute; opacity: 0; pointer-events: none; }
.db-method.is-active { opacity: 1; border-color: var(--db-ice); box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25); }
.db-method:focus-within { outline: 2px solid var(--db-ice); outline-offset: 2px; }
.db-method-note { margin: 0 0 12px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; color: rgba(255, 255, 255, 0.75); background: rgba(147, 197, 253, 0.08); border: 1px solid rgba(147, 197, 253, 0.18); }
@media (max-width: 480px) {
  .db-modal { padding: 0; align-items: flex-end; }
  .db-modal-dialog { max-height: 94vh; border-radius: 24px 24px 0 0; padding: 24px 20px; }
  .db-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-steps { font-size: 11.5px; }
}

.db-success { text-align: center; }
.db-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 14px; border-radius: 50%; color: var(--db-ink); background: var(--db-ice); }
.db-success-icon svg { width: 28px; height: 28px; }
.db-success-list { display: inline-grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; text-align: left; font-size: 14px; }
.db-success-list li { display: flex; align-items: center; gap: 8px; }
.db-success-list svg { width: 16px; height: 16px; color: var(--db-ice); }
.db-success-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- Pack page ---------- */
.db-crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; font-size: 13.5px; color: #5A657D; }
.db-crumbs a { color: #5A657D; }
.db-crumbs a:hover { color: var(--db-ink); }
.db-pack-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; margin-top: 18px; font-size: 14px; color: #5A657D; }
.db-pack-meta .db-creator { color: var(--db-ink); }
.db-pack-meta .db-rating { color: var(--db-ink); }

.db-pack-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.db-pack-main { display: grid; gap: 18px; }
.db-pack-side { position: sticky; top: 96px; display: grid; gap: 18px; }
@media (max-width: 980px) { .db-pack-grid { grid-template-columns: 1fr; } .db-pack-side { position: static; order: -1; } }
.db-panel {
  padding: 26px;
  border-radius: 22px;
  color: #FFFFFF;
  background: var(--db-glass);
  border: 1px solid var(--db-glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 8px 32px rgba(0, 0, 0, 0.25);
}
.db-panel h2 { margin: 0 0 14px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #FFFFFF; }
.db-panel-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.db-panel-head h2 { margin: 0; }
.db-muted { font-size: 13px; color: var(--db-slate); }
.db-prose { margin: 0 0 16px; font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, 0.8); }
.db-tree { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.db-tree-folder { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.db-tree-folder svg { width: 18px; height: 18px; color: var(--db-ice); }
.db-tree ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 26px; padding: 0; list-style: none; }
.db-tree ul li { padding: 3px 10px; border-radius: 8px; font-size: 13px; color: #CBD5E1; background: rgba(255, 255, 255, 0.06); }
.db-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.db-specs div { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.db-specs dt { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--db-slate); }
.db-specs dd { margin: 4px 0 0; font-size: 14.5px; color: #FFFFFF; }
@media (max-width: 620px) { .db-specs { grid-template-columns: 1fr; } }
.db-reviews { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.db-reviews li { padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.db-review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 14px; }
.db-reviews p { margin: 0; font-size: 14.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.8); }

.db-buybox { display: grid; gap: 10px; }
.db-buy-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.db-buy-price small { font-size: 12.5px; color: var(--db-slate); }
.db-buy-list { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.db-buy-list li { display: flex; align-items: center; gap: 9px; }
.db-buy-list svg { width: 16px; height: 16px; color: var(--db-ice); flex-shrink: 0; }
.db-buy-bundle { padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); background: rgba(147, 197, 253, 0.08); border: 1px solid rgba(147, 197, 253, 0.18); }
.db-buy-bundle b { color: #FFFFFF; }
.db-creator-card p { margin: 12px 0 16px; font-size: 14px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.db-creator-big { display: flex; align-items: center; gap: 12px; }
.db-creator-big b { display: block; font-size: 16px; }
.db-creator-big small { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--db-ice); }
.db-creator-big small svg { width: 14px; height: 14px; }
.db-report { margin: 0; text-align: center; font-size: 13px; }
.db-report a { color: var(--db-slate) !important; }
.db-report a:hover { color: #FFFFFF !important; }

@media (prefers-reduced-motion: reduce) {
  .db-drawer, .db-sidebar, .db-modal-dialog { transition: none; animation: none; }
}

/* Floating cart hidden while a panel is open; compact on phones */
body.db-lock .db-cart-fab { display: none; }
@media (max-width: 620px) {
  .db-cart-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; padding: 0; justify-content: center; }
  .db-cart-fab > span { display: none; }
  .db-cart-fab .db-cart-count { position: absolute; top: -4px; right: -4px; }
  .db-search { padding-left: 16px; }
  .db-search .db-btn { padding: 0 16px; }
  .db-demo-banner { border-radius: 16px; text-align: left; }
}
.db-cart-count[hidden] { display: none; }

/* The filter panel lives inside the dark zone (own stacking context): hide the navbar while it is open */
body.db-filters-open #navbar { visibility: hidden; }



/* ============================================================================
   STORE LAYOUT (database.html): spotlight, categories, shelves, cards, creators
   Pack pictures are screenshots (pack.images / RC_DB_CONFIG.previewImage).
   ============================================================================ */

/* ---------- Left-aligned row headers (marketplace shelves) ---------- */
.db-zone .st-section { padding-bottom: 80px; }
.db-zone .st-section + .st-section { padding-top: 0; }
.db-zone .st-container { max-width: 1200px; }
.db-zone .db-spot-section { padding-top: 24px; }
@media (max-width: 620px) { .db-zone .st-section { padding: 0 16px 60px; } .db-zone .db-spot-section { padding-top: 8px; } }
.db-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.db-row-eyebrow {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--db-ice);
}
.db-row-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #FFFFFF !important;
}
.db-row-head h2 .st-accent { color: var(--green-italic-dark, #94A3B8); }
.db-row-head p { margin: 8px 0 0; max-width: 560px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.66); }
.db-row-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.db-row-link { margin-right: 6px; font-size: 14px; font-weight: 600; color: var(--db-ice) !important; }
.db-row-link:hover { text-decoration: underline; }
.db-row-actions .db-icon-btn { width: 40px; height: 40px; transition: background-color 0.15s ease, opacity 0.15s ease; }
.db-row-actions .db-icon-btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); }
.db-row-actions .db-icon-btn:disabled { opacity: 0.35; cursor: default; }

/* ---------- Picture of a pack ---------- */
.db-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }

.db-badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--db-ink);
  background: var(--db-ice);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ---------- Pack card ---------- */
.db-pc {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  color: #FFFFFF;
  background: #11162A;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.25s ease;
}
.db-pc:hover {
  transform: translateY(-2px);
  border-color: rgba(147, 197, 253, 0.32);
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, 0.45);
}
.db-pc-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0B0F1E;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.db-pc-media .db-img { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.db-pc:hover .db-pc-media .db-img { transform: scale(1.02); }
.db-pc-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 14, 26, 0) 55%, rgba(10, 14, 26, 0.55) 100%);
  pointer-events: none;
}
.db-pc-count {
  position: absolute;
  z-index: 1;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #FFFFFF;
  background: rgba(10, 14, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}
.db-pc-count svg { width: 13px; height: 13px; }
.db-pc-body { display: flex; flex-direction: column; gap: 7px; flex: 1; padding: 14px 16px 16px; }
.db-pc-by { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.db-pc-by .db-creator { font-size: 12.5px; font-weight: 500; color: var(--db-slate); }
.db-pc-by .db-avatar { width: 22px; height: 22px; font-size: 9.5px; }
.db-pc-by .db-verified svg { width: 13px; height: 13px; }
.db-pc-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.db-pc-title a { color: #FFFFFF !important; }
.db-pc-title a::before { content: ''; position: absolute; inset: 0; z-index: 0; } /* whole card is clickable */
.db-pc-title a:hover { color: var(--db-ice) !important; }
.db-pc-meta { display: flex; flex-wrap: wrap; gap: 2px 6px; margin: 0; font-size: 12.5px; color: #CBD5E1; }
.db-pc-meta i { font-style: normal; color: rgba(255, 255, 255, 0.3); }
.db-pc-social { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 18px; font-size: 12.5px; }
.db-pc-social .db-rating { font-size: 12.5px; }
.db-pc-social .db-rating svg { width: 13px; height: 13px; }
.db-pc-social .db-rating + .db-muted { margin-left: -6px; }
.db-pc .db-card-foot { position: relative; z-index: 1; padding-top: 10px; margin-top: auto; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.db-pc .db-price { font-size: 18px; }
.db-pc .db-card-foot .db-btn--sm { height: 34px; }
.db-pc-by, .db-pc-media { position: relative; z-index: 1; }

/* ---------- Grids ---------- */
.db-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .db-grid { grid-template-columns: 1fr; } }

/* ---------- Shelves (horizontal rows) ---------- */
.db-shelf-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 18px) / 4);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: -14px -14px 0;
  padding: 14px 14px 20px;
  scroll-padding: 0 14px;
}
.db-shelf-track::-webkit-scrollbar { display: none; }
.db-shelf-track > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .db-shelf-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); } }
@media (max-width: 800px) { .db-shelf-track { grid-auto-columns: 46%; } }
@media (max-width: 580px) {
  .db-shelf-track { grid-auto-columns: 80%; gap: 14px; }
  .db-row-actions .db-icon-btn { display: none; }
}

/* ---------- Spotlight carousel ---------- */
.db-spot {
  display: grid;
  gap: 14px;
}
.db-spot-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  min-height: 420px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(59, 130, 246, 0.20) 0%, rgba(59, 130, 246, 0) 55%),
    linear-gradient(135deg, #142A61 0%, #0E1C44 55%, #0A1433 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 24px 60px rgba(0, 0, 0, 0.4);
}
.db-spot-media { position: relative; display: block; overflow: hidden; background: #0B0F1E; }
.db-spot-media .db-img { position: absolute; inset: 0; transition: transform 6s ease-out; }
.db-spot-slide.is-in .db-spot-media .db-img { transform: scale(1.03); }
/* no gradient over the image */
.db-spot-info { display: flex; flex-direction: column; gap: 12px; padding: 32px 32px 28px; color: #FFFFFF; }
.db-spot-slide .db-spot-info > * { opacity: 0; transform: translateY(8px); transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.db-spot-slide.is-in .db-spot-info > * { opacity: 1; transform: none; }
.db-spot-slide.is-in .db-spot-info > :nth-child(2) { transition-delay: 0.04s; }
.db-spot-slide.is-in .db-spot-info > :nth-child(3) { transition-delay: 0.08s; }
.db-spot-slide.is-in .db-spot-info > :nth-child(n+4) { transition-delay: 0.12s; }
.db-spot-eyebrow {
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--db-ink);
  background: var(--db-ice);
}
.db-spot-title { margin: 0; font-size: clamp(24px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.db-spot-title a { color: #FFFFFF !important; }
.db-spot-by { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.db-spot-desc { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, 0.75); }
.db-spot .db-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.db-spot .db-price { font-size: 26px; }
.db-spot-more { font-size: 13.5px; font-weight: 600; color: var(--db-ice) !important; }
.db-spot-more:hover { text-decoration: underline; }

.db-spot-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.db-spot-thumb {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px;
  border-radius: 14px;
  font: inherit;
  text-align: left;
  color: #FFFFFF;
  cursor: pointer;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.db-spot-thumb:hover { background: rgba(255, 255, 255, 0.08); }
.db-spot-thumb.is-active { background: rgba(53, 99, 201, 0.22); border-color: rgba(147, 197, 253, 0.4); }
.db-spot-thumb-img { flex-shrink: 0; width: 64px; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #0B0F1E; }
.db-spot-thumb-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.db-spot-thumb-text b { font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-spot-thumb-text small { font-size: 12px; color: var(--db-slate); }
.db-spot-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--db-ice); transform: scaleX(0); transform-origin: left; opacity: 0; }
.db-spot-thumb.is-active .db-spot-progress { opacity: 1; }
.db-spot-progress.is-running { transform: scaleX(1); transition: transform 7s linear; }
.db-spot-thumb:focus-visible { outline: 2px solid var(--db-ice); outline-offset: 2px; }

@media (max-width: 1000px) {
  .db-spot-slide { grid-template-columns: 1fr; min-height: 0; }
  .db-spot-media { aspect-ratio: 16 / 10; }

  .db-spot-info { padding: 22px 22px 24px; }
  .db-spot-thumbs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); overflow-x: auto; scrollbar-width: none; }
  .db-spot-thumbs::-webkit-scrollbar { display: none; }
}
@media (max-width: 580px) {
  .db-spot-thumb-text small { display: none; }
  .db-spot-thumbs { grid-auto-columns: 160px; }
  .db-spot-thumb-img { width: 48px; }
}

/* ---------- Bundles ---------- */
.db-bundle {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
  color: #FFFFFF;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0) 55%),
    linear-gradient(135deg, #142A61 0%, #0E1C44 55%, #0A1433 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 36px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.25s ease;
}
.db-bundle:hover { transform: translateY(-2px); border-color: rgba(147, 197, 253, 0.32); }
.db-bundle { position: relative; } /* the title link covers the card only (.db-pc-title a::before) */
.db-bundle-body > :not(.db-bundle-title), .db-bundle-media { position: relative; z-index: 1; }
.db-bundle-media { display: block; }
.db-bundle-shot .db-img, .db-bundle-media .db-mockup { transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1); }
.db-bundle:hover .db-bundle-shot .db-img { transform: scale(1.03); }
.db-bundle-title a { color: inherit !important; text-decoration: none; }
.db-bundle-title a:hover { color: var(--db-ice) !important; }
.db-bundle-media { position: relative; height: 178px; margin: 0; overflow: hidden; background: #142A61; }
.db-bundle-media .db-mockup {
  /* square app picture, flush against the bottom-right corner, no border */
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  height: 66%;
  width: auto;
  aspect-ratio: 1 / 1;
  border-radius: 12px 0 0 0;
  object-fit: cover;
  border: 0;
  box-shadow: -6px -6px 24px rgba(0, 0, 0, 0.3);
}
.db-bundle-shot {
  /* the range image fills the whole frame */
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0B0F1E;
}
.db-bundle-media .db-save { position: absolute; z-index: 3; top: 12px; right: 12px; }
.db-bundle-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.db-bundle-body .db-pc-by .db-creator { font-size: 12.5px; color: #CBD5E1; }
.db-bundle-desc { margin: 0; font-size: 13.5px; line-height: 1.55; color: rgba(255, 255, 255, 0.7); }
.db-bundle-list { margin: 2px 0 6px; padding: 0; list-style: none; font-size: 13px; }
.db-bundle-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.75); }
.db-bundle-list a { color: #FFFFFF !important; }
.db-bundle-list a:hover { color: var(--db-ice) !important; }
.db-bundle-list span { color: var(--db-slate); text-decoration: line-through; }

/* ---------- Creators ---------- */
.db-makers { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.db-maker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 22px 14px 18px;
  border-radius: 18px;
  text-align: center;
  color: #FFFFFF !important;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, background-color 0.2s ease;
}
.db-maker:hover { transform: translateY(-3px); border-color: rgba(147, 197, 253, 0.32); background: rgba(53, 99, 201, 0.12); }
.db-maker .db-avatar--lg { width: 56px; height: 56px; margin-bottom: 6px; font-size: 17px; box-shadow: 0 0 0 4px rgba(147, 197, 253, 0.1); }
.db-maker-name { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 5px; line-height: 1.3; font-size: 14.5px; font-weight: 600; }
.db-maker-name .db-verified svg { width: 14px; height: 14px; }
.db-maker-stats { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; color: var(--db-slate); }
.db-maker-stats svg { width: 12px; height: 12px; color: #FBBF24; }
.db-maker-bio {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.6);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 1100px) { .db-makers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 580px) {
  .db-makers { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .db-makers::-webkit-scrollbar { display: none; }
  .db-maker { scroll-snap-align: start; }
}

/* ---------- Browse: results grid next to the sidebar ---------- */
.db-results-col .db-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1180px) { .db-results-col .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) { .db-results-col .db-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .db-results-col .db-grid { grid-template-columns: 1fr; } }

/* ---------- Pack page: screenshot gallery ---------- */
.db-gallery-main { aspect-ratio: 1281 / 792; border-radius: 14px; overflow: hidden; background: #0B0F1E; border: 1px solid rgba(255, 255, 255, 0.08); }
.db-gallery-main img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.db-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.db-gallery-thumb { flex: 0 0 110px; aspect-ratio: 16 / 10; padding: 0; border-radius: 9px; overflow: hidden; cursor: pointer; background: #0B0F1E; border: 2px solid transparent; opacity: 0.6; transition: opacity 0.15s ease, border-color 0.15s ease; }
.db-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.db-gallery-thumb:hover { opacity: 0.9; }
.db-gallery-thumb.is-active { opacity: 1; border-color: var(--db-ice); }

@media (prefers-reduced-motion: reduce) {
  .db-pc, .db-pc-media .db-img, .db-maker, .db-spot-media .db-img, .db-spot-slide .db-spot-info > *, .db-bundle, .db-bundle .db-img, .db-bundle .db-mockup { transition: none !important; }
  .db-pc:hover, .db-maker:hover, .db-bundle:hover, .db-bundle:hover .db-img, .db-bundle:hover .db-mockup { transform: none; }
}
@media (max-width: 580px) {
  .db-row-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .db-row-head .db-row-actions { position: absolute; right: 0; }
  .db-row-head { position: relative; }
}

/* ============================================================================
   LIGHT STORE (database.html): no hero, filters on the side, cream background.
   Everything below is scoped to .db-store / body.db-store-page, so the pack
   page (dark) keeps its own look.
   ============================================================================ */
body.db-store-page { background: #F4F0EA; }
.db-store {
  --db-text: #0A0E1A;
  --db-text-2: #475569;
  --db-line: rgba(10, 14, 26, 0.08);
  --db-card: #FFFFFF;
  color: var(--db-text);
}
.db-store-wrap { box-sizing: border-box; max-width: 1400px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header: one line ---------- */
.db-store-head, .db-store-head.download-hero-beige { display: block; min-height: 0; padding: 104px 0 22px; border-bottom: 1px solid var(--db-line); background: var(--bg-cream, #EBE4DD); }
.db-store-head .db-demo-banner { margin: 0 0 16px; }
.db-store-head-row { display: flex; align-items: center; gap: 24px; }
.db-store-head, .db-store-head.download-hero-beige { align-items: stretch; text-align: left; }
.db-store-head .db-demo-banner { text-align: left; }
.db-store-title { flex: 1; min-width: 0; text-align: left; }
.db-store-title h1 { margin: 0; font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; color: var(--db-text); }
.db-store-title p { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; color: #5A657D; }
.db-store-stats { white-space: nowrap; }
.db-store-stats:not(:empty)::before { content: '·'; margin: 0 8px 0 4px; color: rgba(10, 14, 26, 0.3); }
.db-store-stats b { font-weight: 700; color: var(--db-text); }
.db-store-title { flex: 0 1 auto; }
.db-store .db-search { flex: 1 1 560px; max-width: 760px; margin: 0 0 0 auto; padding: 0 22px; height: 58px; }
.db-store .db-search svg { width: 20px; height: 20px; }
.db-store .db-search input { height: 56px; font-size: 16px; }

/* ---------- Layout ---------- */
.db-store-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 30px; padding-bottom: 96px; }
.db-store-main { min-width: 0; }
.db-store .db-block + .db-block { margin-top: 56px; }
.db-store.is-filtering .db-home { display: none; }
.db-store .db-home + .db-block { margin-top: 56px; }
.db-store.is-filtering .db-home + .db-block { margin-top: 0; }
.db-store .db-creator-cta h2 { line-height: 1.15; }

/* ---------- Sidebar ---------- */
.db-store .db-sidebar {
  top: 92px;
  overscroll-behavior: contain;
  scrollbar-width: none;
  max-height: calc(100vh - 112px);
  padding: 18px 18px 8px;
  border-radius: 18px;
  background: var(--db-card);
  border: 1px solid var(--db-line);
  box-shadow: 0 1px 2px rgba(10, 14, 26, 0.04);
}
.db-store .db-fgroup { border-bottom-color: var(--db-line); }
.db-store .db-fgroup legend { color: #64748B; }
.db-store .db-fcheck { color: #1E293B; border-radius: 8px; }
.db-store .db-fcheck:hover span { color: var(--db-navy); }
.db-store .db-fcheck small { color: #94A3B8; }

/* ---------- Row headers ---------- */
.db-store .db-row-head { margin-bottom: 16px; }
.db-store .db-row-head h2 { font-size: clamp(21px, 1.8vw, 25px); font-weight: 700; letter-spacing: -0.03em; color: var(--db-text) !important; }
.db-store .db-row-head p { margin-top: 4px; font-size: 14px; color: #64748B; }
.db-store .db-row-link { color: var(--db-navy) !important; }
.db-store .db-icon-btn { color: var(--db-text); background: var(--db-card); border-color: rgba(10, 14, 26, 0.12); }
.db-store .db-row-actions .db-icon-btn:hover:not(:disabled) { background: #EEF1F6; }
.db-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: #64748B; }
.db-sort select {
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--db-text);
  background: var(--db-card);
  border: 1px solid rgba(10, 14, 26, 0.12);
  cursor: pointer;
}
.db-sort select:focus-visible { outline: 2px solid var(--db-navy); outline-offset: 2px; }

/* Sort menu (styled dropdown, database.js → enhanceSort) */
.db-select { position: relative; }
.db-select-btn {
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px 0 16px; border-radius: 999px;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--db-text); background: var(--db-card);
  border: 1px solid rgba(10, 14, 26, 0.12); cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.db-select-btn:hover { border-color: rgba(53, 99, 201, 0.4); }
.db-select-btn:focus-visible { outline: 2px solid var(--db-navy); outline-offset: 2px; }
.db-select-btn svg { color: #64748B; transition: transform 0.2s ease; }
.db-select.is-open .db-select-btn { border-color: var(--db-navy); box-shadow: 0 0 0 3px rgba(53, 99, 201, 0.14); }
.db-select.is-open .db-select-btn svg { transform: rotate(180deg); }
.db-select-menu {
  position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; min-width: 220px; margin: 0; padding: 6px; list-style: none;
  border-radius: 16px; background: #FFFFFF; border: 1px solid rgba(10, 14, 26, 0.08);
  box-shadow: 0 4px 10px rgba(10, 14, 26, 0.06), 0 18px 40px -12px rgba(10, 14, 26, 0.22);
  transform-origin: top right; animation: db-select-in 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
.db-select-menu:focus { outline: none; }
@keyframes db-select-in { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.db-select-menu li {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--db-text); cursor: pointer; white-space: nowrap;
}
.db-select-menu li svg { width: 15px; height: 15px; color: var(--db-navy); visibility: hidden; flex-shrink: 0; }
.db-select-menu li[aria-selected="true"] { font-weight: 700; color: var(--db-navy); }
.db-select-menu li[aria-selected="true"] svg { visibility: visible; }
.db-select-menu li.is-active { background: #F1F4FA; }
@media (prefers-reduced-motion: reduce) { .db-select-menu { animation: none; } }

/* ---------- Buttons on light ---------- */
.db-btn--light, .db-store .db-btn--ghost { color: var(--db-text) !important; background: var(--db-card); border-color: rgba(10, 14, 26, 0.14); }
.db-btn--light:hover, .db-store .db-btn--ghost:hover { background: #EEF1F6; }
.db-btn--light b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; line-height: 20px; color: #FFFFFF; background: var(--db-navy); }
.db-store .db-btn--owned { color: var(--db-navy) !important; background: rgba(53, 99, 201, 0.08); border-color: rgba(53, 99, 201, 0.25); }
.db-store .db-link-btn { color: var(--db-navy); }
.db-store .db-btn:focus-visible { outline-color: var(--db-navy); }

/* ---------- Cards on light ---------- */
.db-store .db-pc {
  color: var(--db-text);
  background: var(--db-card);
  border-color: var(--db-line);
  box-shadow: 0 1px 2px rgba(10, 14, 26, 0.04), 0 6px 20px rgba(10, 14, 26, 0.05);
}
.db-store .db-pc:hover { border-color: rgba(53, 99, 201, 0.3); box-shadow: 0 1px 2px rgba(10, 14, 26, 0.04), 0 10px 20px -8px rgba(10, 14, 26, 0.18); }
.db-store .db-pc-media { background: #E7E2DA; border-bottom-color: var(--db-line); }
.db-store .db-pc-media::after { background: linear-gradient(180deg, rgba(10, 14, 26, 0) 65%, rgba(10, 14, 26, 0.3) 100%); }
.db-store .db-pc-title a { color: var(--db-text) !important; }
.db-store .db-pc-title a:hover { color: var(--db-navy) !important; }
.db-store .db-pc-by .db-creator, .db-store .db-bundle .db-creator { color: #64748B; }
.db-store .db-pc-meta { color: var(--db-text-2); }
.db-store .db-pc-meta i { color: rgba(10, 14, 26, 0.25); }
.db-store .db-rating { color: var(--db-text); }
.db-store .db-muted { color: #64748B; }
.db-store .db-pc .db-card-foot, .db-store .db-bundle .db-card-foot { border-top: 1px solid var(--db-line); padding-top: 10px; }
.db-store .db-price { color: var(--db-text); }
.db-store .db-price s { color: #94A3B8; }
.db-store .db-price--free { color: var(--db-navy); }
.db-store .db-verified { color: var(--db-navy); }
.db-store .db-verified svg path[stroke] { stroke: #FFFFFF; }

/* Sites the pack is made for (rake) */
.db-pc-sites { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; }
.db-pc-sites span { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 4px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: #E2E8F0; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.db-pc-sites span:not(:has(img)) { padding-left: 8px; }
.db-pc-sites img { width: 16px; height: 16px; border-radius: 4px; object-fit: contain; }
.db-store .db-pc-sites span { color: #334155; background: #F1F5F9; border-color: rgba(10, 14, 26, 0.06); }

/* Shelves: 4 per row, results: as many as fit */
.db-store .db-shelf-track { grid-auto-columns: calc((100% - 3 * 18px) / 4); }
.db-grid--results { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; }
@media (max-width: 1200px) { .db-store .db-shelf-track { grid-auto-columns: calc((100% - 2 * 18px) / 3); } }

/* ---------- Spotlight: dark navy panel on cream ---------- */
.db-store .db-spot-slide { min-height: 380px; }
.db-store .db-spot-thumbs { gap: 10px; }
.db-store .db-spot-thumb { color: var(--db-text); background: var(--db-card); border-color: var(--db-line); }
.db-store .db-spot-thumb:hover { background: #F8F6F2; }
.db-store .db-spot-thumb.is-active { background: rgba(53, 99, 201, 0.07); border-color: rgba(53, 99, 201, 0.45); }
.db-store .db-spot-thumb-text small { color: #64748B; }
.db-store .db-spot-progress { background: var(--db-navy); }
.db-store .db-spot-thumb:focus-visible { outline-color: var(--db-navy); }

/* ---------- Bundles on light ---------- */
.db-store .db-bundle {
  color: var(--db-text);
  background: var(--db-card);
  border-color: var(--db-line);
  box-shadow: 0 1px 2px rgba(10, 14, 26, 0.04), 0 6px 20px rgba(10, 14, 26, 0.05);
}
.db-store .db-bundle-media { background: #142A61; }
.db-store .db-bundle:hover { border-color: rgba(53, 99, 201, 0.3); box-shadow: 0 1px 2px rgba(10, 14, 26, 0.04), 0 10px 20px -8px rgba(10, 14, 26, 0.18); }
.db-store .db-bundle-title a:hover { color: var(--db-navy) !important; }
.db-store .db-bundle-body { border-top: 0; }
.db-store .db-bundle-desc { color: var(--db-text-2); }
.db-store .db-bundle-list li { color: var(--db-text-2); border-bottom-color: var(--db-line); }
.db-store .db-bundle-list a { color: var(--db-text) !important; }
.db-store .db-bundle-list a:hover { color: var(--db-navy) !important; }
.db-store .db-bundle-list span { color: #94A3B8; }

/* ---------- Creators on light ---------- */
.db-store .db-makers { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.db-store .db-maker { color: var(--db-text) !important; background: var(--db-card); border-color: var(--db-line); }
.db-store .db-maker:hover { background: var(--db-card); border-color: rgba(53, 99, 201, 0.3); box-shadow: 0 14px 30px rgba(10, 14, 26, 0.08); }
.db-store .db-maker .db-avatar--lg { box-shadow: 0 0 0 4px rgba(53, 99, 201, 0.1); }
.db-store .db-maker-stats { color: #64748B; }
.db-store .db-maker-bio { color: var(--db-text-2); }

/* ---------- Results ---------- */
.db-store .db-results-meta { margin-bottom: 14px; }
.db-store .db-count { color: var(--db-text); }
.db-store .db-chip { background: var(--db-card); border-color: rgba(10, 14, 26, 0.12); }
.db-store .db-chip.is-on { color: #FFFFFF; background: var(--db-navy); border-color: var(--db-navy); }
.db-store .db-empty { color: var(--db-text-2); }
.db-store .db-empty h3 { color: var(--db-text); }
.db-store .db-empty--wide { background: var(--db-card); border-color: rgba(10, 14, 26, 0.14); }

/* ---------- Sell your ranges + help ---------- */
.db-store #sell { margin-top: 72px; }
.db-help-link { margin: 18px 0 0; text-align: center; font-size: 14px; color: #64748B; }
.db-help-link a { font-weight: 600; color: var(--db-navy) !important; }
.db-help-link a:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .db-store-layout { grid-template-columns: 1fr; padding-top: 22px; }
  .db-store-head-row { flex-wrap: wrap; gap: 14px; }
  .db-store-title { flex-basis: 100%; }
  .db-store .db-search { flex: 1 1 0; min-width: 0; }
  .db-store .db-filter-toggle { height: 50px; }
  .db-store .db-sidebar { top: 0; max-height: none; padding: 0; border-radius: 0; background: #FFFFFF; }
  .db-store .db-sidebar-head { border-bottom-color: var(--db-line); }
  .db-store .db-sidebar-head h3 { color: var(--db-text); }
  .db-store .db-sidebar-foot { border-top-color: var(--db-line); }
}
@media (max-width: 620px) {
  .db-store-wrap { padding: 0 16px; }
  .db-store-head, .db-store-head.download-hero-beige { padding-top: 92px; }
  .db-store-layout { padding-top: 28px; }
  .db-store .db-filter-toggle { padding: 0 16px; }
  .db-store #db-bundles { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; }
  .db-store #db-bundles::-webkit-scrollbar { display: none; }
  .db-store #db-bundles > * { scroll-snap-align: start; }
  .db-store .db-block + .db-block { margin-top: 44px; }
  .db-store .db-shelf-track { grid-auto-columns: 78%; margin: -14px -16px 0; padding: 14px 16px 20px; scroll-padding: 0 16px; }
  .db-store .db-row-head { flex-direction: row; align-items: flex-end; }
  .db-store .db-row-head .db-row-actions { position: static; }
  .db-store .db-sort span { display: none; }
  .db-store .db-makers { grid-template-columns: none; }
  .db-grid--results { grid-template-columns: 1fr !important; }
  .db-store-stats { display: block; white-space: normal; margin-top: 2px; }
  .db-store-stats:not(:empty)::before { content: none; }
}
/* Spotlight keeps the dark-panel colors */
.db-store .db-spot-info .db-verified { color: var(--db-ice); }
.db-store .db-spot-info .db-verified svg path[stroke] { stroke: #0A0E1A; }
.db-store .db-spot-info .db-creator, .db-store .db-spot-info .db-rating { color: #E2E8F0; }
.db-store .db-spot-info .db-muted { color: var(--db-slate); }
.db-store .db-spot-info .db-price { color: #FFFFFF; }
.db-store .db-spot-info .db-price--free { color: var(--db-ice); }
.db-store .db-spot-info .db-btn--ghost { color: #FFFFFF !important; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.2); }
.db-store .db-spot-info .db-btn--owned { color: var(--db-ice) !important; background: rgba(147, 197, 253, 0.1); border-color: rgba(147, 197, 253, 0.28); }

/* Toast above the floating cart (so the cart stays clickable) */
.rc-database-page .rc-toast { bottom: 96px; }
@media (max-width: 620px) { .rc-database-page .rc-toast { bottom: 84px; right: 16px; left: 16px; justify-content: center; } }

/* ============================================================================
   PACK PAGE (database-pack.html): simple, light
   ============================================================================ */
.db-pack-page { padding-top: 96px; }
.db-crumbs-bar { padding: 18px 0 14px; font-size: 13.5px; color: #64748B; }
.db-crumbs-bar a { color: #475569 !important; }
.db-crumbs-bar a:hover { color: var(--db-navy) !important; }
.db-crumbs-bar span[aria-hidden] { margin: 0 8px; color: #94A3B8; }
.db-pp {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "media side" "info side";
  gap: 28px 36px;
  align-items: start;
}
.db-pp-media { grid-area: media; }
.db-pp-side { grid-area: side; position: sticky; top: 96px; display: grid; gap: 14px; }
.db-pp-info { grid-area: info; display: grid; gap: 14px; }
.db-pp-image { position: relative; aspect-ratio: 1281 / 792; border-radius: 18px; overflow: hidden; background: #0B0F1E; border: 1px solid var(--db-line); box-shadow: 0 18px 40px rgba(10, 14, 26, 0.12); }
.db-pp-image .db-img { object-position: top left; }
.db-pp-card, .db-pp-section {
  padding: 22px;
  border-radius: 18px;
  background: var(--db-card);
  border: 1px solid var(--db-line);
  box-shadow: 0 1px 2px rgba(10, 14, 26, 0.04);
}
.db-pp-card { display: grid; gap: 12px; }
.db-pp-title { margin: 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; color: var(--db-text); }
.db-pp-short { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--db-text-2); }
.db-pp .db-buybox { display: grid; gap: 10px; margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--db-line); }
.db-pp .db-buy-price { display: flex; align-items: baseline; gap: 8px; }
.db-pp .db-buy-price small { font-size: 12.5px; color: #64748B; }
.db-pp .db-price--lg { font-size: 30px; }
.db-buy-note { margin: 0; font-size: 13px; line-height: 1.5; color: #64748B; text-align: center; }
.db-buy-note b { color: var(--db-text); }
.db-pp .db-buy-bundle { padding: 10px 12px; border-radius: 12px; font-size: 13px; color: var(--db-text-2); background: #F4F6FA; }
.db-pp-section h2 { margin: 0 0 12px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; color: var(--db-text); }
.db-pp .db-prose { margin: 0; font-size: 15px; line-height: 1.65; color: var(--db-text-2); white-space: pre-line; } /* line breaks of store.about */
.db-pp .db-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin: 0; }
.db-pp .db-specs div { padding: 10px 0; border-bottom: 1px solid var(--db-line); }
.db-pp .db-specs dt { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #94A3B8; }
.db-pp .db-specs dd { margin: 3px 0 0; font-size: 14.5px; color: var(--db-text); }
.db-pp-creator { display: flex; gap: 14px; align-items: flex-start; }
.db-pp-creator b { font-size: 15px; color: var(--db-text); }
.db-pp-creator p { margin: 4px 0 8px; font-size: 14px; line-height: 1.55; color: var(--db-text-2); }
.db-pp .db-report { margin: 0; font-size: 12.5px; text-align: center; }
.db-pp .db-report a { color: #94A3B8 !important; }
.db-pp .db-tree { color: var(--db-text-2); }

/* Rating (owners only, no comments) */
.db-rate { gap: 10px; }
.db-rate-summary { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.db-rate-summary .db-rating { font-size: 15px; }
.db-rate-mine { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--db-line); font-size: 13.5px; font-weight: 600; color: var(--db-text); }
.db-rate-stars { display: flex; gap: 2px; }
.db-rate-stars button { display: inline-flex; padding: 3px; border: 0; background: none; color: #CBD5E1; cursor: pointer; transition: color 0.12s ease, transform 0.12s ease; }
.db-rate-stars button svg { width: 22px; height: 22px; }
.db-rate-stars button.is-on { color: #FBBF24; }
.db-rate-stars:hover button { color: #FBBF24; }
.db-rate-stars button:hover ~ button { color: #CBD5E1; }
.db-rate-stars button:hover { transform: scale(1.12); }
.db-rate-stars button:focus-visible { outline: 2px solid var(--db-navy); outline-offset: 1px; border-radius: 6px; }
.db-rate .db-fine { margin: 0; text-align: left; color: #64748B; }

@media (max-width: 960px) {
  .db-pp { grid-template-columns: 1fr; grid-template-areas: "media" "side" "info"; }
  .db-pp-side { position: static; }
}
@media (max-width: 620px) {
  .db-pack-page { padding-top: 84px; }
  .db-pp-card, .db-pp-section { padding: 18px; }
  .db-pp .db-specs { grid-template-columns: 1fr; }
}

.db-pack-related { margin: 56px 0 96px; }
.db-crumbs-bar.download-hero-beige { display: block; min-height: 0; padding: 18px 0 14px; background: transparent !important; color: #64748B !important; align-items: initial; text-align: left; }

.db-method svg { width: 18px; height: 18px; margin-right: 6px; flex-shrink: 0; }
.db-folders { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.db-folders li { display: grid; grid-template-columns: 18px auto minmax(0, 1fr); align-items: baseline; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--db-line); font-size: 14px; color: var(--db-text); }
.db-folders li:last-child { border-bottom: 0; }
.db-folders svg { width: 16px; height: 16px; color: var(--db-navy); align-self: center; }
.db-folders span { color: #64748B; font-size: 13px; }
.db-pp .db-buy-bundle b { color: var(--db-text); }

/* Active filters: chips spaced like the rest */
#db-active { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#db-active .db-link-btn { margin-left: 6px; }

/* Stripe Payment Element (stripe-pay.js) inside the payment modal */
.db-stripe { min-height: 120px; margin: 16px 0 6px; }
.db-stripe-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 120px; margin: 0; font-size: 14px; color: var(--db-slate); }
.db-stripe-loading .db-spinner { border-color: rgba(255, 255, 255, 0.2); border-top-color: var(--db-ice); }
.db-stripe:empty { min-height: 0; }
.db-modal-dialog:has(.db-stripe) { max-width: 560px; }

/* ---------- Creator photos (creators[].avatar) ---------- */
.db-avatar--img { overflow: hidden; background: #E7E2DA; }
.db-avatar--img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Page of a bundle (database-pack?bundle=…) ---------- */

.db-pp-bundle-visual .db-bundle-shot { left: 5%; top: 7%; width: 62%; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.db-pp-bundle-visual .db-mockup { position: absolute; z-index: 2; right: 5%; bottom: 7%; width: 50%; height: auto; aspect-ratio: 262 / 170; border-radius: 14px; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.db-pp-bundle-visual .db-badge { z-index: 3; }
.db-save--inline { display: inline-flex; margin-left: 10px; vertical-align: middle; }
.db-bundle-packs { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.db-bundle-packs li { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px; border-radius: 14px; border: 1px solid var(--db-line); background: #FFFFFF; transition: border-color 0.2s ease; }
.db-bundle-packs li:hover { border-color: rgba(53, 99, 201, 0.3); }
.db-bundle-pack-img { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 9px; overflow: hidden; background: #0B0F1E; }
.db-bundle-pack-img .db-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.db-bundle-packs b { font-size: 15px; color: var(--db-text); }
.db-bundle-packs a { text-decoration: none; color: inherit !important; }
.db-bundle-packs a:hover b { color: var(--db-navy); }
.db-bundle-packs small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--db-text-2); }
.db-bundle-pack-price { font-size: 14px; font-weight: 700; color: #94A3B8; text-decoration: line-through; white-space: nowrap; }
.db-bundle-pack-price em { display: inline-flex; align-items: center; gap: 4px; font-style: normal; color: #16A34A; text-decoration: none; }
.db-bundle-pack-price svg { width: 14px; height: 14px; }
.db-buy-bundle a { color: var(--db-navy) !important; text-decoration: none; }
@media (max-width: 560px) {
  .db-bundle-packs li { grid-template-columns: 84px minmax(0, 1fr); }
  .db-bundle-pack-price { grid-column: 2; }
}

/* Filters: the panel scrolls on its own (no scrollbar, no page scroll at its ends) */
.db-sidebar, .db-sidebar form { overscroll-behavior: contain; scrollbar-width: none; -ms-overflow-style: none; }
.db-sidebar::-webkit-scrollbar, .db-sidebar form::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* ---------- Pack / bundle page: the range image fills the frame (16:10), the square folder cover sits
   in front, bottom right. Light cream background: the images can be transparent. ---------- */
.db-pp-image.db-pp-visual { background: #F6F2EA; }
.db-pp-visual > .db-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.db-pp-visual > .db-mockup {
  /* flush against the bottom-right corner, no border */
  position: absolute; z-index: 2; right: 0; bottom: 0; width: 38%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 16px 0 0 0; background: transparent; border: 0; box-shadow: -8px -8px 30px rgba(10, 14, 26, 0.22);
}
.db-pp-bundle-visual .db-bundle-shot { inset: 0; left: 0; top: 0; width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
.db-pp-bundle-visual .db-bundle-shot .db-img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.db-pp-bundle-visual .db-mockup { right: 0; bottom: 0; width: 38%; aspect-ratio: 1 / 1; border: 0; }
.db-pack-bundles { margin-bottom: 8px; }
/* Spinner inside a sentence (payment confirmation) */
.db-fine .db-spinner { display: inline-block; width: 13px; height: 13px; margin-right: 8px; vertical-align: -2px; }
.db-fine--wait { color: var(--db-slate); }
