/* ============================================
   EDITVAULT - GLOBAL STYLESHEET
   Version 1.0
============================================ */

/* --- Fonts ---
   Use system fonts to avoid broken local font requests after moving assets to Cloudinary. */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Colors – Envato-Aligned Light Palette */
  --bg-primary:    #ffffff;
  --bg-surface:    #f8fafc;
  --bg-card:       #ffffff;

  --primary:       #111827;
  --primary-light: #374151;
  --accent:        #0891b2;
  --pink:          #e11d48;
  --violet:        #7c3aed;

  --gradient-brand: linear-gradient(90deg, #0891b2 0%, #e11d48 100%);
  --gradient-pink:  linear-gradient(135deg, #e11d48, #0891b2);

  --text-primary:   #020617;
  --text-secondary: #4b5563;
  --text-muted:     #9ca3af;

  --glass-bg:     #ffffff;
  --glass-border: #e5e7eb;
  --glass-blur:   blur(0px);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Border radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow:   0.5s ease;

  /* Shadows */
  --shadow-glow-primary: 0 4px 20px rgba(8, 145, 178, 0.08);
  --shadow-glow-accent:  0 4px 16px rgba(8, 145, 178, 0.06);
  --shadow-card:         0 1px 3px rgba(15, 23, 42, 0.08);

  /* Layout */
  --container-max: 1200px;
  --navbar-height: 68px;
}

/* --- CSS Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

.text-center {
  text-align: center;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: #020617;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-md);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-glow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 36px rgba(124, 58, 237, 0.5);
}

.btn-outline {
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  background: var(--glass-bg);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(124, 58, 237, 0.1);
}

/* --- Badge Tags --- */
.badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-free {
  background: rgba(34, 211, 238, 0.15);
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.badge-premium {
  background: rgba(224, 64, 251, 0.15);
  color: var(--pink);
  border: 1px solid rgba(224, 64, 251, 0.25);
}

/* --- Scroll Fade-In Animation --- */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-enabled .fade-in {
  opacity: 0;
  transform: translateY(28px);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Scrollbar Styling --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: var(--radius-full);
}

/* --- Background Mesh --- */
.bg-mesh {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 53, 200, 0.12), transparent 18%, transparent 82%, rgba(34, 211, 238, 0.12)),
    linear-gradient(180deg, rgba(124, 58, 237, 0.08), transparent 32%, rgba(39, 231, 244, 0.05)),
    linear-gradient(115deg, rgba(255, 60, 191, 0.1), transparent 36%),
    linear-gradient(245deg, rgba(39, 231, 244, 0.09), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 42%);
  pointer-events: none;
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background: rgba(8, 11, 22, 0.85);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition-normal);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  padding: 2px;
  box-shadow: 0 8px 24px rgba(39, 231, 244, 0.18);
}

.nav-logo span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  margin-left: var(--space-md);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: var(--transition-normal);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   HERO SECTION
============================================ */
.hero {
  min-height: calc(100vh - var(--navbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-3xl) 0;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
}

.hero-logo-mark {
  width: clamp(82px, 10vw, 122px);
  height: clamp(82px, 10vw, 122px);
  object-fit: contain;
  margin: 0 auto var(--space-lg);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  padding: 6px;
  box-shadow: 0 22px 70px rgba(39, 231, 244, 0.18), 0 10px 44px rgba(255, 60, 191, 0.16);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: 'Sora', 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-stat span:first-child {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat span:last-child {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   CATEGORIES SECTION
============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: var(--transition-normal);
  text-align: left;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: inherit;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
  border-color: rgba(32,214,199,0.28);
}

.category-card:hover::before {
  opacity: 0.06;
}

.category-icon {
  font-size: 2.2rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.category-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

/* ============================================
   TRENDING / ASSET CARDS
============================================ */
.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.asset-card {
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-fast);
  cursor: pointer;
  position: relative;
}

.asset-card-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 4;
  display: flex;
  gap: 0.45rem;
}

.asset-action-btn {
  min-width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.92);
  color: #4b5563;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: var(--transition-normal);
}

.asset-action-btn:hover,
.asset-action-btn.active {
  color: #020617;
  border-color: #0891b2;
  background: rgba(8, 145, 178, 0.08);
  transform: translateY(-2px);
}

.asset-action-btn[data-like-asset],
.like-action-btn {
  color: #be123c;
  border-color: rgba(244, 63, 94, 0.28);
  background: rgba(255, 241, 242, 0.94);
}

.asset-action-btn[data-save-asset],
.save-action-btn {
  color: #075985;
  border-color: rgba(14, 165, 233, 0.28);
  background: rgba(240, 249, 255, 0.94);
}

.asset-download-btn {
  color: #166534;
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(240, 253, 244, 0.94);
}

.asset-action-btn[data-like-asset]:hover,
.like-action-btn:hover {
  color: #ffffff;
  border-color: #e11d48;
  background: #e11d48;
}

.asset-action-btn[data-save-asset]:hover,
.save-action-btn:hover {
  color: #ffffff;
  border-color: #0284c7;
  background: #0284c7;
}

.asset-action-count {
  min-width: 1ch;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.asset-like-count-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 4;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 77, 109, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #be123c;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.asset-like-count-badge::before {
  content: "♡";
  font-size: 0.88rem;
  line-height: 1;
}

.asset-like-count-badge[hidden] {
  display: none !important;
}

.asset-action-btn[data-like-asset].active {
  color: #ffffff;
  border-color: #e11d48;
  background: #e11d48;
  animation: likePop 0.34s ease;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.22);
}

.asset-action-btn[data-save-asset].active {
  color: #ffffff;
  border-color: #0284c7;
  background: #0284c7;
  animation: savePop 0.34s ease;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.22);
}

.asset-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: var(--space-md);
}

.detail-action-btn {
  width: 100%;
  min-height: 44px;
  padding: 0 1rem;
  background: #f1f5f9;
  font-weight: 900;
}

.detail-action-btn[data-like-asset] {
  background: #fff1f2;
}

.detail-action-btn[data-save-asset] {
  background: #f0f9ff;
}

.asset-card-link {
  display: block;
  height: 100%;
}

.asset-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
  border-color: #d1d5db;
}

.asset-thumb {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg-surface);
  overflow: hidden;
}

.asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.asset-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
  background: #0b1017;
}

.asset-video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.asset-preview-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 180ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease;
}

.asset-thumb-video.video-frame-ready.video-preview-playing .asset-preview-video {
  opacity: 1;
}

.asset-thumb-video.video-frame-ready.video-preview-playing .asset-video-poster {
  opacity: 0;
}

.asset-thumb-media {
  position: relative;
  width: 100%;
  height: 100%;
}

.asset-thumb-media .asset-thumb-fallback {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.asset-thumb-media.thumb-error .asset-thumb-fallback {
  opacity: 1;
  pointer-events: auto;
}

.asset-thumb-fallback,
.asset-audio-preview {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(255,255,255,0.035)),
    var(--bg-surface);
  color: var(--text-primary);
}

.asset-thumb-fallback i,
.asset-audio-preview i {
  font-size: 2rem;
  color: var(--accent);
}

.asset-thumb-fallback span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.asset-thumb-fallback strong {
  max-width: 86%;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.asset-thumb-fallback small {
  max-width: 80%;
  color: var(--text-muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-thumb-audio {
  position: relative;
  justify-content: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(255,255,255,0.035)),
    var(--bg-surface);
}

.asset-thumb-audio > span {
  display: none;
}

.asset-thumb-audio > i {
  position: absolute;
  top: 0.95rem;
  left: 0.95rem;
  transform: none;
  font-size: 1.35rem;
  opacity: 0.95;
}

.asset-thumb-audio strong,
.asset-thumb-audio small {
  display: none;
}

.asset-audio-preview audio {
  width: min(86%, 420px);
  margin-top: var(--space-md);
}

.asset-card:hover .asset-thumb img {
  transform: scale(1.05);
}

.asset-card:hover .asset-thumb video {
  transform: scale(1.04);
}

.asset-thumb-overlay {
  display: none;
}

.asset-card:hover .asset-thumb-overlay {
  display: none;
}

.asset-thumb:has(.asset-thumb-audio) .asset-thumb-overlay,
.asset-thumb:has(.audio-preview-btn) .asset-thumb-overlay {
  display: none;
}

.play-icon {
  display: none;
}

.asset-info {
  padding: 0.9rem;
}

.asset-info-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.asset-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.asset-category {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.asset-tags {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.asset-tag {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: #f1f5f9;
  border: 1px solid var(--glass-border);
  padding: 2px 8px;
  border-radius: 999px;
}

.asset-card-cta {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
  font-size: 0.82rem;
  min-height: 40px;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-top: var(--space-md);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col ul a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-col ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--glass-border);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: var(--transition-normal);
  color: var(--text-secondary);
}

.social-link:hover {
  color: var(--text-primary);
  background: var(--glass-bg);
  transform: translateY(-2px);
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes likePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.24) rotate(-8deg); }
  100% { transform: scale(1); }
}

@keyframes savePop {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-4px) scale(1.18); }
  100% { transform: translateY(0) scale(1); }
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --space-3xl: 3.5rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--navbar-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(8,11,22,0.97);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-lg) var(--space-xl);
  }

  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--space-sm) 0; font-size: 1rem; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }

  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .assets-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-lg); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .assets-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* ============================================
   MODERN POLISH + LOGIN
============================================ */
.navbar {
  top: 0.7rem;
  width: min(1240px, calc(100% - 2rem));
  height: 68px;
  margin: 0 auto;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  overflow: visible;
}

.navbar::before {
  display: none;
}

.navbar .container {
  height: 100%;
  padding-inline: 1rem;
}

.nav-logo {
  padding: 0.38rem 0.75rem 0.38rem 0.38rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
}

.nav-logo img {
  height: 42px;
  width: 42px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.12);
}

.nav-logo span {
  font-size: 1.15rem;
}

.nav-links {
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #f8fafc;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 0.85rem;
  border-radius: 999px;
  font-weight: 700;
}

.nav-links a::after {
  display: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: #020617;
  background: #e5e7eb;
  box-shadow: none;
}

.nav-cta .btn {
  min-height: 46px;
  padding-inline: 1.25rem;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.12);
}

.hero {
  min-height: 0;
  padding: 7.75rem 0 4.5rem;
  align-items: center;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  letter-spacing: 0;
  line-height: 1.02;
}

.hero .gradient-text {
  background: linear-gradient(90deg, #0891b2 0%, #7c3aed 50%, #e11d48 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 660px;
  color: #4b5563;
  font-weight: 400;
  letter-spacing: 0;
}

.hero-search {
  position: relative;
  z-index: 6;
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto var(--space-xl);
  padding: 0.55rem;
  border: 1px solid #d1d5db;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-search > i {
  color: var(--accent);
  font-size: 1.2rem;
  padding-left: 0.7rem;
}

.hero-search input {
  min-width: 0;
  height: 46px;
  color: var(--text-primary);
}

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

.search-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.55rem);
  display: none;
  gap: 0.35rem;
  padding: 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
  text-align: left;
}

.hero-search.search-open .search-suggestions {
  display: grid;
}

.search-wrap.search-open .search-suggestions {
  display: grid;
}

.search-suggestions-inline {
  z-index: 30;
}

.search-suggestion {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  padding: 0.6rem;
  border-radius: 12px;
  background: transparent;
  transition: var(--transition-fast);
}

.search-suggestion:hover {
  background: #f1f5f9;
}

.suggestion-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  color: var(--cat-accent, var(--accent));
  background: rgba(255, 255, 255, 0.92);
}

.suggestion-icon-media {
  position: relative;
}

.suggestion-icon-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-icon-media .asset-thumb-fallback {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.suggestion-icon-media .asset-thumb-fallback i,
.suggestion-icon-media .asset-thumb-fallback span,
.suggestion-icon-media .asset-thumb-fallback strong,
.suggestion-icon-media .asset-thumb-fallback small,
.suggestion-icon-media .audio-preview-btn {
  display: none;
}

.suggestion-icon-media.thumb-error .asset-thumb-fallback {
  opacity: 1;
}

.suggestion-icon-media.thumb-error .asset-thumb-fallback i {
  display: block;
}

.suggestion-copy {
  min-width: 0;
}

.suggestion-copy strong,
.suggestion-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-copy strong {
  color: var(--text-primary);
  font-size: 0.88rem;
}

.suggestion-copy small,
.suggestion-type,
.search-suggestion-empty {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.suggestion-type {
  padding: 0.22rem 0.52rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-cta {
  justify-content: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: var(--space-md);
  max-width: 600px;
  margin-inline: auto;
}

.hero-stat {
  padding: 0.9rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
}

.hero-chip-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.hero-chip-row a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.065);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  transition: var(--transition-normal);
}

.hero-chip-row a:hover {
  color: var(--text-primary);
  border-color: rgba(39,231,244,0.42);
  transform: translateY(-2px);
}

.hero-geometric-bg {
  display: none;
}

.hero {
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
}

.elegant-shape {
  display: none;
}

.elegant-shape span {
  display: none;
}

.elegant-shape span::after {
  opacity: 0.45;
}

.shape-xl { --shape-width: 470px; --shape-height: 88px; }
.shape-lg { --shape-width: 390px; --shape-height: 76px; }
.shape-md { --shape-width: 260px; --shape-height: 58px; }
.shape-sm { --shape-width: 170px; --shape-height: 44px; }
.shape-xs { --shape-width: 130px; --shape-height: 34px; }

.shape-left-top {
  left: -9%;
  top: 20%;
}

.shape-right-bottom {
  right: -8%;
  top: 76%;
}

.shape-left-bottom {
  left: 8%;
  bottom: 3%;
}

.shape-right-top {
  right: 13%;
  top: 13%;
}

.shape-top-mid {
  left: 22%;
  top: 7%;
}

.elegant-shape span {
  position: relative;
  display: block;
  width: var(--shape-width);
  height: var(--shape-height);
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(90deg, var(--shape-color), rgba(34, 211, 238, 0.14) 48%, transparent),
    radial-gradient(circle at 28% 50%, rgba(255,255,255,0.18), transparent 34%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: 0 8px 32px rgba(255, 255, 255, 0.12), 0 0 72px var(--shape-glow);
  animation: shapeFloat 12s ease-in-out infinite;
}

.elegant-shape span::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2), transparent 70%);
}

.shape-xl { --shape-width: 600px; --shape-height: 140px; }
.shape-lg { --shape-width: 500px; --shape-height: 120px; }
.shape-md { --shape-width: 300px; --shape-height: 80px; }
.shape-sm { --shape-width: 200px; --shape-height: 60px; }
.shape-xs { --shape-width: 150px; --shape-height: 40px; }

.shape-indigo { --shape-color: rgba(99, 102, 241, 0.36); --shape-glow: rgba(99,102,241,0.28); }
.shape-rose { --shape-color: rgba(255, 53, 200, 0.34); --shape-glow: rgba(255,53,200,0.25); }
.shape-violet { --shape-color: rgba(139, 92, 246, 0.34); --shape-glow: rgba(139,92,246,0.26); }
.shape-amber { --shape-color: rgba(245, 158, 11, 0.3); --shape-glow: rgba(245,158,11,0.2); }
.shape-cyan { --shape-color: rgba(34, 211, 238, 0.36); --shape-glow: rgba(34,211,238,0.26); }

.shape-left-top {
  --shape-rotate: 12deg;
  left: -10%;
  top: 15%;
  transform: rotate(12deg) translateY(-150px);
  animation-delay: 0.3s;
}

.shape-right-bottom {
  --shape-rotate: -15deg;
  right: -5%;
  top: 70%;
  transform: rotate(-15deg) translateY(-150px);
  animation-delay: 0.5s;
}

.shape-left-bottom {
  --shape-rotate: -8deg;
  left: 5%;
  bottom: 5%;
  transform: rotate(-8deg) translateY(-150px);
  animation-delay: 0.4s;
}

.shape-right-top {
  --shape-rotate: 20deg;
  right: 15%;
  top: 10%;
  transform: rotate(20deg) translateY(-150px);
  animation-delay: 0.6s;
}

.shape-top-mid {
  --shape-rotate: -25deg;
  left: 20%;
  top: 5%;
  transform: rotate(-25deg) translateY(-150px);
  animation-delay: 0.7s;
}

@keyframes shapeEnter {
  to {
    opacity: 1;
    transform: rotate(var(--shape-rotate, 0deg)) translateY(0);
  }
}

/* ============================================
   FINAL NAVBAR PASS
============================================ */
.navbar {
  top: 0;
  width: 100%;
  height: 88px;
  margin: 0;
  padding: 12px 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: visible;
}

.navbar::before {
  display: none;
}

.navbar .container {
  position: relative;
  width: min(1120px, calc(100% - 2rem));
  height: 64px;
  padding: 0 0.55rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.115), rgba(255,255,255,0.04)),
    rgba(7,10,22,0.9);
  box-shadow: 0 18px 70px rgba(0,0,0,0.34), inset 0 1px 0 rgba(255,255,255,0.1);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.navbar .container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(90deg, rgba(255,53,200,0.6), rgba(124,58,237,0.14) 45%, rgba(34,211,238,0.58));
  opacity: 0.85;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.navbar .container > * {
  position: relative;
  z-index: 1;
}

.nav-logo {
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.34rem 0.82rem 0.34rem 0.38rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(34,211,238,0.2), 0 0 0 1px rgba(255,255,255,0.45);
}

.nav-logo span {
  font-size: 1.12rem;
  letter-spacing: 0;
}

.nav-links {
  gap: 0.2rem;
  padding: 0.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.035);
}

.nav-links a {
  min-height: 42px;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: #B8C2D6;
  font-weight: 750;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,53,200,0.24), rgba(34,211,238,0.16)),
    rgba(255,255,255,0.07);
}

.nav-links a::after {
  display: none;
}

.nav-cta {
  margin-left: 0.25rem;
}

.nav-cta .btn {
  min-height: 46px;
  padding: 0 1.25rem;
  border-radius: 999px;
}

@media (max-width: 768px) {
  .navbar {
    height: 80px;
    padding: 8px 0;
  }

  .navbar .container {
    width: min(100% - 1rem, 760px);
    height: 64px;
    padding: 0 0.5rem;
  }

  .nav-logo {
    min-height: 50px;
    padding-right: 0.72rem;
  }

  .nav-logo img {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    top: calc(100% + 0.65rem);
    border-radius: 24px;
    padding: 0.85rem;
  }

  .nav-links a {
    min-height: 46px;
    padding: 0 1rem;
  }

  .nav-hamburger {
    flex: 0 0 auto;
  }
}

@keyframes shapeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}

.section {
  position: relative;
}

.recent-section {
  padding: var(--space-2xl) 0 var(--space-xl);
  background:
    linear-gradient(180deg, rgba(8,11,16,0), rgba(8,11,16,0.92) 36%),
    var(--bg-primary);
}

.cat-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: var(--space-xl);
  padding: 2rem 0 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.25rem;
}

.cat-hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.05;
}

.cat-hero p {
  max-width: 620px;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.browse-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.browse-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 1.25rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.045);
}

.sidebar-section h2 {
  margin-bottom: 0.7rem;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.filter-bar,
.collection-bar {
  display: grid;
  gap: 0.4rem;
}

.filter-btn,
.collection-btn {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  padding: 0.45rem 0.62rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text-secondary);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: left;
  transition: var(--transition-fast);
  min-width: 0;
}

.filter-btn {
  justify-content: flex-start;
}

.filter-btn i {
  color: var(--text-muted);
}

.filter-btn:hover,
.collection-btn:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.055);
}

.filter-btn.active,
.collection-btn.active {
  color: var(--text-primary);
  border-color: rgba(32,214,199,0.26);
  background: rgba(32,214,199,0.1);
  box-shadow: none;
}

.collection-btn span {
  color: var(--text-muted);
  font-size: 0.72rem;
}

.collection-btn .collection-label {
  color: inherit;
  font-size: inherit;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-empty {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
  padding: 0.2rem 0.15rem;
}

.asset-folder-divider {
  color: rgba(255,255,255,0.3);
}

.browse-content {
  min-width: 0;
}

.browse-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.search-wrap {
  position: relative;
  width: min(520px, 100%);
}

.search-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 1rem 0.7rem 2.65rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: rgba(255,255,255,0.055);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

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

.search-wrap input:focus {
  border-color: rgba(32,214,199,0.42);
  box-shadow: 0 0 0 3px rgba(32,214,199,0.12);
}

.search-wrap i {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.result-count {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.recent-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.recent-header .section-title {
  margin-bottom: 0.25rem;
  text-align: left;
}

.recent-header .section-subtitle {
  margin: 0;
  text-align: left;
}

.recent-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: var(--space-md);
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.2rem 0 0.8rem;
  scroll-snap-type: x mandatory;
}

.recent-strip::-webkit-scrollbar {
  display: none;
}

.recent-card {
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 92px;
  padding: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.14), rgba(255,255,255,0.045)),
    rgba(255,255,255,0.045);
  transition: var(--transition-normal);
}

.recent-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(34, 211, 238, 0.14);
}

.recent-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cat-accent);
  font-size: 1.25rem;
}

.recent-copy {
  min-width: 0;
}

.recent-copy strong,
.recent-copy small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-copy strong {
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.25;
}

.recent-copy small {
  color: var(--text-muted);
  font-size: 0.72rem;
  margin-top: 0.25rem;
}

.category-card,
.asset-card,
.pricing-card,
.contact-card,
.contact-form-wrap,
.faq-item,
.download-box {
  background: rgba(255,255,255,0.045);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.category-card {
  min-height: 146px;
  border-color: rgba(255,255,255,0.1);
}

.category-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.92);
  color: var(--cat-accent, var(--accent));
  box-shadow: none;
}

.asset-card {
  min-height: 100%;
  border-color: rgba(255,255,255,0.1);
}

.asset-thumb {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(255,255,255,0.035)),
    var(--bg-surface);
}

.asset-type-label {
  color: var(--cat-accent, var(--accent));
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}

.audio-preview-btn {
  min-width: 148px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  margin-top: var(--space-sm);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.22), transparent 34%),
    rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 14px 38px rgba(34, 211, 238, 0.14);
  transition: var(--transition-normal);
  position: relative;
  z-index: 3;
}

.audio-preview-btn.audio-preview-btn-icon {
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  margin-top: 0;
  border-radius: 50%;
  gap: 0;
  align-self: center;
  color: #fff;
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.24), transparent 34%),
    #111827;
  box-shadow: 0 16px 42px rgba(34, 211, 238, 0.14);
}

.audio-preview-btn.audio-preview-btn-icon::before {
  content: '';
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
}

.audio-preview-btn.audio-preview-btn-icon.playing::before {
  width: 18px;
  height: 20px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(90deg, currentColor 0 35%, transparent 35% 65%, currentColor 65% 100%);
}

.audio-preview-btn.audio-preview-btn-icon span {
  display: none;
}

.audio-preview-btn.audio-preview-btn-icon i {
  display: none;
}

.audio-preview-btn i {
  font-size: 1.1rem;
}

.audio-preview-btn span {
  color: var(--text-primary);
}

.audio-preview-btn:hover,
.audio-preview-btn.playing {
  transform: translateY(-1px);
  background:
    radial-gradient(circle at 35% 28%, rgba(255,255,255,0.28), transparent 34%),
    rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(34, 211, 238, 0.14);
}

.audio-preview-btn.audio-preview-btn-icon:hover,
.audio-preview-btn.audio-preview-btn-icon.playing {
  transform: translateY(-2px) scale(1.03);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-lg);
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl);
  text-align: left;
}

.pricing-card-premium {
  border-color: rgba(39, 231, 244, 0.42);
  box-shadow: 0 24px 90px rgba(46, 107, 255, 0.2);
}

.pricing-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  margin-bottom: var(--space-sm);
}

.pricing-price {
  font-size: 2.6rem;
  font-weight: 800;
  font-family: 'Poppins', sans-serif;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-copy {
  color: var(--text-secondary);
  margin: var(--space-lg) 0;
  font-size: 0.9rem;
}

.pricing-list {
  color: var(--text-secondary);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: var(--space-xl);
}

.pricing-list li {
  display: flex;
  gap: 0.55rem;
}

.pricing-ribbon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--gradient-pink);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
}

.full-width-btn {
  width: 100%;
  justify-content: center;
}

.modal-open {
  overflow: hidden;
}

.login-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background:
    radial-gradient(ellipse 44% 32% at 24% 14%, rgba(99,102,241,0.16), transparent 70%),
    radial-gradient(ellipse 38% 30% at 82% 78%, rgba(244,63,94,0.14), transparent 68%),
    rgba(2, 4, 12, 0.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  z-index: 10000;
}

.login-modal.open {
  display: flex;
}

.login-dialog {
  width: min(440px, 100%);
  position: relative;
  padding: var(--space-2xl);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.055)),
    linear-gradient(135deg, rgba(99,102,241,0.08), transparent 46%, rgba(244,63,94,0.08)),
    #050712;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 35px 120px rgba(0,0,0,0.62), 0 0 80px rgba(99,102,241,0.12);
  overflow: hidden;
}

.login-dialog::before,
.login-dialog::after {
  content: '';
  position: absolute;
  width: 210px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(90deg, rgba(99,102,241,0.16), transparent);
  filter: blur(0.2px);
  pointer-events: none;
}

.login-dialog::before {
  right: -72px;
  top: 26px;
  transform: rotate(-18deg);
}

.login-dialog::after {
  left: -92px;
  bottom: 36px;
  transform: rotate(15deg);
  background: linear-gradient(90deg, rgba(244,63,94,0.14), transparent);
}

.login-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.045);
  z-index: 1;
}

.login-mark img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 3px;
  border-radius: 16px;
  background: #fff;
  margin-bottom: var(--space-md);
  box-shadow: 0 18px 60px rgba(99,102,241,0.2);
  position: relative;
  z-index: 1;
}

.login-eyebrow {
  color: #A5B4FC;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.login-dialog h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  margin: 0.25rem 0 var(--space-sm);
  position: relative;
  z-index: 1;
}

.login-copy,
.login-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.login-form {
  display: grid;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
  position: relative;
  z-index: 1;
}

.login-form label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.login-form input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
}

.login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(39, 231, 244, 0.14);
}

.google-signin-btn {
  width: 100%;
  justify-content: center;
  gap: 0.6rem;
  margin: var(--space-lg) 0 var(--space-sm);
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.92);
  color: #111827;
  box-shadow: 0 18px 44px rgba(0,0,0,0.25);
}

.google-signin-btn:hover {
  transform: translateY(-2px);
  background: #fff;
}

.google-signin-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-error {
  min-height: 1.2rem;
  color: #FB7185;
  font-size: 0.85rem;
}

.account-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.account-stats div {
  display: grid;
  gap: 0.25rem;
  place-items: center;
  padding: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.055);
}

.account-stats i {
  color: var(--accent);
  font-size: 1.35rem;
}

.account-stats strong {
  font-family: 'Poppins', sans-serif;
  font-size: 1.45rem;
  line-height: 1;
}

.account-stats span {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-page {
  min-height: 100vh;
}

.admin-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.admin-header,
.admin-panel-head,
.admin-actions,
.admin-row-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.admin-header {
  margin-bottom: var(--space-xl);
}

.admin-header h1,
.admin-panel h2,
.admin-locked h2 {
  font-family: 'Poppins', sans-serif;
}

.admin-kicker {
  color: #A5B4FC;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.admin-user,
.admin-status {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.admin-locked,
.admin-panel {
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
}

.admin-locked {
  width: min(480px, 100%);
}

.admin-help {
  display: grid;
  gap: 0.55rem;
  margin: var(--space-lg) 0;
}

.admin-help div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.055);
  color: var(--text-secondary);
  font-size: 0.84rem;
}

.admin-help .ok i {
  color: #22C55E;
}

.admin-help .warn i {
  color: #F59E0B;
}

.admin-upload-mode {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.045);
  margin-top: 0.1rem;
}

.admin-upload-mode strong {
  font-size: 0.82rem;
}

.admin-upload-mode span {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
}

.admin-upload-mode.ok {
  border-color: rgba(34,197,94,0.24);
}

.admin-upload-mode.ok strong {
  color: #86EFAC;
}

.admin-upload-mode.info {
  border-color: rgba(56,189,248,0.24);
}

.admin-upload-mode.info strong {
  color: #7DD3FC;
}

.admin-upload-mode.warn {
  border-color: rgba(245,158,11,0.28);
}

.admin-upload-mode.warn strong {
  color: #FCD34D;
}

.admin-upload-mode.muted strong {
  color: var(--text-primary);
}

.admin-preview-panel {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
}

.admin-preview-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(135deg, rgba(32,214,199,0.08), rgba(59,130,246,0.08)),
    rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
}

.admin-preview-media img,
.admin-preview-empty {
  width: 100%;
  height: 100%;
}

.admin-preview-media img {
  object-fit: contain;
  background:
    linear-gradient(45deg, rgba(255,255,255,0.03) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.03) 50%, rgba(255,255,255,0.03) 75%, transparent 75%, transparent),
    linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.03) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.03) 75%, rgba(255,255,255,0.03));
  background-size: 22px 22px;
  background-position: 0 0, 11px 11px;
}

.admin-preview-empty {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  padding: 1rem;
  text-align: center;
  color: var(--text-muted);
}

.admin-preview-empty i {
  font-size: 2rem;
  color: var(--accent);
}

.admin-preview-empty span {
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-preview-copy {
  display: grid;
  gap: 0.2rem;
}

.admin-preview-copy strong {
  font-size: 0.84rem;
  color: var(--text-primary);
}

.admin-preview-copy span {
  color: var(--text-secondary);
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.admin-preview-panel.has-preview {
  border-color: rgba(32,214,199,0.18);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.admin-form {
  display: grid;
  gap: var(--space-sm);
}

.admin-form label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-form input,
.admin-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
}

.admin-form select option {
  background: #050712;
  color: var(--text-primary);
}

.admin-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.admin-list {
  display: grid;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
  max-height: 680px;
  overflow: auto;
  padding-right: 0.25rem;
}

.admin-bulk-toolbar,
.admin-bulk-actions,
.admin-bulk-meta,
.admin-bulk-filter {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.admin-bulk-toolbar {
  justify-content: space-between;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.admin-bulk-filter {
  flex-wrap: wrap;
}

.admin-bulk-filter label {
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-bulk-filter select {
  min-width: 200px;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,0.07);
  color: var(--text-primary);
}

.admin-bulk-filter select option {
  background: #050712;
  color: var(--text-primary);
}

.admin-bulk-actions {
  flex-wrap: wrap;
}

.admin-bulk-meta {
  justify-content: space-between;
  margin-top: var(--space-sm);
  flex-wrap: wrap;
}

.admin-asset-row {
  display: grid;
  grid-template-columns: auto 58px 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-sm);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.045);
}

.admin-asset-select {
  position: relative;
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
}

.admin-asset-select input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.admin-asset-select span {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  transition: var(--transition-fast);
}

.admin-asset-select input:checked + span {
  border-color: rgba(32,214,199,0.5);
  background: linear-gradient(135deg, rgba(32,214,199,0.34), rgba(59,130,246,0.38));
  box-shadow: 0 0 0 3px rgba(32,214,199,0.12);
}

.admin-asset-select input:checked + span::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(45deg);
}

.admin-asset-thumb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: var(--text-muted);
}

.admin-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-asset-row h3 {
  font-size: 0.96rem;
  line-height: 1.25;
}

.admin-asset-row p {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.admin-row-actions .btn {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
}

.admin-action-btn {
  width: auto !important;
  min-width: 108px;
  padding: 0 0.9rem !important;
  gap: 0.45rem;
}

.admin-action-btn.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.danger-btn:hover {
  border-color: #FB7185;
  color: #FB7185;
}

@media (max-width: 768px) {
  .navbar {
    top: 0.5rem;
    width: min(100% - 1rem, 760px);
    border-radius: 24px;
  }

  .navbar .container {
    padding-inline: 0.65rem;
  }

  .nav-logo {
    padding-right: 0.7rem;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 0;
    right: 0;
    border-radius: 24px;
    padding: 0.8rem;
    background: #ffffff;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid #e5e7eb;
  }

  .admin-header,
  .admin-panel-head,
  .admin-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-grid,
  .admin-two,
  .admin-asset-row {
    grid-template-columns: 1fr;
  }

  .admin-bulk-toolbar,
  .admin-bulk-meta,
  .admin-bulk-actions,
  .admin-bulk-filter {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-bulk-filter select,
  .admin-bulk-actions .btn {
    width: 100%;
  }

  .admin-asset-select {
    width: 24px;
    height: 24px;
  }

  .admin-row-actions {
    justify-content: flex-start;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-hamburger {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
  }

  .hero {
    padding: 6.5rem 0 3.5rem;
  }

  .hero-search {
    grid-template-columns: auto 1fr;
    border-radius: var(--radius-lg);
  }

  .hero-search .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

  .search-suggestions {
    max-height: 58vh;
    overflow: auto;
  }

  .search-suggestion {
    grid-template-columns: 38px 1fr;
  }

  .suggestion-type {
    display: none;
  }

  .cat-hero {
    display: block;
    padding-top: 1.25rem;
  }

  .browse-shell {
    grid-template-columns: 1fr;
  }

  .browse-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    padding: 0.85rem;
  }

  .filter-bar,
  .collection-bar {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .filter-bar::-webkit-scrollbar,
  .collection-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn,
  .collection-btn {
    width: auto;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .browse-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-wrap {
    width: 100%;
  }

  .elegant-shape {
    opacity: 0.72;
  }

  .shape-xl { --shape-width: 380px; --shape-height: 92px; }
  .shape-lg { --shape-width: 330px; --shape-height: 84px; }
  .shape-md { --shape-width: 220px; --shape-height: 64px; }

  .shape-left-top { left: -42%; top: 12%; }
  .shape-right-bottom { right: -42%; top: 78%; }
  .shape-right-top { right: -18%; top: 8%; }

  .recent-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .recent-strip {
    grid-auto-columns: minmax(245px, 82vw);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: var(--space-xl);
  }
}

/* Final professional layout overrides */
.hero-geometric-bg {
  z-index: 1;
}

.elegant-shape {
  position: absolute;
  opacity: 0;
  animation: shapeEnter 1.6s cubic-bezier(0.23, 0.86, 0.39, 0.96) forwards;
}

.elegant-shape span {
  position: relative;
  display: block;
  width: var(--shape-width);
  height: var(--shape-height);
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.13);
  background:
    linear-gradient(90deg, var(--shape-color), rgba(34, 211, 238, 0.14) 52%, transparent),
    rgba(255,255,255,0.035);
  box-shadow: 0 0 48px var(--shape-glow);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  animation: shapeFloat 12s ease-in-out infinite;
}

.elegant-shape span::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 46% 50%, rgba(255,255,255,0.12), transparent 70%);
  opacity: 0.45;
}

.shape-xl { --shape-width: 470px; --shape-height: 88px; }
.shape-lg { --shape-width: 390px; --shape-height: 76px; }
.shape-md { --shape-width: 260px; --shape-height: 58px; }
.shape-sm { --shape-width: 170px; --shape-height: 44px; }
.shape-xs { --shape-width: 130px; --shape-height: 34px; }

.shape-left-top {
  --shape-rotate: 12deg;
  left: -9%;
  top: 20%;
  transform: rotate(12deg) translateY(-150px);
}

.shape-right-bottom {
  --shape-rotate: -15deg;
  right: -8%;
  top: 76%;
  transform: rotate(-15deg) translateY(-150px);
}

.shape-left-bottom {
  --shape-rotate: -8deg;
  left: 8%;
  bottom: 3%;
  transform: rotate(-8deg) translateY(-150px);
}

.shape-right-top {
  --shape-rotate: 20deg;
  right: 13%;
  top: 13%;
  transform: rotate(20deg) translateY(-150px);
}

.shape-top-mid {
  --shape-rotate: -25deg;
  left: 22%;
  top: 7%;
  transform: rotate(-25deg) translateY(-150px);
}

body:has(.browse-shell) {
  background:
    linear-gradient(90deg, rgba(251,113,133,0.07), transparent 26%),
    linear-gradient(110deg, transparent 54%, rgba(32,214,199,0.08)),
    var(--bg-primary);
}

body:has(.browse-shell) main {
  padding-top: 1rem;
}

.browse-shell ~ * {
  min-width: 0;
}

.browse-shell {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.25rem;
}

body:has(.browse-shell) main .container {
  max-width: min(1500px, calc(100% - 1.5rem));
}

.browse-shell {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.25rem;
}

.browse-sidebar {
  align-self: start;
  max-height: calc(100vh - 118px);
  overflow: auto;
}

.browse-content {
  align-self: start;
  min-width: 0;
}

.browse-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
}

.browse-content .assets-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  align-items: start;
  gap: 1rem;
}

.asset-thumb-fallback {
  min-height: 100%;
}

.asset-thumb-audio {
  background:
    radial-gradient(circle at 50% 48%, rgba(34, 211, 238, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(245,158,11,0.14), rgba(255,255,255,0.035)),
    var(--bg-surface);
}

.audio-preview-btn i {
  transform: translateX(1px);
}

.audio-preview-btn.playing i {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .shape-left-top { left: -36%; top: 16%; }
  .shape-right-bottom { right: -36%; top: 82%; }
  .shape-left-bottom { left: -20%; bottom: 6%; }
  .shape-right-top { right: -14%; top: 10%; }
  .shape-top-mid { left: 20%; top: 4%; }

  .browse-sidebar {
    max-height: none;
    overflow: visible;
  }
}

/* Mobile fixes: keep the category browser and auth dialogs inside the viewport. */
@media (max-width: 768px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .container {
    padding-inline: 0.85rem;
  }

  body:has(.browse-shell) main {
    padding-top: 0.35rem;
  }

  .cat-hero {
    padding: 1rem 0 0.85rem;
    margin-bottom: 0.85rem;
  }

  .cat-hero h1 {
    font-size: 1.85rem;
  }

  .cat-hero p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .browse-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    width: 100%;
    overflow: hidden;
  }

  .browse-sidebar,
  .browse-content {
    min-width: 0;
    width: 100%;
  }

  .browse-sidebar {
    position: static;
    padding: 0.75rem;
    border-radius: 12px;
    max-height: none;
    overflow: hidden;
  }

  .sidebar-section h2 {
    margin-bottom: 0.45rem;
    font-size: 0.66rem;
  }

  .filter-bar,
  .collection-bar {
    display: flex;
    gap: 0.4rem;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
  }

  .filter-bar::-webkit-scrollbar,
  .collection-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-btn,
  .collection-btn {
    width: auto;
    max-width: 72vw;
    min-height: 36px;
    flex: 0 0 auto;
    padding: 0.42rem 0.58rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .collection-btn span {
    margin-left: 0.25rem;
  }

  .browse-toolbar {
    gap: 0.65rem;
  }

  .search-wrap {
    min-height: 48px;
    border-radius: 14px;
  }

  .result-count {
    font-size: 0.82rem;
  }

  .browse-content .assets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .asset-card {
    min-width: 0;
    border-radius: 10px;
  }

  .asset-card-actions {
    top: 0.45rem;
    right: 0.45rem;
    gap: 0.25rem;
  }

  .asset-action-btn {
    min-width: 30px;
    height: 30px;
    font-size: 0.86rem;
  }

  .asset-thumb {
    aspect-ratio: 1 / 1;
  }

  .asset-thumb-fallback i,
  .asset-audio-preview i {
    font-size: 1.55rem;
  }

  .asset-thumb-fallback span {
    font-size: 0.68rem;
  }

  .asset-thumb-fallback small {
    display: none;
  }

  .audio-preview-btn {
    min-width: 46px;
    min-height: 46px;
    padding: 0.7rem 0.85rem;
    font-size: 0.74rem;
  }

  .audio-preview-btn span {
    display: none;
  }

  .asset-info {
    padding: 0.65rem;
  }

  .asset-info-top {
    display: block;
  }

  .asset-type-label {
    font-size: 0.58rem;
  }

  .asset-title {
    min-height: 2.35em;
    font-size: 0.78rem;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .asset-category,
  .asset-tags,
  .asset-card-cta {
    display: none;
  }

  .badge {
    margin-top: 0.35rem;
    padding: 0.16rem 0.48rem;
    font-size: 0.58rem;
  }

  .login-modal {
    align-items: flex-start;
    padding: 1rem 0.75rem;
    overflow-y: auto;
  }

  .login-dialog {
    width: 100%;
    max-width: 420px;
    padding: 1.15rem;
    border-radius: 18px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }

  .login-dialog::before,
  .login-dialog::after {
    width: 148px;
    height: 42px;
  }

  .login-mark img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin-bottom: 0.8rem;
  }

  .login-dialog h2 {
    font-size: 1.45rem;
  }

  .google-signin-btn {
    min-height: 46px;
    margin: 1rem 0 0.5rem;
    font-size: 0.86rem;
  }

  .login-error,
  .login-copy,
  .login-note {
    font-size: 0.82rem;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .browse-content .assets-grid {
    gap: 0.5rem;
  }

  .asset-info {
    padding: 0.55rem;
  }

  .asset-title {
    font-size: 0.74rem;
  }
}

/* Category browser refinements */
.browse-shell {
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 1.25rem;
}

.browse-sidebar {
  gap: 1rem;
  padding: 0.9rem;
  max-height: calc(100vh - 128px);
  overflow: auto;
}

.sidebar-section {
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}

.sidebar-section + .sidebar-section {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.browse-sidebar .collection-bar,
.browse-sidebar .filter-bar {
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.browse-filter-row {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1rem;
  padding: 0.7rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
}

.browse-filter-group {
  min-width: 0;
}

.browse-filter-group h2 {
  margin-bottom: 0.55rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.browse-filter-group .collection-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  overflow: visible;
  padding-bottom: 0.12rem;
  align-items: flex-start;
}

.browse-filter-group .collection-bar::-webkit-scrollbar {
  display: none;
}

.browse-filter-group .collection-btn {
  width: auto;
  max-width: 220px;
  flex: 0 0 auto;
  min-width: 0;
}

.browse-filter-group[hidden] {
  display: none;
}

.filter-btn,
.collection-btn {
  min-height: 40px;
  padding: 0.52rem 0.72rem;
  border-radius: 12px;
}

.collection-btn {
  align-items: flex-start;
  background: rgba(255,255,255,0.02);
}

.collection-btn .collection-label {
  margin-left: 0;
  padding-left: 0;
}

.folder-summary {
  width: 100%;
  margin-top: 0.15rem;
  color: var(--text-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.sidebar-section-compact .filter-bar {
  grid-template-columns: 1fr;
}

.sidebar-section-compact .filter-btn {
  min-height: 36px;
}

.sidebar-section-compact .filter-btn:not(.active) {
  color: rgba(34, 211, 238, 0.14);
}

.browse-toolbar {
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.search-wrap {
  width: min(640px, 100%);
}

.result-count {
  padding-top: 0.65rem;
}

@media (max-width: 1024px) {
  .browse-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .browse-content .assets-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .cat-hero {
    display: block;
  }

  .cat-hero h1,
  .cat-hero p {
    max-width: 100%;
  }

  .browse-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
    overflow: hidden;
  }

  .browse-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrap,
  .result-count {
    width: 100%;
  }

  .result-count {
    padding-top: 0;
  }

  .browse-sidebar {
    position: static;
    gap: 0.85rem;
    max-height: none;
    overflow: visible;
  }

  .sidebar-section-compact .filter-bar {
    display: flex;
    grid-template-columns: none;
    gap: 0.4rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.15rem;
  }

  .sidebar-section-compact .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .sidebar-section-compact .filter-btn {
    width: auto;
    max-width: 74vw;
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .sidebar-section + .sidebar-section {
    border-top: 0;
    padding-top: 0;
  }

  .browse-sidebar .collection-bar,
  .browse-sidebar .filter-bar {
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
  }

  .browse-filter-row {
    margin-bottom: 0.85rem;
    padding: 0.65rem;
    border-radius: 12px;
  }

  .browse-filter-group .collection-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .browse-filter-group .collection-btn {
    max-width: 74vw;
  }

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

  .audio-preview-btn.audio-preview-btn-icon {
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
  }
}

@media (max-width: 480px) {
  .browse-content .assets-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .asset-thumb-audio > i {
    top: 0.85rem;
  }
}

@media (max-width: 640px) {
  .browse-content .assets-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .browse-filter-row,
  .browse-sidebar,
  .search-wrap {
    max-width: 100%;
  }
}

/* ============================================
   MARKETPLACE REFRESH
============================================ */
:root {
  --bg-primary: #ffffff;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --primary: #111827;
  --primary-light: #3b82f6;
  --accent: #0891b2;
  --pink: #e11d48;
  --violet: #7c3aed;
  --gradient-brand: linear-gradient(90deg, #e11d48 0%, #111827 38%, #111827 100%);
  --gradient-pink: linear-gradient(135deg, #e11d48, #7c3aed);
  --text-primary: #0d1117;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --glass-bg: #ffffff;
  --glass-border: #e5e7eb;
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.08);
  --navbar-height: 74px;
  --container-max: 1480px;
}

body {
  background: var(--bg-primary);
  color: var(--text-primary);
}

.js-enabled .fade-in,
.fade-in {
  opacity: 1;
  transform: none;
}

body:has(.browse-shell) {
  background: #ffffff;
}

.bg-mesh,
.hero-geometric-bg,
.hero::before,
.hero::after,
.navbar::before,
.navbar .container::before {
  display: none !important;
}

.glass-card,
.category-card,
.asset-card,
.pricing-card,
.contact-card,
.contact-form-wrap,
.faq-item,
.download-box,
.browse-sidebar,
.browse-filter-row {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.top-offer {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 0.55rem 1rem;
  background: #fff1e6;
  color: #0d1117;
  border-bottom: 1px solid #eadfd5;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.top-offer a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 1.35rem;
  border-radius: 6px;
  background: #8eea5d;
  color: #10200d;
  font-weight: 800;
}

.navbar {
  top: 0;
  width: 100%;
  height: var(--navbar-height);
  margin: 0;
  border-radius: 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: none;
}

.navbar .container {
  position: static;
  width: 100%;
  height: 100%;
  max-width: var(--container-max);
  padding-inline: 1.875rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-logo {
  color: #111827;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nav-logo img {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: multiply;
}

.nav-logo span {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: #111827;
}

.nav-links {
  gap: 0.25rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.nav-links a {
  min-height: 40px;
  padding: 0 0.55rem;
  border-radius: 8px;
  color: #4b5563;
  font-size: 0.9rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: #111827;
  background: #f3f4f6;
}

.nav-links a::after {
  display: none;
}

.nav-cta .btn,
.btn-primary {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  background: #78e33f;
  color: #10200d;
  box-shadow: none;
  font-weight: 850;
}

.nav-account a {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #111827;
  font-size: 1.75rem;
}

.nav-account a:hover,
.nav-account a.is-authenticated {
  background: #ffffff;
  color: #020617;
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: #69d932;
  box-shadow: none;
}

.btn-outline {
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
}

.btn-outline:hover {
  border-color: #9ca3af;
  color: #111827;
  background: #f9fafb;
}

.nav-hamburger span {
  background: #111827;
}

.hero {
  min-height: 0;
  align-items: flex-start;
  padding: 4.25rem 0 2.5rem;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  text-align: left;
  overflow: visible;
}

.hero-content {
  max-width: none;
  text-align: left;
}

.hero-badge {
  margin-bottom: 1.1rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6b7280;
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-badge .dot {
  background: #78e33f;
}

.hero h1 {
  max-width: 980px;
  margin-bottom: 0.65rem;
  color: #020617;
  font-size: clamp(2.45rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: 0;
}

.hero .gradient-text,
.gradient-text {
  background: linear-gradient(90deg, #b832b9 0%, #111827 28%, #111827 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  max-width: 720px;
  margin: 0 0 1.45rem;
  color: #4b5563;
  font-size: 1.08rem;
  line-height: 1.48;
  font-weight: 500;
}

.hero-search {
  width: min(1180px, 100%);
  margin: 0 0 1.2rem;
  grid-template-columns: auto auto auto 1fr auto;
  gap: 0.75rem;
  min-height: 62px;
  padding: 0.35rem 0.45rem 0.35rem 1rem;
  border: 1px solid #cfd4dc;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: none;
}

.hero-search-type {
  color: #111827;
  font-size: 0.95rem;
  font-weight: 800;
  white-space: nowrap;
}

.hero-search-divider {
  width: 1px;
  height: 30px;
  background: #d1d5db;
}

.hero-search > i,
.search-wrap i {
  color: #111827;
}

.hero-search input {
  height: 52px;
  color: #111827;
  font-size: 1rem;
}

.hero-search input::placeholder,
.search-wrap input::placeholder {
  color: #6b7280;
}

.search-suggestions {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

.search-suggestion:hover {
  background: #f3f4f6;
}

.suggestion-copy strong {
  color: #111827;
}

.suggestion-copy small,
.suggestion-type,
.search-suggestion-empty {
  color: #6b7280;
}

.hero-cta {
  justify-content: flex-start;
  margin-bottom: 1.1rem;
}

.hero-chip-row {
  justify-content: flex-start;
  gap: 0.45rem;
  margin-top: 0;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}

.hero-chip-row::-webkit-scrollbar {
  display: none;
}

.hero-chip-row a {
  flex: 0 0 auto;
  padding: 0.43rem 0.9rem;
  border: 1px solid #9ca3af;
  border-radius: 999px;
  background: #fffaf5;
  color: #111827;
  font-size: 0.9rem;
  font-weight: 750;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero-chip-row a:hover {
  color: #111827;
  border-color: #111827;
  transform: none;
}

.hero-stats {
  display: none;
}

.hero-stat {
  padding: 0.8rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hero-stat span:first-child {
  background: none;
  -webkit-text-fill-color: #111827;
  color: #111827;
  font-size: 1.55rem;
}

.hero-stat span:last-child {
  color: #6b7280;
  font-weight: 750;
}

.section,
.recent-section {
  padding: 3.2rem 0;
  background: #ffffff;
}

.recent-section {
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
}

.section-title {
  color: #020617;
  font-size: clamp(1.65rem, 2.7vw, 2.15rem);
  line-height: 1.14;
}

.section-subtitle {
  color: #4b5563;
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.category-card {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.category-card::before {
  display: none;
}

.category-card:hover {
  transform: none;
  box-shadow: none;
}

.category-preview {
  width: 100%;
  aspect-ratio: 1.28 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eef2f7;
  color: var(--cat-accent, #2563eb);
  font-size: 2.4rem;
}

.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.category-card:hover .category-preview img {
  transform: scale(1.035);
}

.category-copy {
  padding-top: 0.72rem;
}

.category-card h3 {
  color: #020617;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.25;
}

.category-card p {
  margin-top: 0.1rem;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 650;
}

.category-icon {
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.assets-grid,
.browse-content .assets-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.55rem;
}

.asset-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.asset-card:hover {
  transform: none;
  box-shadow: none;
}

.asset-thumb {
  border-radius: 0;
  aspect-ratio: 16 / 10;
  background: #eef2f7;
}

.asset-thumb img,
.asset-thumb video {
  border-radius: 0;
}

.asset-card:hover .asset-thumb img,
.asset-card:hover .asset-thumb video {
  transform: scale(1.025);
}

.asset-info {
  padding: 0.75rem 0 0;
}

.asset-type-label {
  color: #6b7280;
  font-size: 0.74rem;
  letter-spacing: 0;
}

.asset-title {
  color: #020617;
  font-size: 1rem;
  line-height: 1.28;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.asset-category,
.asset-tags {
  color: #6b7280;
}

.asset-card-cta {
  display: none;
}

.asset-action-btn {
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  border-color: rgba(17, 24, 39, 0.16);
}

.badge {
  border: 0;
  border-radius: 5px;
  color: #111827;
  background: #eef2f7;
}

.badge-free {
  background: #dffbd2;
  color: #1f4a14;
}

.badge-premium {
  background: #ffe7c2;
  color: #7c3f00;
}

.cat-hero {
  display: block;
  margin-bottom: 1.4rem;
  padding: 3.4rem 0 1.1rem;
  border: 0;
}

.cat-hero h1 {
  max-width: 900px;
  color: #020617;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.cat-hero p {
  margin-top: 0.65rem;
  color: #4b5563;
  font-size: 1rem;
}

body:has(.browse-shell) main .container {
  max-width: min(1560px, calc(100% - 3rem));
}

.browse-shell {
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.browse-sidebar {
  position: static;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.sidebar-section h2,
.browse-filter-group h2 {
  color: #6b7280;
  letter-spacing: 0;
}

.sidebar-section-compact .filter-bar,
.filter-bar,
.collection-bar {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.25rem;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
}

.filter-bar::-webkit-scrollbar,
.collection-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn,
.collection-btn,
.browse-filter-group .collection-btn {
  width: auto;
  max-width: none;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.55rem 0.95rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-weight: 750;
  white-space: nowrap;
}

.filter-btn:hover,
.collection-btn:hover,
.filter-btn.active,
.collection-btn.active {
  color: #111827;
  border-color: #111827;
  background: #f3f4f6;
}

.browse-toolbar {
  align-items: center;
  margin-bottom: 1rem;
}

.search-wrap {
  width: min(920px, 100%);
}

.search-wrap input {
  min-height: 58px;
  padding-left: 3rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #f7f7f8;
  color: #111827;
  font-size: 1rem;
}

.search-wrap input:focus {
  border-color: #111827;
  box-shadow: none;
  background: #ffffff;
}

.browse-filter-row {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.browse-filter-group .collection-bar {
  flex-wrap: nowrap;
}

.result-count {
  color: #6b7280;
  font-weight: 750;
}

.browse-content [aria-busy="true"] {
  opacity: 0.62;
  transition: opacity 140ms ease;
}

.pricing-grid {
  max-width: 980px;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.pricing-card {
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.pricing-card-premium {
  border-color: #78e33f;
  box-shadow: 0 18px 48px rgba(113, 226, 65, 0.22);
}

.pricing-price {
  color: #111827;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.pricing-copy,
.pricing-list {
  color: #4b5563;
}

.pricing-ribbon {
  border-radius: 5px;
  background: #78e33f;
  color: #10200d;
}

.footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
}

.footer p,
.footer a,
.footer-col li a {
  color: #4b5563;
}

.footer-col h4,
.footer .nav-logo span {
  color: #111827;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.footer a:hover,
.footer-col li a:hover {
  color: #111827;
}

.footer-brand-wide-logo {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
  object-position: center;
  margin-bottom: 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* Brand and footer interaction fixes. */
.navbar .nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #111827;
  font-family: 'Inter', sans-serif;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: 0;
}

.navbar .nav-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: normal;
}

.navbar .nav-logo span {
  color: #111827;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.footer {
  position: relative;
  z-index: 5;
  isolation: isolate;
}

.footer a,
.footer button,
.footer .social-link {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .top-offer {
    font-size: 0.84rem;
    justify-content: space-between;
  }

  .navbar {
    height: 66px;
  }

  .navbar .container {
    padding-inline: 1rem;
  }

  .nav-links {
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  }

  .nav-links a {
    width: 100%;
  }

  .nav-hamburger {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #ffffff;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero-search {
    border-radius: 20px;
    grid-template-columns: auto auto auto 1fr;
  }

  .hero-search .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }


  .assets-grid,
  .browse-content .assets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

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

@media (max-width: 640px) {
  .top-offer {
    display: none;
  }

  .container {
    padding-inline: 1rem;
  }

  .hero {
    padding: 2.25rem 0 1.75rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .hero-stat span:first-child {
    font-size: 1.12rem;
  }

  .hero-stat span:last-child {
    font-size: 0.68rem;
  }

  .categories-grid,
  .assets-grid,
  .browse-content .assets-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .asset-thumb {
    aspect-ratio: 16 / 11;
  }

  body:has(.browse-shell) main .container {
    max-width: 100%;
  }

  .cat-hero {
    padding-top: 1.6rem;
  }
}

/* Envato-style organization, EditVault palette */
:root {
  --brand-cyan: #0891b2;
  --brand-pink: #e11d48;
  --brand-ink: #111827;
  --brand-soft: #f8fafc;
  --brand-line: #d8dee8;
  --brand-wash: #f4f7fb;
  --gradient-brand: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-pink) 46%, var(--brand-ink) 100%);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.top-offer {
  background:
    linear-gradient(90deg, rgba(8, 145, 178, 0.08), rgba(225, 29, 72, 0.06)),
    #f8fafc;
  border-bottom-color: var(--brand-line);
}

.top-offer a,
.btn-primary,
.nav-cta .btn {
  background: var(--brand-ink);
  color: #ffffff;
}

.top-offer a:hover,
.btn-primary:hover {
  background: #020617;
  color: #ffffff;
}

.nav-logo {
  gap: 0.62rem;
  font-size: 1.7rem;
}

.nav-logo img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.nav-logo span {
  color: var(--brand-ink);
}

.nav-search {
  flex: 1 1 560px;
  max-width: 860px;
  min-height: 54px;
  display: grid;
  grid-template-columns: auto auto auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  margin-inline: 1.5rem;
  padding: 0.35rem 0.5rem 0.35rem 1.15rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
}

.nav-search-type {
  color: #111827;
  font-size: 0.94rem;
  font-weight: 750;
  white-space: nowrap;
}

.nav-search-divider {
  width: 1px;
  height: 30px;
  background: #d1d5db;
}

.nav-search i {
  color: #111827;
  font-size: 1.2rem;
}

.nav-search input {
  min-width: 0;
  color: #111827;
  font-size: 1rem;
}

.nav-search button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #f3f4f6;
}

.nav-search button:hover {
  background: #e5e7eb;
}

.hero .gradient-text,
.gradient-text {
  background: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-pink) 42%, var(--brand-ink) 78%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cat-hero {
  margin-bottom: 0;
  padding: 2.85rem 0 2rem;
  background:
    linear-gradient(90deg, rgba(8, 145, 178, 0.07), rgba(225, 29, 72, 0.055)),
    var(--brand-soft);
}

body:has(.browse-shell) main .container {
  max-width: none;
  width: 100%;
  padding-inline: clamp(1rem, 2.25vw, 2.5rem);
  overflow-x: clip;
}

.browse-shell {
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 2.35rem;
  padding: 2.6rem 0 4rem;
  background: #ffffff;
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
}

.browse-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
  padding-right: 2.4rem;
  border-right: 1px solid #d9dde5;
}

.sidebar-section h2 {
  margin-bottom: 1.05rem;
  color: #111827;
  font-size: 1.2rem;
  font-weight: 850;
  text-transform: none;
}

.sidebar-section-compact .filter-bar,
.filter-bar {
  display: grid;
  gap: 0.84rem;
  overflow: visible;
  padding: 0;
}

.filter-btn {
  min-height: 38px;
  justify-content: flex-start;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #111827;
  font-size: 1rem;
  font-weight: 650;
}

.filter-btn::before {
  content: '';
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid #aeb4bf;
  border-radius: 5px;
  background: #ffffff;
}

.filter-btn.active::before {
  border-color: var(--brand-cyan);
  background:
    linear-gradient(135deg, var(--brand-cyan), var(--brand-pink));
  box-shadow: inset 0 0 0 6px #ffffff;
}

.filter-btn:hover,
.filter-btn.active {
  border: 0;
  background: transparent;
  color: #111827;
}

.filter-btn i {
  display: none;
}

.listing-head {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 850;
}

.filter-toggle i {
  font-size: 1.45rem;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #4b5563;
  font-size: 1rem;
}

.sort-control select {
  color: #111827;
  font-weight: 850;
  cursor: pointer;
}

.browse-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 680px) auto;
  margin-bottom: 1.1rem;
}

.browse-toolbar .search-wrap {
  width: 100%;
}

.result-count {
  justify-self: end;
  align-self: center;
  padding-top: 0;
}

.browse-filter-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.05rem;
}

.browse-content .assets-grid {
  margin-top: 0;
}

body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) {
  margin-top: -7rem;
}

.browse-filter-group h2 {
  display: none;
}

.browse-filter-group .collection-bar {
  gap: 0.55rem;
  overflow-x: auto;
}

.collection-btn,
.browse-filter-group .collection-btn {
  min-height: 42px;
  padding: 0.5rem 1rem;
  border-color: #c9ced8;
  background: #ffffff;
  color: #111827;
}

.collection-btn.active {
  border-color: var(--brand-ink);
  background: #f6f7f9;
}

.assets-grid,
.browse-content .assets-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 0.65rem;
}

.browse-content .asset-thumb {
  aspect-ratio: 16 / 9;
}

.assets-grid.audio-listing,
.browse-content .assets-grid.audio-listing {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin-top: -7.25rem;
}

.audio-listing .asset-card {
  min-height: 122px;
  padding: 1.1rem 7rem 1.1rem 0;
  border-bottom: 1px solid #edf0f4;
  transition: background 160ms ease;
}

.audio-listing .asset-card.audio-active {
  background: var(--brand-wash);
}

.audio-listing .asset-card-actions {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.audio-listing .asset-card-link {
  display: grid;
  grid-template-columns: 72px minmax(210px, 320px) minmax(240px, 1fr);
  align-items: center;
  gap: 1.25rem;
}

.audio-listing .asset-thumb {
  width: 62px;
  height: 62px;
  aspect-ratio: auto;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
}

.audio-listing .asset-thumb-fallback {
  border-radius: inherit;
  background: #ffffff;
}

.audio-listing .asset-thumb-fallback span,
.audio-listing .asset-thumb-fallback strong,
.audio-listing .asset-thumb-fallback small {
  display: none;
}

.audio-listing .asset-thumb-fallback i {
  font-size: 1.45rem;
  color: var(--brand-ink);
}

.audio-listing .audio-preview-btn.audio-preview-btn-icon {
  width: 62px;
  min-width: 62px;
  height: 62px;
  min-height: 62px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: var(--brand-ink);
  box-shadow: none;
}

.audio-listing .audio-active .audio-preview-btn.audio-preview-btn-icon {
  border-color: var(--brand-cyan);
  background: var(--brand-cyan);
  color: #ffffff;
}

.audio-listing .asset-info {
  display: contents;
}

.audio-listing .asset-info-top {
  display: block;
  min-width: 0;
}

.audio-listing .asset-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.audio-listing .asset-category {
  min-height: 36px;
  display: flex;
  align-items: center;
  color: #4b5563;
  position: relative;
  isolation: isolate;
}

.audio-listing .asset-category::before {
  content: '';
  flex: 1 1 auto;
  height: 34px;
  margin-right: 1.25rem;
  background:
    linear-gradient(90deg, transparent 0 5%, rgba(17,24,39,0.45) 5% 8%, transparent 8% 12%, rgba(17,24,39,0.35) 12% 19%, transparent 19% 26%, rgba(17,24,39,0.5) 26% 42%, transparent 42% 52%, rgba(17,24,39,0.42) 52% 76%, transparent 76% 100%),
    linear-gradient(#9ca3af, #9ca3af) center / 100% 1px no-repeat;
  clip-path: polygon(0 45%, 8% 44%, 8% 30%, 10% 70%, 12% 38%, 15% 68%, 18% 35%, 22% 57%, 26% 36%, 29% 67%, 34% 32%, 38% 70%, 44% 46%, 50% 58%, 56% 34%, 64% 68%, 72% 42%, 80% 62%, 88% 40%, 100% 50%, 100% 52%, 0 52%);
}

.audio-listing .asset-category::after {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  z-index: -1;
  width: var(--audio-progress, 0%);
  max-width: calc(100% - 16rem);
  height: 3px;
  transform: translateY(-50%);
  background: var(--brand-cyan);
  border-radius: 999px;
  transition: width 120ms linear;
}

.audio-listing .asset-tags,
.audio-listing .badge,
.audio-listing .asset-card-cta {
  display: none;
}

@media (max-width: 1180px) {
  .nav-search {
    display: none;
  }

  .browse-shell {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.5rem;
  }

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

@media (max-width: 820px) {
  body:has(.browse-shell) main .container {
    padding-inline: 1rem;
  }

  .browse-shell {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 1.3rem;
  }

  .browse-sidebar {
    position: static;
    padding-right: 0;
    border-right: 0;
  }

  .sidebar-section-compact .filter-bar,
  .filter-bar {
    display: flex;
    overflow-x: auto;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 0.48rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    white-space: nowrap;
  }

  .filter-btn::before {
    display: none;
  }

  .filter-btn.active {
    border: 1px solid var(--brand-ink);
    background: #f6f7f9;
  }

  .listing-head,
  .browse-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .listing-head {
    flex-direction: column;
    align-items: stretch;
  }

  .sort-control {
    justify-content: space-between;
    gap: 0.75rem;
    white-space: nowrap;
  }

  .sort-control span {
    white-space: nowrap;
  }

  .audio-listing .asset-card-link {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .audio-listing .asset-category {
    grid-column: 1 / -1;
  }

  body:has(.browse-shell) .browse-content .assets-grid {
    margin-top: 0;
  }

  .assets-grid.audio-listing,
  .browse-content .assets-grid.audio-listing {
    margin-top: 0;
  }
}

@media (max-width: 560px) {
  .assets-grid,
  .browse-content .assets-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .nav-logo img {
    width: 36px;
    height: 36px;
  }
}

/* Professional sign-in surface */
.login-modal {
  padding: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.56)),
    radial-gradient(circle at 18% 24%, rgba(8, 145, 178, 0.38), transparent 36%),
    radial-gradient(circle at 78% 70%, rgba(225, 29, 72, 0.22), transparent 34%),
    #020617;
}

.login-dialog {
  width: min(1080px, calc(100% - 2rem));
  min-height: min(680px, calc(100vh - 2rem));
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1fr);
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 30px 100px rgba(0,0,0,0.34);
}

.login-dialog::before,
.login-dialog::after {
  display: none;
}

.login-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 2rem;
  background:
    linear-gradient(140deg, rgba(8,145,178,0.82), rgba(17,24,39,0.92) 58%, rgba(225,29,72,0.78)),
    #111827;
  color: #ffffff;
}

.login-visual-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 900;
  font-size: 1.35rem;
}

.login-visual-brand img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ffffff;
}

.login-visual h2 {
  max-width: 420px;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: 0;
}

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 4.25rem);
  color: #111827;
}

.login-close {
  top: 1.25rem;
  right: 1.25rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111827;
}

.login-mark img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  margin: 0 0 1rem;
  background: transparent;
  box-shadow: none;
}

.login-eyebrow {
  color: var(--brand-cyan);
  font-weight: 900;
  letter-spacing: 0;
}

.login-dialog h2 {
  color: #020617;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.05;
}

.login-visual h2 {
  color: #ffffff;
}

.login-copy,
.login-note {
  color: #4b5563;
}

.google-signin-btn {
  min-height: 58px;
  margin: 1.6rem 0 0.75rem;
  border: 1px solid #111827;
  border-radius: 4px;
  background: #ffffff;
  color: #111827;
  box-shadow: none;
  font-weight: 850;
}

.google-signin-btn:hover {
  transform: none;
  background: #f8fafc;
}

.login-error {
  color: var(--brand-pink);
}

.account-dialog {
  grid-template-columns: minmax(0, 1fr);
  width: min(520px, calc(100% - 2rem));
  min-height: 0;
  display: block;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  overflow: visible;
}

.account-dialog .login-visual {
  display: none;
}

.account-dialog .login-close {
  top: 1rem;
  right: 1rem;
}

@media (max-width: 780px) {
  .login-dialog {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
  }

  .login-visual {
    min-height: 220px;
  }

  .login-visual h2 {
    font-size: 2.5rem;
  }
}

/* Category browse layout pass */
body:has(.browse-shell) main {
  background: #ffffff;
}

body:has(.browse-shell) main .container {
  width: 100%;
  max-width: min(1680px, calc(100% - 4rem));
  padding-inline: 0;
}

.cat-hero {
  margin: 1rem 0 1.5rem;
  padding: clamp(1.8rem, 4vw, 3rem) clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(8, 145, 178, 0.1), rgba(225, 29, 72, 0.055)),
    #f8fafc;
}

.cat-hero h1 {
  max-width: 880px;
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.04;
}

.cat-hero p {
  max-width: 760px;
  color: #4b5563;
  font-size: 1.05rem;
}

.browse-shell {
  display: grid;
  grid-template-columns: minmax(240px, 310px) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
  padding-bottom: 4rem;
}

.browse-content {
  min-width: 0;
}

.browse-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
  padding-right: 2rem;
  border-right: 1px solid #d9dde5;
}

.sidebar-section h2 {
  margin-bottom: 1.25rem;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: none;
}

.sidebar-section-compact .filter-bar {
  display: grid;
  gap: 0.95rem;
  overflow: visible;
  padding: 0;
}

.filter-btn {
  min-height: 40px;
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6b7280;
  font-size: 1rem;
  font-weight: 800;
}

.filter-btn::before {
  content: '';
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid #aeb4bf;
  border-radius: 6px;
  background: #ffffff;
}

.filter-btn.active,
.filter-btn:hover {
  color: #111827;
  border: 0;
  background: transparent;
}

.filter-btn.active::before {
  border-color: #0891b2;
  background: linear-gradient(135deg, #0891b2, #e11d48);
  box-shadow: inset 0 0 0 7px #ffffff;
}

.filter-btn i {
  display: none;
}

.listing-head {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.filter-toggle {
  border: 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 900;
}

.sort-control {
  color: #4b5563;
  font-size: 1rem;
}

.sort-control select {
  color: #111827;
  font-weight: 900;
}

.browse-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 760px) auto;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.9rem;
}

.browse-toolbar .search-wrap {
  width: 100%;
}

.result-count {
  justify-self: end;
  color: #6b7280;
  font-weight: 800;
  white-space: nowrap;
}

.browse-filter-row {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.browse-filter-group h2 {
  margin-bottom: 0.5rem;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.browse-filter-group .collection-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  overflow: visible;
}

.collection-btn,
.browse-filter-group .collection-btn {
  min-height: 40px;
  max-width: min(280px, 100%);
  padding: 0.48rem 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #ffffff;
  color: #111827;
  font-weight: 800;
}

.collection-btn.active,
.collection-btn:hover {
  border-color: #111827;
  background: #f3f4f6;
}

.folder-empty,
.folder-summary {
  color: #6b7280;
  font-size: 0.9rem;
}

.browse-content .assets-grid:not(.audio-listing) {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 0;
}

body:has(.browse-shell) .browse-content .assets-grid,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing),
.assets-grid.audio-listing,
.browse-content .assets-grid.audio-listing {
  margin-top: 0 !important;
}

.browse-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

@media (max-width: 959px) {
  body:has(.browse-shell) main .container {
    max-width: calc(100% - 2rem);
  }

  .browse-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .browse-sidebar {
    position: static;
    padding-right: 0;
    border-right: 0;
  }

  .sidebar-section-compact .filter-bar {
    display: flex;
    gap: 0.55rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
  }

  .filter-btn {
    flex: 0 0 auto;
    padding: 0.5rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    white-space: nowrap;
  }

  .filter-btn::before {
    display: none;
  }

  .filter-btn.active {
    border: 1px solid #111827;
    background: #f3f4f6;
  }

  .browse-toolbar,
  .listing-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .listing-head {
    flex-direction: column;
  }

  .result-count {
    justify-self: start;
  }
}

/* ============================================
   ENVATO-INSPIRED ADDITIONS
============================================ */

/* --- Social Proof Trust Strip --- */
.trust-strip {
  padding: 2.25rem 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.trust-item i {
  font-size: 1.75rem;
  color: #0891b2;
  flex: 0 0 auto;
}

.trust-item strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #020617;
  line-height: 1.1;
}

.trust-item span {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #6b7280;
  margin-top: 0.1rem;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Featured Collection Banner --- */
.featured-banner {
  padding: 3rem 0;
  background: #ffffff;
}

.featured-banner-inner {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  min-height: 280px;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 0;
  background:
    linear-gradient(135deg, #0c1629, #111827 46%, #1a1020);
  color: #ffffff;
  overflow: hidden;
  position: relative;
}

.featured-banner-inner::before {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(8,145,178,0.25), transparent 62%);
  top: -60px;
  left: -40px;
  pointer-events: none;
}

.featured-banner-inner::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225,29,72,0.18), transparent 62%);
  bottom: -60px;
  right: -20px;
  pointer-events: none;
}

.featured-banner-content {
  position: relative;
  z-index: 1;
}

.featured-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #fbbf24;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.featured-banner-content h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 0.8rem;
  color: #ffffff;
}

.featured-banner-content p {
  max-width: 480px;
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.featured-banner-content .btn {
  background: #ffffff;
  color: #111827;
  border: 0;
  font-weight: 850;
}

.featured-banner-content .btn:hover {
  background: #f3f4f6;
}

.featured-banner-visual {
  position: relative;
  z-index: 1;
}

.featured-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
  aspect-ratio: 1.5 / 1;
}

.featured-tile {
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  overflow: hidden;
}

.featured-tile:first-child {
  grid-row: 1 / -1;
}

.featured-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .featured-banner-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .featured-banner-visual {
    display: none;
  }
}

/* --- Trending Section Header --- */
.trending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.trending-header .section-subtitle {
  margin-bottom: 0;
}

/* --- Why EditVault Section --- */
.why-section {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.why-card {
  padding: 1.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0;
  background: #ffffff;
  transition: all 0.25s ease;
}

.why-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.why-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(8,145,178,0.12), rgba(225,29,72,0.08));
  color: #0891b2;
  font-size: 1.5rem;
  margin-bottom: 1.15rem;
}

.why-card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 850;
  color: #020617;
  margin-bottom: 0.5rem;
}

.why-card p {
  color: #4b5563;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* --- Enhanced category card hover --- */
.category-card {
  transition: transform 0.25s ease;
}

.category-card:hover {
  transform: translateY(-3px) !important;
}

.category-preview {
  border-radius: 0;
  transition: box-shadow 0.25s ease;
}

.category-card:hover .category-preview {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

/* --- Enhanced asset card hover --- */
.asset-card {
  transition: transform 0.2s ease;
}

.asset-card:hover {
  transform: translateY(-3px) !important;
}

.asset-thumb {
  transition: box-shadow 0.25s ease;
}

.asset-card:hover .asset-thumb {
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

/* --- Recent section refinements --- */
.recent-card {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
}

.recent-card:hover {
  border-color: #d1d5db;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.recent-icon {
  background: #f3f4f6;
  color: #0891b2;
}

.recent-copy strong {
  color: #020617;
}

.recent-copy small {
  color: #6b7280;
}

.recent-section {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.recent-header .btn {
  border-color: #d1d5db;
  color: #111827;
}

/* --- Footer refinements --- */
.social-link {
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #4b5563;
}

.social-link:hover {
  border-color: #111827;
  color: #111827;
}

/* --- 3-Column Pricing Grid --- */
.pricing-grid-3 {
  max-width: 1100px;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
}

.pricing-period {
  margin-top: -0.5rem;
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 650;
}

.pricing-price {
  color: #020617;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 700;
  color: #6b7280;
}

.pricing-list i {
  color: #0891b2;
}

.pricing-card-premium .pricing-list i {
  color: #e11d48;
}

.pricing-card-premium .pricing-price {
  background: linear-gradient(90deg, #e11d48, #0891b2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 900px) {
  .pricing-grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Final visual pass: lighter Mixkit-style palette and cleaner audio rows. */
:root {
  --brand-green: #8eea5d;
  --brand-green-hover: #7edb4f;
  --brand-cyan: #0695b3;
  --brand-pink: #cf2d64;
  --brand-ink: #111827;
  --brand-cream: #fff3ea;
  --brand-soft: #f7fbfc;
  --brand-line: #d9e1ea;
  --brand-wash: #f6f9fc;
  --gradient-brand: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-pink) 44%, var(--brand-ink) 82%);
}

.top-offer {
  display: none;
}

.top-offer a,
.btn-primary,
.nav-cta .btn {
  background: var(--brand-green);
  color: #10200d;
}

.top-offer a:hover,
.btn-primary:hover,
.nav-cta .btn:hover {
  background: var(--brand-green-hover);
  color: #10200d;
}

.nav-links a.active {
  background: transparent;
  color: #111827;
  box-shadow: inset 0 -3px 0 var(--brand-green);
  border-radius: 0;
}

.nav-links a:hover {
  background: #f3f4f6;
  color: #111827;
}

.hero {
  min-height: 0;
  padding: clamp(3.7rem, 7vw, 5.9rem) 0 clamp(2.6rem, 5vw, 4.25rem);
  align-items: center;
  background:
    radial-gradient(circle at 16% 8%, rgba(6, 149, 179, 0.13), transparent 34%),
    linear-gradient(180deg, #f1fbfd 0%, #ffffff 68%);
  text-align: center;
}

.hero-content {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  justify-content: center;
  margin-inline: auto;
}

.hero h1 {
  max-width: 1120px;
  margin: 0 auto 1.55rem;
  font-size: clamp(3rem, 5.8vw, 5.35rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero p {
  max-width: 780px;
  margin: 0 auto 1.9rem;
}

.hero-search {
  width: min(850px, 100%);
  margin: 0 auto 1.55rem;
  border-radius: 8px;
}

.hero-search .btn {
  border-radius: 6px;
}

.hero-chip-row {
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 0 auto;
}

.hero-chip-row > span {
  color: #6b7280;
  font-weight: 700;
}

.hero-chip-row a {
  padding: 0;
  border: 0;
  background: transparent;
  font-weight: 600;
}

.hero-chip-row a i {
  display: none;
}

.cat-hero {
  background:
    linear-gradient(90deg, rgba(6, 149, 179, 0.12), rgba(207, 45, 100, 0.065)),
    #f9fbfc;
  border-color: #dce4ec;
}

.hero .gradient-text,
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.asset-card > .asset-audio-row-btn {
  position: absolute;
  top: 36%;
  left: 50%;
  z-index: 5;
  transform: translate(-50%, -50%);
}

.asset-card > .asset-audio-row-btn:hover,
.asset-card > .asset-audio-row-btn.playing {
  transform: translate(-50%, -50%) scale(1.04);
}

.audio-listing .asset-card {
  min-height: 108px;
  padding: 1rem 9rem 1rem 5.25rem;
  border-bottom: 1px solid #edf1f5;
  background: transparent;
  cursor: default;
}

.audio-listing .asset-card:hover {
  transform: none !important;
  background: #fbfcfe;
}

.audio-listing .asset-card.audio-active {
  background: transparent;
}

.audio-listing .asset-card.audio-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 3px;
  border-radius: 999px;
  background: var(--brand-cyan);
}

.audio-listing .asset-card > .asset-audio-row-btn {
  top: 50%;
  left: 0;
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  transform: translateY(-50%);
  border-color: #d7dee8;
  background: #ffffff;
  color: var(--brand-ink);
  box-shadow: none;
}

.audio-listing .asset-card > .asset-audio-row-btn:hover,
.audio-listing .asset-card > .asset-audio-row-btn.playing {
  transform: translateY(-50%) scale(1.04);
}

.audio-listing .asset-card.audio-active > .asset-audio-row-btn {
  border-color: var(--brand-cyan);
  background: var(--brand-cyan);
  color: #ffffff;
}

.asset-card-actions {
  flex-direction: column;
  gap: 0.45rem;
}

.asset-card:not(.audio-active) .asset-card-actions,
.assets-grid:not(.audio-listing) .asset-card .asset-card-actions {
  top: 36%;
  right: 0.7rem;
  transform: translateY(-50%);
}

.asset-download-btn:hover {
  border-color: var(--brand-green);
  background: var(--brand-green);
  color: #10200d;
}

.audio-seek-rail {
  display: none;
}

.audio-listing .asset-card-link {
  grid-template-columns: minmax(220px, 360px) minmax(170px, 1fr);
  gap: 1.5rem;
  cursor: pointer;
}

.audio-listing .asset-card-actions {
  top: 50%;
  right: 0;
  flex-direction: row;
  transform: translateY(-50%);
}

.audio-listing .audio-seek-rail {
  position: absolute;
  left: clamp(22rem, 46vw, 45rem);
  right: 20rem;
  top: 50%;
  z-index: 4;
  display: block;
  height: 30px;
  transform: translateY(-50%);
  cursor: pointer;
}

.audio-listing .audio-seek-rail::before,
.audio-listing .audio-seek-rail span {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
}

.audio-listing .audio-seek-rail::before {
  right: 0;
  background: #d9e1ea;
}

.audio-listing .audio-seek-rail span {
  width: var(--audio-progress, 0%);
  background: #224b16;
  transition: width 120ms linear;
}

.audio-listing .audio-seek-rail:hover::before {
  background: #c7d0dc;
}

.audio-listing .asset-thumb {
  display: none;
}

.audio-listing .asset-title {
  font-size: 1rem;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}

.audio-listing .asset-category {
  min-height: 32px;
  gap: 0.8rem;
  color: #4b5563;
  overflow: hidden;
}

.audio-listing .asset-category::before {
  display: none;
}

.audio-listing .asset-category::after {
  display: none;
}

@media (max-width: 820px) {
  .audio-listing .asset-card {
    padding: 0.9rem 0 0.9rem 4.4rem;
  }

  .audio-listing .asset-card-actions {
    right: 0;
  }

  .audio-listing .asset-card-link {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .audio-listing .asset-card > .asset-audio-row-btn {
    width: 50px;
    min-width: 50px;
    height: 50px;
    min-height: 50px;
  }

  .audio-listing .audio-seek-rail {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    grid-column: 1 / -1;
    width: 100%;
    transform: none;
  }
}

/* UI/UX Pro Max + Stitch refresh: classic light marketplace structure. */
:root {
  color-scheme: light;
  --surface-page: #ffffff;
  --surface-soft: #f4fbfd;
  --surface-card: #ffffff;
  --surface-rail: #f7fafc;
  --line-strong: #cdd8e4;
  --line-soft: #e5edf4;
  --text-strong: #030712;
  --text-body: #334155;
  --text-soft: #64748b;
  --hero-glow: rgba(6, 149, 179, 0.14);
  --search-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  --card-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --focus-ring: rgba(142, 234, 93, 0.42);
}

.navbar,
.navbar .container,
.top-offer,
.admin-header,
.admin-panel,
.admin-locked,
.browse-sidebar,
.browse-filter-row,
.filter-bar,
.pricing-card,
.download-box,
.login-dialog {
  background-color: var(--surface-card);
  border-color: var(--line-soft);
  color: var(--text-strong);
}

.hero {
  position: relative;
  overflow: visible;
  background:
    radial-gradient(circle at 16% 8%, var(--hero-glow), transparent 34%),
    linear-gradient(180deg, var(--surface-soft) 0%, var(--surface-page) 68%);
}

.hero h1,
.cat-hero h1 {
  color: var(--text-strong);
}

.hero p,
.section-subtitle,
.cat-hero p,
.asset-category,
.pricing-copy,
.pricing-list,
.admin-status,
.admin-preview-copy span {
  color: var(--text-body);
}

.hero-badge,
.hero-chip-row > span,
.result-count,
.asset-type-label,
.admin-kicker {
  color: var(--text-soft);
}

.hero-search,
.search-wrap {
  background: var(--surface-card);
  border: 1px solid var(--line-strong);
  box-shadow: var(--search-shadow);
}

.search-command-hint {
  display: inline-flex;
  min-width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: var(--surface-rail);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 800;
}

.hero-search:focus-within,
.search-wrap:focus-within,
.admin-form input:focus,
.admin-form select:focus,
.admin-bulk-filter select:focus,
.sort-control select:focus {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 4px var(--focus-ring), var(--search-shadow);
}

.hero-search input,
.search-wrap input,
.admin-form input,
.admin-form select,
.admin-bulk-filter select,
.sort-control select {
  color: var(--text-strong);
}

.hero-search input::placeholder,
.search-wrap input::placeholder {
  color: var(--text-soft);
}

.search-suggestions {
  border: 1px solid var(--line-soft);
  background: var(--surface-card);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
  z-index: 80;
  max-height: min(68vh, 34rem) !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
  pointer-events: auto;
}

.search-suggestion {
  border-radius: 8px;
}

.search-suggestion:hover {
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.14), transparent),
    var(--surface-rail);
}

.hero-chip-row a,
.filter-btn,
.browse-filter-group .collection-btn {
  color: var(--text-strong);
  cursor: pointer;
}

.hero-chip-row a:hover,
.filter-btn:hover,
.filter-btn.active,
.browse-filter-group .collection-btn:hover,
.browse-filter-group .collection-btn.active {
  border-color: var(--brand-green);
  background: rgba(142, 234, 93, 0.15);
  color: var(--text-strong);
}

.asset-card,
.category-card,
.pricing-card {
  background: var(--surface-card);
  border-color: var(--line-soft);
  box-shadow: var(--card-shadow);
}

.asset-card {
  isolation: isolate;
}

.asset-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), transparent 52%);
  transition: opacity 180ms ease;
}

.asset-card:hover::after {
  opacity: 1;
}

.asset-card:hover,
.category-card:hover,
.pricing-card:hover {
  border-color: #dbe3ef;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.13);
}

.asset-action-btn,
.login-close {
  background: var(--surface-card);
  color: var(--text-strong);
  border: 1px solid var(--line-soft);
}

.asset-title,
.category-copy h3,
.pricing-price,
.admin-preview-copy strong {
  color: var(--text-strong);
}

.cat-hero,
.browse-filter-row {
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.14), rgba(34, 211, 238, 0.14)),
    var(--surface-soft);
}

.browse-sidebar {
  box-shadow: var(--card-shadow);
}

#assetFilters::-webkit-scrollbar,
.browse-sidebar::-webkit-scrollbar {
  width: 8px;
}

#assetFilters::-webkit-scrollbar-thumb,
.browse-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.7);
}

#assetFilters::-webkit-scrollbar-track,
.browse-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

#assetFilters {
  max-height: calc(100vh - var(--navbar-height) - 1.5rem) !important;
  overflow-y: auto !important;
  overflow-x: hidden;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.browse-filter-row {
  border: 1px solid var(--line-soft);
  background: var(--surface-card);
}

.browse-filter-group .collection-bar {
  gap: 0.7rem;
}

.collection-btn,
.browse-filter-group .collection-btn {
  border-color: var(--line-soft);
  background: var(--surface-card);
  color: var(--text-strong);
}

.collection-btn.active,
.collection-btn:hover {
  border-color: var(--brand-green);
  background: rgba(142, 234, 93, 0.12);
  color: var(--text-strong);
}

.filter-count,
.result-count,
.cat-hero-metrics,
.folder-summary {
  display: none !important;
}

#filterBar {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  max-height: none;
  overflow: visible !important;
  padding-right: 0;
}

.filter-toggle,
.sort-control,
.admin-bulk-toolbar,
.admin-bulk-meta {
  color: var(--text-body);
}

.admin-panel,
.admin-locked {
  box-shadow: var(--card-shadow);
}

.admin-preview-panel,
.admin-upload-mode,
.admin-help div,
.admin-asset-row {
  background: var(--surface-rail);
  border-color: var(--line-soft);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .hero-search {
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  }
}

/* Category experience reboot: directory-style cards and usable filter controls. */
#categories {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(135deg, rgba(142, 234, 93, 0.18), transparent 24%),
    linear-gradient(225deg, rgba(6, 149, 179, 0.13), transparent 30%),
    #fbfdff;
}

#categories .container {
  max-width: 1320px;
}

#categories .section-title,
#categories .section-subtitle {
  max-width: 720px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.45rem);
  align-items: stretch;
}

.category-card {
  grid-column: span 3;
  min-height: 420px;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(34, 211, 238, 0.14), transparent 34%),
    var(--surface-card);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  color: var(--text-strong);
  isolation: isolate;
  overflow: hidden;
}

.category-card-featured {
  grid-column: span 6;
}

.category-card-glow {
  position: absolute;
  inset: auto -18% -32% 22%;
  z-index: -1;
  height: 44%;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  filter: blur(34px);
  opacity: 0.62;
  pointer-events: none;
}

.category-card-head,
.category-meta-row,
.category-cta {
  position: relative;
  z-index: 1;
}

.category-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.category-kicker {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 850;
  line-height: 1.2;
}

.category-kicker i {
  display: inline-flex;
  color: var(--cat-accent, var(--brand-cyan));
  font-size: 1rem;
}

.category-count {
  flex: 0 0 auto;
  min-width: 2.6rem;
  text-align: right;
  color: #111827;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 2.5vw, 2.35rem);
  font-weight: 900;
  line-height: 0.95;
}

.category-preview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(72px, 0.82fr);
  gap: 0.55rem;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.category-card-featured .category-preview {
  aspect-ratio: 2.2 / 1;
}

.category-preview-stack {
  display: grid;
  gap: 0.55rem;
}

.category-preview-item {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), #f8fafc);
  color: var(--cat-accent, var(--brand-cyan));
  font-size: 2.2rem;
}

.category-preview-item-small {
  font-size: 1.3rem;
}

.category-preview-item img,
.category-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease, filter 260ms ease;
}

.category-card:hover .category-preview-item img,
.category-card:hover .category-preview-video {
  filter: saturate(1.08) contrast(1.02);
  transform: scale(1.04);
}

.category-copy {
  position: relative;
  z-index: 1;
  padding: 0;
}

.category-copy h3,
.category-card h3 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(1.16rem, 1.8vw, 1.55rem);
  font-weight: 900;
  line-height: 1.05;
}

.category-copy p,
.category-card p {
  margin-top: 0.45rem;
  color: var(--text-body);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.45;
}

.category-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.category-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text-body);
  font-size: 0.78rem;
  font-weight: 850;
}

.category-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 900;
}

.category-cta i {
  color: var(--cat-accent, var(--brand-cyan));
  transition: transform 180ms ease;
}

.category-card:hover {
  transform: translateY(-5px) !important;
  border-color: #dbe3ef;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
}

.category-card:hover .category-cta i {
  transform: translateX(4px);
}

.cat-hero {
  overflow: hidden;
}

.cat-hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.15rem;
}

.cat-hero-metrics span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 38px;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text-body);
  font-size: 0.88rem;
  font-weight: 850;
}

.cat-hero-metrics strong {
  color: var(--text-strong);
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  line-height: 1;
}

.browse-shell {
  transition: grid-template-columns 220ms ease;
}

.browse-shell.browse-filters-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.browse-shell.browse-filters-hidden .browse-sidebar {
  display: none;
}

body:has(.browse-shell) .filter-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  min-height: 54px;
  width: 100%;
  padding: 0.62rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.14), transparent),
    var(--surface-card);
  color: var(--text-strong);
  font-size: 0.92rem;
  font-weight: 850;
  text-align: left;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

body:has(.browse-shell) .filter-btn::before {
  display: none !important;
}

.filter-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cat-accent, var(--brand-cyan));
}

body:has(.browse-shell) .filter-btn i,
.filter-icon i {
  display: inline-flex !important;
  color: inherit;
  font-size: 1.08rem;
}

.filter-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.browse-shell) .filter-label {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.22;
}

.filter-count {
  min-width: 2.35rem;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: var(--surface-rail);
  color: var(--text-body);
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

body:has(.browse-shell) .filter-btn:hover,
body:has(.browse-shell) .filter-btn.active {
  border-color: #dbe3ef;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.14), transparent),
    var(--surface-card);
  color: var(--text-strong);
  transform: translateX(3px);
}

body:has(.browse-shell) .filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-strong);
}

.filter-toggle {
  min-height: 40px;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--surface-card);
  cursor: pointer;
}

.filter-toggle:hover {
  border-color: var(--brand-cyan);
  background: var(--surface-rail);
}

@media (max-width: 1120px) {
  .category-card,
  .category-card-featured {
    grid-column: span 4;
  }

  .category-card {
    min-height: 390px;
  }
}

@media (max-width: 820px) {
  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card,
  .category-card-featured {
    grid-column: span 1;
    min-height: 360px;
  }

  .category-card-featured .category-preview {
    aspect-ratio: 1.42 / 1;
  }

  .browse-shell.browse-filters-hidden {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(.browse-shell) .filter-btn:hover,
  body:has(.browse-shell) .filter-btn.active {
    transform: none;
  }

  .sidebar-section-compact .filter-bar,
  .browse-sidebar .filter-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    max-height: none;
    overflow: visible !important;
    padding-bottom: 0;
  }

  .sidebar-section-compact .filter-btn,
  body:has(.browse-shell) .filter-btn {
    width: 100%;
    max-width: none;
    flex: none;
    white-space: normal;
  }
}

@media (max-width: 560px) {
  #assetFilters {
    max-height: min(72vh, 38rem) !important;
  }

  #filterBar {
    max-height: none;
    overflow: visible !important;
  }

  #categories {
    padding: 2.8rem 0;
  }

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

  .category-card {
    min-height: 0;
    padding: 0.85rem;
  }

  .category-preview,
  .category-card-featured .category-preview {
    aspect-ratio: 1.55 / 1;
  }

  .category-count {
    font-size: 1.55rem;
  }

  .cat-hero-metrics span {
    flex: 1 1 calc(50% - 0.65rem);
    justify-content: center;
  }

  .cat-hero-metrics span:first-child {
    flex-basis: 100%;
  }
}

/* Professional density pass: compact cards and stable search controls. */
.hero-search {
  grid-template-columns: auto auto auto minmax(0, 1fr) auto auto;
  width: min(920px, 100%);
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  overflow: visible;
}

.hero-search .btn {
  grid-column: auto;
  min-height: 46px;
  border-radius: 7px;
}

.hero-search .search-command-hint {
  position: static;
  transform: none;
}

.search-wrap .search-command-hint {
  position: absolute;
  right: 0.7rem;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-wrap input {
  padding-right: 3.2rem;
}

.hero-search.search-open,
.search-wrap.search-open {
  overflow: visible !important;
  z-index: 90;
}

#categories {
  padding: clamp(2.75rem, 5vw, 4.5rem) 0;
  background:
    linear-gradient(135deg, rgba(142, 234, 93, 0.12), transparent 26%),
    linear-gradient(225deg, rgba(6, 149, 179, 0.1), transparent 32%),
    #fbfdff;
}

#categories .section-subtitle {
  margin-bottom: clamp(1.6rem, 3vw, 2.2rem);
}

.categories-grid {
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1rem;
}

.category-card,
.category-card-featured {
  position: relative;
  grid-column: auto;
  min-height: 0;
  grid-template-rows: auto auto auto;
  gap: 0.72rem;
  padding: 0.82rem;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.07);
}

.category-card-head {
  gap: 0.6rem;
}

.category-kicker {
  max-width: 100%;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-preview,
.category-card-featured .category-preview {
  grid-template-columns: minmax(0, 1.55fr) minmax(58px, 0.58fr);
  gap: 0.45rem;
  aspect-ratio: 16 / 9;
  max-height: 150px;
}

.category-preview-stack {
  gap: 0.45rem;
}

.category-preview-item {
  border-radius: 7px;
}

.category-copy h3,
.category-card h3 {
  font-size: 1.04rem;
  line-height: 1.16;
}

.category-copy p,
.category-card p {
  display: -webkit-box;
  min-height: 2.35rem;
  margin-top: 0.3rem;
  overflow: hidden;
  color: #475569;
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.category-cta {
  justify-self: start;
  min-height: 32px;
  padding: 0.25rem 0.58rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}

.category-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12);
}

body:has(.browse-shell) .browse-content .asset-card-actions {
  top: 0.7rem !important;
  right: 0.7rem !important;
  transform: none !important;
}

body:has(.browse-shell) .browse-content .asset-action-btn {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-color: rgba(203, 213, 225, 0.88);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09);
}

body:has(.browse-shell) .browse-content .asset-download-btn:hover {
  border-color: var(--brand-cyan);
  background: var(--brand-cyan);
  color: #ffffff;
}

@media (max-width: 760px) {
  .hero-search {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
  }

  .hero-search-type,
  .hero-search-divider {
    display: none;
  }

  .hero-search .btn {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
  }

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

@media (max-width: 560px) {
  .categories-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-preview,
  .category-card-featured .category-preview {
    max-height: none;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 3.6rem 0 2.5rem;
    overflow-x: hidden;
  }

  .hero .container,
  .hero-content {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero h1 {
    width: min(100%, 21rem);
    max-width: 21rem;
    font-size: clamp(1.85rem, 8.7vw, 2.15rem);
    line-height: 1.04;
    letter-spacing: 0;
  }

  .hero p {
    width: min(100%, 19rem);
    max-width: 19rem;
    font-size: 0.98rem;
  }

.hero-search {
    width: min(100%, 19rem);
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.45rem;
    overflow: visible;
  }

  .hero-search > i {
    padding-left: 0.25rem;
  }

  .hero-search input {
    width: 100%;
    min-width: 0;
  }

  .hero-search .search-command-hint {
    display: none;
  }

  .hero-chip-row {
    width: min(100%, 19rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.45rem;
    column-gap: 0.55rem;
    padding-inline: 0.25rem;
  }

  .hero-chip-row > span {
    grid-column: 1 / -1;
  }

  .hero-chip-row a {
    max-width: 100%;
    font-size: 0.84rem;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
  }

  .cat-hero {
    padding-inline: 1.05rem;
  }

  .cat-hero h1 {
    font-size: 2rem;
    letter-spacing: 0;
  }

  .cat-hero p {
    max-width: 100%;
    font-size: 0.96rem;
  }

  .cat-hero-metrics {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .cat-hero-metrics span,
  .cat-hero-metrics span:first-child {
    width: 100%;
    flex-basis: auto;
    justify-content: center;
  }

  .listing-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .filter-toggle,
  .sort-control,
  .sort-control select {
    width: 100%;
  }

  .sort-control {
    justify-content: space-between;
  }

  .browse-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .browse-toolbar .search-wrap {
    width: 100%;
  }

  .browse-filter-row {
    overflow: hidden;
  }

  .browse-filter-group .collection-bar {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .browse-filter-group .collection-btn {
    flex: 0 0 auto;
  }
}

/* Final card title wrapping pass */
.asset-info-top > div {
  min-width: 0;
}

.asset-title,
.audio-listing .asset-title {
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  hyphens: none !important;
  line-break: auto;
}

/* Admin panel and search dropdown usability pass */
.admin-page {
  background:
    linear-gradient(180deg, #f5fbfd 0%, #ffffff 38%),
    #ffffff;
  color: var(--text-strong);
}

.admin-shell {
  width: min(1500px, calc(100% - 2rem));
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
}

.admin-header {
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.07);
}

.admin-header h1 {
  letter-spacing: 0;
  line-height: 1.05;
}

.admin-actions {
  min-width: 0;
}

.admin-user {
  max-width: 42vw;
  overflow: hidden;
  color: var(--text-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-stat-card {
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.admin-stat-card span {
  display: block;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-stat-card strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-strong);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1;
}

.admin-grid {
  grid-template-columns: minmax(320px, 400px) minmax(0, 1fr);
  gap: 1rem;
}

.admin-panel,
.admin-locked {
  border-radius: 10px;
  border-color: var(--line-soft);
  background: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

#adminLocked:not([hidden]) {
  margin: 2rem auto 0;
}

.admin-form {
  position: sticky;
  top: 1rem;
  align-self: start;
  gap: 0.82rem;
}

.admin-form input,
.admin-form select,
.admin-bulk-filter select,
.admin-bulk-category select,
.admin-search-input {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-strong);
}

.admin-form input,
.admin-form select,
.admin-bulk-filter select,
.admin-bulk-category select {
  width: 100%;
  min-height: 46px;
}

.admin-form input[type="file"] {
  padding: 0.7rem;
}

.admin-form select option,
.admin-bulk-filter select option,
.admin-bulk-category select option,
.sort-control select option {
  background: #ffffff;
  color: #111827;
}

.admin-upload-mode,
.admin-preview-panel,
.admin-help div {
  background: #f7fafc;
  border-color: var(--line-soft);
}

.admin-upload-mode.ok strong {
  color: #15803d;
}

.admin-upload-mode.info strong {
  color: #0369a1;
}

.admin-upload-mode.warn strong {
  color: #a16207;
}

.admin-status[data-tone="ok"] {
  color: #15803d;
}

.admin-status[data-tone="info"] {
  color: #0369a1;
}

.admin-status[data-tone="error"] {
  color: #be123c;
}

.admin-validation-list {
  display: grid;
  gap: 0.45rem;
}

.admin-validation-list[hidden] {
  display: none;
}

.admin-validation-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 0.5rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--text-body);
  font-size: 0.82rem;
  line-height: 1.45;
}

.admin-validation-item i {
  margin-top: 0.1rem;
}

.admin-validation-item.error {
  border-color: rgba(225, 29, 72, 0.28);
  background: rgba(225, 29, 72, 0.07);
  color: #9f1239;
}

.admin-validation-item.warn {
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(245, 158, 11, 0.09);
  color: #92400e;
}

.admin-management-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 0.9fr);
  gap: 0.9rem;
  margin-top: 1rem;
  align-items: end;
}

.admin-search-control,
.admin-bulk-filter,
.admin-bulk-category {
  display: grid;
  gap: 0.4rem;
}

.admin-search-control label,
.admin-bulk-filter label,
.admin-bulk-category label,
.admin-bulk-tags label {
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-search-input {
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.85rem;
}

.admin-search-input i {
  color: var(--brand-cyan);
}

.admin-search-input input {
  width: 100%;
  min-width: 0;
  color: var(--text-strong);
}

.admin-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.admin-bulk-toolbar {
  align-items: end;
  gap: 0.8rem;
  padding: 0.85rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fbfd;
}

.admin-bulk-actions {
  gap: 0.55rem;
}

.admin-bulk-category {
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  min-width: min(100%, 420px);
}

.admin-bulk-tags {
  flex: 1 1 100%;
  display: grid;
  gap: 0.4rem;
  min-width: min(100%, 560px);
}

.admin-bulk-tag-controls {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(180px, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
}

.admin-bulk-tag-controls select,
.admin-bulk-tag-controls input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-strong);
  padding: 0 0.75rem;
}

.admin-bulk-tag-controls select option {
  background: #ffffff;
  color: #111827;
}

.admin-bulk-category label,
.admin-bulk-tags label {
  grid-column: 1 / -1;
}

.admin-bulk-meta {
  min-height: 1.6rem;
}

.admin-list {
  max-height: min(72vh, 760px);
  padding-right: 0.35rem;
}

.admin-list::-webkit-scrollbar {
  width: 8px;
}

.admin-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #94a3b8;
}

.admin-list::-webkit-scrollbar-track {
  background: transparent;
}

.admin-asset-row {
  grid-template-columns: auto 64px minmax(0, 1fr) auto;
  gap: 0.9rem;
  padding: 0.75rem;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.14), transparent 44%),
    #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.admin-asset-row:hover {
  border-color: #dbe3ef;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.admin-asset-thumb {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line-soft);
  background: #f8fafc;
}

.admin-asset-copy {
  min-width: 0;
  display: grid;
  gap: 0.25rem;
}

.admin-asset-title-row {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-asset-title-row h3 {
  min-width: 0;
  overflow: hidden;
  color: var(--text-strong);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-asset-copy p {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-asset-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--text-soft);
  font-size: 0.76rem;
}

.admin-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-body);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-badge.is-free {
  border-color: rgba(8, 145, 178, 0.22);
  background: rgba(8, 145, 178, 0.08);
  color: #075985;
}

.admin-badge.is-premium {
  border-color: rgba(207, 45, 100, 0.24);
  background: rgba(207, 45, 100, 0.08);
  color: #9f1239;
}

.admin-badge.is-live {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.1);
  color: #166534;
}

.admin-badge.is-local,
.admin-badge.is-catalog {
  border-color: rgba(100, 116, 139, 0.25);
  background: rgba(100, 116, 139, 0.08);
  color: #475569;
}

.admin-badge.is-warning {
  border-color: rgba(217, 119, 6, 0.25);
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
}

.admin-row-actions {
  gap: 0.5rem;
}

.admin-row-category-control {
  display: inline-grid;
  grid-template-columns: minmax(9rem, 13rem) auto;
  align-items: center;
  gap: 0.45rem;
}

.admin-row-category-control select {
  min-height: 40px;
  width: 100%;
  max-width: 13rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-action-btn {
  min-width: 96px;
  min-height: 40px;
  border-radius: 8px;
}

.danger-btn:hover {
  border-color: #e11d48;
  background: rgba(225, 29, 72, 0.08);
  color: #be123c;
}

.admin-empty-state {
  padding: 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #f8fafc;
  text-align: center;
}

.search-suggestions {
  max-height: min(54vh, 430px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: auto;
  touch-action: pan-y;
}

.search-suggestions::-webkit-scrollbar {
  width: 8px;
}

.search-suggestions::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #94a3b8;
}

.search-suggestions::-webkit-scrollbar-track {
  background: transparent;
}

.search-suggestion {
  min-height: 58px;
  color: var(--text-strong);
}

.hero-stats,
.trust-strip,
.category-count,
.category-meta-row {
  display: none !important;
}

.hero h1 {
  max-width: 1060px;
  margin-bottom: 1.2rem;
  display: block;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(3rem, 5.3vw, 5.05rem);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.55;
}

.suggestion-type {
  border-color: var(--line-soft);
  background: #f8fafc;
  color: var(--text-soft);
}

@media (max-width: 1100px) {
  .admin-grid,
  .admin-management-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-form {
    position: static;
  }
}

@media (max-width: 760px) {
  .admin-shell {
    width: min(100% - 1rem, 1500px);
  }

  .admin-stats,
  .admin-filter-grid,
  .admin-bulk-category,
  .admin-bulk-tag-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-header,
  .admin-panel-head,
  .admin-actions,
  .admin-bulk-toolbar,
  .admin-bulk-actions,
  .admin-bulk-tags,
  .admin-bulk-meta {
    align-items: stretch;
  }

  .admin-user {
    max-width: 100%;
  }

  .admin-asset-row {
    grid-template-columns: auto 64px minmax(0, 1fr);
  }

  .admin-row-actions {
    grid-column: 1 / -1;
  }

  .admin-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-row-category-control {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-row-category-control select {
    max-width: none;
  }

  .admin-row-actions .btn,
  .admin-action-btn {
    width: 100% !important;
  }

  .search-suggestions {
    max-height: min(58vh, 360px) !important;
  }

  .hero h1 {
    font-size: 2.9rem;
    line-height: 0.94;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* Hero heading treatment to match the reference. */
.hero {
  background:
    radial-gradient(circle at 15% 0%, rgba(114, 211, 224, 0.22) 0, rgba(114, 211, 224, 0.1) 20%, transparent 42%),
    linear-gradient(180deg, #f7fcfd 0%, #ffffff 72%);
}

.hero h1 {
  max-width: 1060px;
  margin-inline: auto;
  color: #020714;
  font-family: 'EditVault Display', 'Sora', 'Poppins', 'Inter', sans-serif;
  font-size: clamp(4.2rem, 7.15vw, 7.15rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-heading-accent {
  position: relative;
  display: inline-block;
  color: #58c934;
  text-shadow: 0 12px 28px rgba(88, 201, 52, 0.16);
}

.hero-heading-accent::after {
  content: '';
  position: absolute;
  left: 0.02em;
  right: 0.01em;
  bottom: -0.1em;
  height: 0.075em;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(88, 201, 52, 0.06), #58c934 16%, #77dc50 82%, rgba(88, 201, 52, 0.06));
  transform: rotate(-1deg);
  box-shadow: 0 6px 16px rgba(88, 201, 52, 0.18);
}

.hero p {
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 2rem;
  color: #3d485d;
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.62;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(3rem, 13.5vw, 4.35rem);
    line-height: 0.98;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    width: min(100%, 23rem);
    max-width: 23rem;
    font-size: clamp(2.65rem, 13vw, 3.45rem);
  }

  .hero-search {
    width: min(100%, 22rem);
    max-width: calc(100vw - 2rem);
    margin-inline: auto;
  }
}

/* ============================================
   PRODUCTION POLISH OVERRIDE
   Final layer for typography, brand color, footer, and category surfaces.
============================================ */
:root {
  --brand-green: #65d83b;
  --brand-green-hover: #52c72c;
  --brand-cyan: #1497b8;
  --brand-pink: #c83272;
  --brand-ink: #080d18;
  --brand-cream: #fff4ec;
  --surface-page: #ffffff;
  --surface-soft: #f6fbfd;
  --surface-card: #ffffff;
  --surface-rail: #f8fafc;
  --line-soft: #e2e8f0;
  --line-strong: #cbd5e1;
  --text-strong: #080d18;
  --text-body: #334155;
  --text-soft: #64748b;
  --gradient-brand: linear-gradient(90deg, var(--brand-cyan) 0%, var(--brand-pink) 54%, var(--brand-ink) 100%);
  --navbar-height: 72px;
}

body {
  font-family: 'Archivo', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface-page);
  color: var(--text-strong);
  letter-spacing: 0;
}

.top-offer {
  background: var(--brand-cream);
  border-bottom-color: #f2dfd1;
  color: var(--brand-ink);
}

.top-offer a,
.btn-primary,
.nav-cta .btn {
  background: var(--brand-green);
  color: #10200d;
}

.top-offer a:hover,
.btn-primary:hover,
.nav-cta .btn:hover {
  background: var(--brand-green-hover);
  color: #10200d;
}

.navbar {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
}

.navbar .container {
  max-width: 1480px;
  padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.navbar .nav-logo,
.footer .nav-logo {
  gap: 0.78rem;
  font-family: 'EditVault Display', 'Space Grotesk', 'Archivo', sans-serif;
  font-size: clamp(1.65rem, 2vw, 2.05rem);
  font-weight: 900;
  letter-spacing: 0;
  color: var(--brand-ink);
}

.navbar .nav-logo img,
.footer .nav-logo img {
  width: 54px;
  height: 54px;
  border-radius: 8px;
}

.navbar .nav-logo span,
.footer .nav-logo span {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, var(--brand-ink) 0 44%, #5aa90f 44% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(1px);
}

.nav-links a {
  color: #253044;
  font-size: 0.94rem;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-ink);
  background: rgba(101, 216, 59, 0.11);
}

.nav-links a.active::after {
  display: block;
  width: calc(100% - 1.1rem);
  left: 0.55rem;
  bottom: -0.35rem;
  height: 3px;
  background: var(--brand-green);
}

.section-title,
.cat-hero h1,
.hero h1 {
  font-family: 'Space Grotesk', 'Archivo', sans-serif;
  color: var(--brand-ink);
  letter-spacing: 0;
}

.hero {
  background:
    linear-gradient(90deg, rgba(20, 151, 184, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fdff 0%, #ffffff 76%);
}

.hero h1 {
  font-size: clamp(3.8rem, 6.7vw, 6.8rem);
  font-weight: 700;
  line-height: 0.96;
}

.hero-heading-accent {
  color: var(--brand-green);
  text-shadow: 0 14px 30px rgba(101, 216, 59, 0.14);
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand-cyan), var(--brand-pink) 60%, var(--brand-ink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cat-hero {
  margin: 2.5rem 0 2rem;
  padding: clamp(2.6rem, 5vw, 4.4rem);
  border: 1px solid #d8e5ee;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(20, 151, 184, 0.14), rgba(255, 244, 236, 0.62) 52%, rgba(101, 216, 59, 0.09)),
    #ffffff;
  box-shadow: none;
}

.cat-hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
}

.cat-hero p {
  max-width: 780px;
  color: var(--text-body);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

#categories {
  background:
    linear-gradient(90deg, rgba(101, 216, 59, 0.09), rgba(20, 151, 184, 0.11)),
    #f8fdff;
}

.category-card,
.category-card-featured {
  border-color: #dbe3ef;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), #ffffff 48%),
    var(--surface-card);
  box-shadow: 0 16px 46px rgba(15, 23, 42, 0.08);
}

.category-card:hover {
  border-color: #dbe3ef;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.12);
}

.recent-section {
  background: #ffffff;
}

.recent-card {
  border-color: var(--line-soft);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.recent-icon {
  background: var(--surface-rail);
  color: var(--brand-cyan);
}

.footer {
  margin-top: 0;
  padding: clamp(3rem, 6vw, 5rem) 0 1.4rem;
  border-top: 1px solid var(--line-soft);
  background: #ffffff;
}

.footer-grid {
  align-items: start;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(160px, 0.65fr));
  gap: clamp(2rem, 6vw, 5.5rem);
}

.footer-brand-wide-logo {
  width: min(100%, 390px);
  margin-bottom: 1.35rem;
}

.footer-brand p,
.footer-col ul a,
.footer-bottom p {
  color: var(--text-body);
  font-size: 0.96rem;
}

.footer-col h4 {
  color: var(--brand-ink);
  font-family: 'Archivo', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.footer-col ul {
  gap: 0.78rem;
}

.footer-col ul a:hover {
  color: var(--brand-cyan);
}

.social-link {
  border: 1px solid var(--line-soft);
  background: #ffffff;
  color: var(--text-body);
}

.social-link:hover {
  border-color: var(--brand-green);
  background: rgba(101, 216, 59, 0.1);
  color: var(--brand-ink);
}

@media (max-width: 900px) {
  .nav-links a.active::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 3.5rem);
  }

  .cat-hero {
    margin-top: 1.4rem;
    padding: 2rem 1.1rem;
  }

  .cat-hero h1 {
    font-size: clamp(2.35rem, 11vw, 3.1rem);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .navbar .nav-logo {
    font-size: 1.45rem;
  }

  .navbar .nav-logo img {
    width: 48px;
    height: 48px;
  }
}

/* Restore the original hero display type after the production polish layer. */
.hero h1 {
  font-family: 'EditVault Display', 'Sora', 'Poppins', 'Inter', sans-serif;
  font-size: clamp(4.2rem, 7.15vw, 7.15rem);
  font-weight: 900;
  line-height: 0.94;
}

@media (max-width: 760px) {
  .hero h1 {
    font-size: clamp(3rem, 13.5vw, 4.35rem);
    line-height: 0.98;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    width: min(100%, 23rem);
    max-width: 23rem;
    font-size: clamp(2.65rem, 13vw, 3.45rem);
  }
}

/* Use the real wide logo in the navbar, matching the reference wordmark. */
.navbar .nav-logo {
  gap: 0;
  min-width: 0;
}

.navbar .nav-logo img {
  width: clamp(180px, 15vw, 230px);
  height: auto;
  max-height: 58px;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
}

.navbar .nav-logo span {
  display: none;
}

.navbar .nav-account a {
  width: 52px;
  min-width: 52px;
  height: 52px;
  display: inline-grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--brand-ink);
  font-size: 2rem;
}

.navbar .nav-account a:hover,
.navbar .nav-account a.is-authenticated {
  border-color: var(--line-soft);
  background: rgba(101, 216, 59, 0.1);
}

@media (max-width: 900px) {
  .navbar .nav-logo img {
    width: clamp(150px, 42vw, 205px);
    height: auto;
  }

  .navbar .nav-account a {
    width: 48px;
    min-width: 48px;
    height: 48px;
    font-size: 1.85rem;
  }
}

/* ============================================
   PROFESSIONAL MARKETPLACE POLISH
   Keeps the existing UI structure while tightening color, spacing, and mobile flow.
============================================ */
:root {
  --brand-green: #5bdc35;
  --brand-green-hover: #49c827;
  --brand-cyan: #168ca8;
  --brand-pink: #b93472;
  --brand-ink: #080d18;
  --surface-page: #ffffff;
  --surface-soft: #f6fbfd;
  --surface-card: #ffffff;
  --line-soft: #e2e8f0;
  --line-strong: #cbd5e1;
  --text-strong: #080d18;
  --text-body: #334155;
  --text-soft: #64748b;
  --gradient-brand: linear-gradient(90deg, var(--brand-cyan), var(--brand-pink));
}

body {
  background: var(--surface-page);
  color: var(--text-strong);
}

.navbar {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.04);
}

.btn-primary,
.nav-cta .btn {
  background: var(--brand-green);
  color: #10200d;
  box-shadow: none;
}

.btn-primary:hover,
.nav-cta .btn:hover {
  background: var(--brand-green-hover);
  color: #10200d;
  box-shadow: none;
}

.cat-hero {
  margin: clamp(1.2rem, 3vw, 2.25rem) 0 clamp(2rem, 4vw, 3rem);
  padding: clamp(2rem, 5vw, 4.2rem);
  border: 1px solid #d9e8ee;
  background:
    linear-gradient(90deg, rgba(22, 140, 168, 0.13), rgba(255, 255, 255, 0.86) 48%, rgba(91, 220, 53, 0.11)),
    #ffffff;
}

.cat-hero h1 {
  max-width: 920px;
  color: var(--brand-ink);
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.cat-hero p {
  max-width: 760px;
  color: var(--text-body);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.browse-shell {
  align-items: start;
  gap: clamp(1.4rem, 3vw, 2.5rem);
}

.browse-sidebar,
.admin-panel,
.admin-locked,
.asset-card,
.pricing-card,
.why-card,
.recent-card {
  border-color: var(--line-soft);
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
}

.browse-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + 1rem);
  max-height: calc(100vh - var(--navbar-height) - 2rem);
  overflow: auto;
  padding: 1.1rem;
}

.sidebar-section h2,
.browse-filter-group h2,
.listing-head,
.sort-control span {
  color: var(--text-strong);
}

.filter-btn,
.collection-btn {
  border-color: var(--line-soft);
  background: #ffffff;
  color: var(--text-body);
  box-shadow: none;
}

.filter-btn:hover,
.collection-btn:hover {
  border-color: #dbe3ef;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-strong);
}

.filter-btn.active,
.collection-btn.active {
  border-color: var(--brand-green);
  background: rgba(91, 220, 53, 0.12);
  color: var(--brand-ink);
}

.browse-toolbar,
.browse-filter-row {
  border-color: var(--line-soft);
  background: #ffffff;
}

.search-wrap,
.hero-search {
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.asset-card {
  border-radius: 10px;
  overflow: hidden;
}

.asset-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.11);
}

.asset-info {
  background: #ffffff;
}

.asset-type-label,
.asset-category,
.asset-tags,
.asset-tag {
  color: var(--text-soft);
}

.badge-free {
  background: rgba(91, 220, 53, 0.18);
  color: #256b17;
  border-color: rgba(91, 220, 53, 0.25);
}

.badge-premium {
  background: rgba(185, 52, 114, 0.1);
  color: #9f174d;
  border-color: rgba(185, 52, 114, 0.2);
}

.login-modal {
  background: rgba(8, 13, 24, 0.52);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.login-dialog {
  border: 1px solid var(--line-soft);
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

@media (max-width: 900px) {
  .browse-shell {
    display: flex;
    flex-direction: column;
  }

  .browse-content {
    order: 1;
    width: 100%;
  }

  .browse-sidebar {
    order: 2;
    position: static;
    width: 100%;
    max-height: none;
  }

  .cat-hero {
    margin-top: 1.1rem;
    padding: 1.7rem 1.25rem;
  }

  .cat-hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.6rem);
  }
}

@media (max-width: 560px) {
  .browse-toolbar,
  .browse-filter-row {
    border-radius: 10px;
  }

  .assets-grid,
  .browse-content .assets-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .asset-card {
    border-radius: 10px;
  }
}

/* EditVault login modal */
.login-modal {
  background:
    radial-gradient(circle at 8% 10%, rgba(91, 220, 53, 0.2), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(8, 145, 178, 0.2), transparent 30%),
    radial-gradient(circle at 50% 96%, rgba(185, 52, 114, 0.16), transparent 34%),
    rgba(3, 7, 18, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.login-dialog {
  --login-look-x: 0px;
  --login-look-y: 0px;
  --login-lean: 0deg;
  width: min(1120px, calc(100% - 2rem));
  min-height: min(700px, calc(100vh - 2rem));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: #fbfcff;
  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.44),
    0 0 70px rgba(91, 220, 53, 0.12);
}

.login-visual {
  position: relative;
  overflow: hidden;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background:
    linear-gradient(145deg, rgba(6, 87, 104, 0.92), rgba(7, 15, 30, 0.98) 54%, rgba(79, 14, 43, 0.94)),
    #07111f;
  isolation: isolate;
}

.login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 72%);
  pointer-events: none;
  z-index: -1;
}

.login-visual-glow {
  position: absolute;
  inset: auto -18% -28% 12%;
  height: 42%;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(91, 220, 53, 0.32), transparent 62%),
    radial-gradient(circle at 70% 50%, rgba(8, 145, 178, 0.26), transparent 58%);
  filter: blur(32px);
  pointer-events: none;
}

.login-visual-brand {
  position: relative;
  z-index: 2;
  gap: 0.85rem;
  color: #ffffff;
  font-size: 1.45rem;
  letter-spacing: 0;
}

.login-visual-brand img,
.login-mark img {
  object-fit: contain;
}

.login-visual-brand img {
  width: 52px;
  height: 52px;
  padding: 4px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(91, 220, 53, 0.2);
}

.login-character-stage {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
  height: clamp(260px, 44vh, 370px);
  margin: clamp(1rem, 4vh, 2.5rem) auto;
  contain: layout paint style;
}

.login-character {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  will-change: transform;
}

.login-character span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #111827;
  transform: translate(var(--login-look-x), var(--login-look-y));
  transition: transform 80ms linear;
}

.login-character-purple {
  left: 16%;
  width: 150px;
  height: 315px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg, #6c3ff5, #42248f);
  transform: skewX(calc(var(--login-lean) - 2deg));
  animation: login-float 5.8s ease-in-out infinite;
}

.login-character-purple span {
  top: 38px;
  background: #ffffff;
  box-shadow: inset 0 0 0 5px #1f2937;
}

.login-character-purple span:first-child {
  left: 45px;
}

.login-character-purple span:nth-child(2) {
  left: 86px;
}

.login-character-ink {
  left: 47%;
  width: 108px;
  height: 255px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #252833, #090d14);
  transform: translateX(-50%) skewX(calc(var(--login-lean) * -0.7));
  animation: login-float 6.4s ease-in-out 0.4s infinite;
}

.login-character-ink span {
  top: 32px;
  background: #ffffff;
  box-shadow: inset 0 0 0 5px #111827;
}

.login-character-ink span:first-child {
  left: 28px;
}

.login-character-ink span:nth-child(2) {
  left: 66px;
}

.login-character-coral {
  left: 2%;
  width: 215px;
  height: 172px;
  border-radius: 120px 120px 0 0;
  background: linear-gradient(180deg, #ff9b6b, #d7535f);
  transform: skewX(calc(var(--login-lean) * 0.6));
  animation: login-float 6.8s ease-in-out 0.1s infinite;
}

.login-character-coral span {
  top: 82px;
}

.login-character-coral span:first-child {
  left: 78px;
}

.login-character-coral span:nth-child(2) {
  left: 124px;
}

.login-character-neon {
  right: 7%;
  width: 134px;
  height: 210px;
  border-radius: 78px 78px 0 0;
  background: linear-gradient(180deg, #c8ff38, #5bdc35);
  transform: skewX(calc(var(--login-lean) * -0.55));
  box-shadow: 0 0 46px rgba(91, 220, 53, 0.16);
  animation: login-float 5.5s ease-in-out 0.25s infinite;
}

.login-character-neon span {
  top: 48px;
}

.login-character-neon span:first-child {
  left: 42px;
}

.login-character-neon span:nth-child(2) {
  left: 78px;
}

.login-character-neon i {
  position: absolute;
  top: 96px;
  left: 37px;
  width: 62px;
  height: 4px;
  border-radius: 999px;
  background: #111827;
  transform: translate(calc(var(--login-look-x) * 0.4), calc(var(--login-look-y) * 0.25));
}

.motion-ready .login-character-purple span,
.motion-ready .login-character-ink span {
  animation: login-blink 5.5s steps(1) infinite;
}

.motion-ready .login-character-ink span {
  animation-delay: 1.3s;
}

.login-visual-copy {
  position: relative;
  z-index: 2;
  max-width: 460px;
}

.login-visual-copy p {
  margin: 0 0 0.7rem;
  color: #bfffa5;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-visual h2 {
  max-width: 460px;
  color: #ffffff;
  text-shadow: 0 18px 46px rgba(0, 0, 0, 0.32);
}

.login-panel {
  background:
    radial-gradient(circle at 100% 0%, rgba(91, 220, 53, 0.08), transparent 30%),
    #fbfcff;
}

.login-close {
  border-color: rgba(148, 163, 184, 0.32);
  color: #020617;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.login-mark img {
  width: 62px;
  height: 62px;
}

.login-eyebrow {
  color: #087f5b;
  letter-spacing: 0.02em;
}

.login-dialog h2 {
  color: #020617;
}

.google-signin-btn {
  border: 1px solid #0f172a;
  border-radius: 10px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.google-signin-btn:hover {
  border-color: #5bdc35;
  background: #f8fff5;
  box-shadow: 0 14px 38px rgba(91, 220, 53, 0.16);
}

.google-signin-btn:focus-visible {
  outline: 3px solid rgba(91, 220, 53, 0.34);
  outline-offset: 3px;
}

@keyframes login-float {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -8px;
  }
}

@keyframes login-blink {
  0%,
  94%,
  100% {
    scale: 1 1;
  }

  96% {
    scale: 1 0.15;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-character,
  .login-character span {
    animation: none !important;
    transition: none !important;
  }
}

@media (max-width: 780px) {
  .login-dialog {
    border-radius: 16px;
  }

  .login-visual {
    min-height: 280px;
  }

  .login-character-stage {
    height: 210px;
    margin-block: 0.5rem;
    transform: scale(0.68);
    transform-origin: bottom center;
  }

  .login-visual-copy p {
    font-size: 0.72rem;
  }
}

/* Exact split login reference pass */
.login-modal {
  padding: 0;
  background: rgba(13, 18, 29, 0.58);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.login-dialog {
  --login-look-x: 0px;
  --login-look-y: 0px;
  --login-lean: 0deg;
  width: min(1440px, calc(100% - 11rem));
  min-height: min(828px, calc(100vh - 2rem));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(520px, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 24px 96px rgba(0, 0, 0, 0.34);
}

.login-visual {
  position: relative;
  min-height: 100%;
  padding: 3.45rem 3.85rem 1.9rem;
  background:
    radial-gradient(circle at 54% 48%, rgba(64, 64, 64, 0.82), transparent 34%),
    linear-gradient(135deg, #242424 0%, #1e1e1e 48%, #252525 100%);
  color: #ffffff;
}

.login-visual::before,
.login-visual-glow,
.login-visual-copy {
  display: none;
}

.login-visual-brand {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 900;
}

.login-visual-brand img {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
}

.login-character-stage {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 52px;
  width: auto;
  height: 560px;
  margin: 0;
  contain: layout paint style;
  overflow: visible;
}

.login-character {
  position: absolute;
  bottom: 0;
  transform-origin: bottom center;
  will-change: transform;
}

.login-character span {
  position: absolute;
  display: block;
  border-radius: 999px;
  transition: none;
}

.login-character span::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #292929;
  transform: translate(var(--login-look-x), var(--login-look-y));
}

.login-character-purple {
  left: 9.4%;
  bottom: 88px;
  width: 225px;
  height: 365px;
  border-radius: 10px 10px 0 0;
  background: #6c3ff5;
  transform: rotate(-1.5deg) skewX(calc(var(--login-lean) * 0.45));
  animation: login-float 7s ease-in-out infinite;
}

.login-character-purple span {
  top: 38px;
  width: 23px;
  height: 23px;
  background: #ffffff;
  box-shadow: none;
}

.login-character-purple span::after {
  left: 4px;
  top: 3px;
}

.login-character-purple span:first-child {
  left: 45px;
}

.login-character-purple span:nth-child(2) {
  left: 108px;
}

.login-character-ink {
  left: 39.7%;
  bottom: 154px;
  width: 150px;
  height: 222px;
  border-radius: 9px 9px 0 0;
  background: #2b2b2b;
  transform: skewX(calc(var(--login-lean) * -0.25));
  animation: login-float 7.5s ease-in-out 0.35s infinite;
}

.login-character-ink span {
  top: 28px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  box-shadow: none;
}

.login-character-ink span::after {
  left: 3px;
  top: 4px;
}

.login-character-ink span:first-child {
  left: 16px;
}

.login-character-ink span:nth-child(2) {
  left: 66px;
}

.login-character-coral {
  left: 0;
  bottom: 0;
  width: 302px;
  height: 252px;
  border-radius: 150px 150px 0 0;
  background: #ff9869;
  transform: skewX(calc(var(--login-lean) * 0.28));
  animation: login-float 7.8s ease-in-out 0.2s infinite;
}

.login-character-coral span {
  top: 94px;
  width: 15px;
  height: 15px;
  background: #292929;
  transform: translate(calc(var(--login-look-x) * 0.45), calc(var(--login-look-y) * 0.45));
}

.login-character-coral span::after {
  display: none;
}

.login-character-coral span:first-child {
  left: 88px;
}

.login-character-coral span:nth-child(2) {
  left: 143px;
}

.login-character-neon {
  right: 11.5%;
  bottom: 0;
  width: 176px;
  height: 288px;
  border-radius: 92px 92px 0 0;
  background: #e8d84e;
  box-shadow: none;
  transform: rotate(-2.5deg) skewX(calc(var(--login-lean) * -0.26));
  animation: login-float 7.2s ease-in-out 0.55s infinite;
}

.login-character-neon span {
  top: 34px;
  width: 15px;
  height: 15px;
  background: #292929;
  transform: translate(calc(var(--login-look-x) * 0.42), calc(var(--login-look-y) * 0.42));
}

.login-character-neon span::after {
  display: none;
}

.login-character-neon span:first-child {
  left: 41px;
}

.login-character-neon span:nth-child(2) {
  left: 85px;
}

.login-character-neon i {
  position: absolute;
  top: 94px;
  left: 33px;
  width: 100px;
  height: 4px;
  border-radius: 999px;
  background: #292929;
  transform: translate(calc(var(--login-look-x) * 0.18), calc(var(--login-look-y) * 0.14));
}

.motion-ready .login-character-purple span,
.motion-ready .login-character-ink span {
  animation: login-blink 6.5s steps(1) infinite;
}

.motion-ready .login-character-purple span::after,
.motion-ready .login-character-ink span::after {
  animation: none;
}

.login-visual-links {
  position: absolute;
  left: 58px;
  bottom: 31px;
  z-index: 3;
  display: flex;
  gap: 2.1rem;
  align-items: center;
}

.login-visual-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  text-decoration: none;
}

.login-visual-links a:hover {
  color: #ffffff;
}

.login-panel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  background: #ffffff;
  color: #000000;
}

.login-panel-inner {
  width: min(525px, 100%);
}

.login-close {
  top: 1.55rem;
  right: 1.55rem;
  width: 48px;
  height: 48px;
  border: 1px solid #dce3ef;
  border-radius: 999px;
  background: #ffffff;
  color: #020617;
  box-shadow: none;
}

.login-mark,
.login-eyebrow,
.login-note {
  display: none;
}

.login-dialog h2 {
  margin: 0 0 0.55rem;
  color: #000000;
  font-family: 'Poppins', sans-serif;
  font-size: 2.15rem;
  line-height: 1.05;
  text-align: center;
}

.login-copy {
  margin: 0 0 3.45rem;
  color: #6d6d6d;
  font-size: 1rem;
  text-align: center;
}

.login-fields {
  display: grid;
  gap: 0;
}

.login-fields label {
  margin-bottom: 0.45rem;
  color: #000000;
  font-weight: 700;
}

.login-fields input[type='email'],
.login-password-wrap input {
  width: 100%;
  height: 60px;
  padding: 0 1rem;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #ffffff;
  color: #111827;
  font-size: 1rem;
  outline: none;
}

.login-fields input[type='email'] {
  margin-bottom: 1.85rem;
}

.login-password-wrap {
  position: relative;
  margin-bottom: 1.65rem;
}

.login-password-wrap button {
  position: absolute;
  top: 50%;
  right: 0.95rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #7a7a7a;
  transform: translateY(-50%);
}

.login-options-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.65rem;
}

.login-options-row a,
.login-signup a {
  color: #000000;
  font-weight: 800;
  text-decoration: none;
}

.login-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: #000000;
  font-weight: 400 !important;
}

.login-remember input {
  position: absolute;
  opacity: 0;
}

.login-remember span {
  width: 20px;
  height: 20px;
  border: 1px solid #111827;
  border-radius: 7px;
  background: #ffffff;
}

.login-remember input:checked + span {
  background: #151515;
  box-shadow: inset 0 0 0 4px #ffffff;
}

.login-submit-btn,
.google-signin-btn {
  width: 100%;
  min-height: 60px;
  justify-content: center;
  border-radius: 9px;
  font-size: 1.05rem;
  font-weight: 800;
  box-shadow: none;
  transform: none;
}

.login-submit-btn {
  margin-bottom: 1.85rem;
  border: 1px solid #151515;
  background: #151515;
  color: #ffffff;
}

.login-submit-btn:hover {
  background: #000000;
}

.google-signin-btn {
  margin: 0 0 2.65rem;
  border: 1px solid #ececec;
  background: #ffffff;
  color: #000000;
}

.google-signin-btn:hover {
  border-color: #dcdcdc;
  background: #ffffff;
  box-shadow: none;
}

.google-signin-btn:focus-visible {
  outline: none;
}

.login-fields input:focus-visible,
.login-password-wrap button:focus-visible,
.login-submit-btn:focus-visible {
  outline: 1px solid #cfcfcf;
  outline-offset: 2px;
}

.google-signin-btn i {
  margin-right: 0.65rem;
  font-size: 1.32rem;
}

.login-error {
  min-height: 1.2rem;
  margin: -1.75rem 0 1.1rem;
  color: #b91c1c;
  font-size: 0.9rem;
  text-align: center;
}

.login-signup {
  margin: 0;
  color: #6d6d6d;
  text-align: center;
}

@media (max-width: 1100px) {
  .login-dialog {
    width: min(960px, calc(100% - 2rem));
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    max-height: calc(100vh - 1.5rem);
    overflow-y: auto;
  }

  .login-visual {
    min-height: 430px;
  }

  .login-character-stage {
    left: 50%;
    bottom: 48px;
    width: 620px;
    max-width: calc(100% - 2rem);
    height: 360px;
    transform: translateX(-50%) scale(0.68);
    transform-origin: bottom center;
  }

  .login-visual-links {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 620px) {
  .login-modal {
    padding: 0.75rem;
  }

  .login-dialog {
    width: 100%;
  }

  .login-visual {
    min-height: 320px;
    padding: 1.5rem;
  }

  .login-character-stage {
    bottom: 42px;
    transform: translateX(-50%) scale(0.46);
  }

  .login-visual-links {
    width: 100%;
    justify-content: center;
    gap: 1rem;
  }

  .login-panel {
    padding: 2.25rem 1.25rem;
  }

  .login-options-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Compact Google-only login modal */
.login-dialog {
  --login-purple-lift: 0px;
  --login-purple-peek: 0px;
  --login-pupil-x: 0px;
  --login-pupil-y: 0px;
  width: min(980px, calc(100vw - 3rem));
  min-height: 0;
  height: min(620px, calc(100vh - 3rem));
  grid-template-columns: minmax(390px, 0.9fr) minmax(360px, 1fr);
  overflow: hidden;
}

.login-modal {
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-visual {
  min-height: 0;
  padding: 2rem 2.3rem 1.45rem;
}

.login-visual-brand {
  font-size: 1.28rem;
}

.login-visual-brand img {
  width: 38px;
  height: 38px;
}

.login-character-stage {
  left: 20px;
  right: 20px;
  bottom: 52px;
  height: 540px;
}

.login-character-purple {
  left: 23%;
  bottom: 0;
  width: 178px;
  height: 410px;
  transform: translate(var(--login-purple-peek), var(--login-purple-lift)) rotate(-1.5deg) skewX(calc(var(--login-lean) * 0.45));
}

.login-character-purple span {
  top: 48px;
  width: 22px;
  height: 22px;
  overflow: hidden;
}

.login-character-purple span::after {
  width: 8px;
  height: 8px;
  left: 4px;
  top: 3px;
  transform: translate(var(--login-pupil-x), var(--login-pupil-y));
}

.login-character-purple span:first-child {
  left: 58px;
}

.login-character-purple span:nth-child(2) {
  left: 112px;
}

.login-character-ink {
  left: 51%;
  bottom: 0;
  width: 108px;
  height: 310px;
}

.login-character-ink span {
  top: 42px;
  width: 18px;
  height: 18px;
  overflow: hidden;
}

.login-character-ink span::after {
  width: 7px;
  height: 7px;
  transform: translate(var(--login-pupil-x), var(--login-pupil-y));
}

.login-character-ink span:first-child {
  left: 24px;
}

.login-character-ink span:nth-child(2) {
  left: 64px;
}

.login-character-coral {
  left: 0;
  bottom: 0;
  width: 220px;
  height: 190px;
}

.login-character-coral span {
  top: 84px;
  width: 14px;
  height: 14px;
}

.login-character-coral span:first-child {
  left: 82px;
}

.login-character-coral span:nth-child(2) {
  left: 124px;
}

.login-character-neon {
  right: 2%;
  bottom: 0;
  width: 134px;
  height: 220px;
}

.login-character-neon span {
  top: 42px;
  width: 14px;
  height: 14px;
}

.login-character-neon span:first-child {
  left: 38px;
}

.login-character-neon span:nth-child(2) {
  left: 76px;
}

.login-character-neon i {
  top: 92px;
  left: 30px;
  width: 74px;
  height: 4px;
}

.login-visual-links {
  left: 20px;
  bottom: 18px;
  gap: 1.35rem;
}

.login-visual-links a {
  font-size: 0.82rem;
}

.login-panel {
  padding: 2.75rem;
}

.login-panel-inner {
  width: min(360px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-mark {
  display: block;
  margin-bottom: 0.85rem;
}

.login-mark img {
  width: 54px;
  height: 54px;
  margin: 0;
}

.login-dialog h2 {
  font-size: 2rem;
}

.login-copy {
  max-width: 34ch;
  margin-bottom: 1.75rem;
  font-size: 0.96rem;
}

.login-fields,
.login-options-row,
.login-submit-btn {
  display: none !important;
}

.google-signin-btn {
  min-height: 56px;
  margin: 0 0 1.2rem;
  border-color: #151515;
  border-radius: 8px;
  font-size: 1rem;
}

.google-signin-btn:hover {
  border-color: #151515;
  background: #f8f8f8;
}

.login-error {
  min-height: 1rem;
  margin: 0 0 0.7rem;
}

.login-signup {
  max-width: 34ch;
  color: #586174;
  font-size: 0.9rem;
}

@media (max-width: 860px) {
  .login-dialog {
    width: min(520px, calc(100vw - 1.5rem));
    height: auto;
    max-height: calc(100vh - 1.5rem);
    grid-template-columns: minmax(0, 1fr);
    overflow-y: auto;
  }

  .login-visual {
    min-height: 300px;
  }

  .login-character-stage {
    height: 300px;
    transform: none;
  }

  .login-panel {
    padding: 2rem 1.5rem;
  }
}

/* Account modal library */
.account-dialog {
  width: min(780px, calc(100vw - 2rem));
  height: auto;
  max-height: calc(100vh - 2rem);
  min-height: 0;
  display: block;
  overflow-y: auto;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 18px;
  background: #ffffff;
}

.account-dialog .login-mark {
  display: block;
  margin-bottom: 0.7rem;
}

.account-dialog .login-eyebrow {
  display: block;
  margin: 0 0 0.25rem;
  color: #0891b2;
  text-align: center;
}

.account-dialog #accountTitle {
  margin-bottom: 0.35rem;
  text-align: center;
}

.account-dialog #accountEmail {
  margin-bottom: 1.35rem;
  text-align: center;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.25rem;
}

.account-stats > div {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: 0.25rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fbfcff;
}

.account-stats i {
  color: #0891b2;
  font-size: 1.4rem;
}

.account-stats strong {
  color: #020617;
  font-size: 1.55rem;
}

.account-stats span {
  color: #586174;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.account-library {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}

.account-library-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.account-library-heading h3 {
  margin: 0;
  color: #020617;
  font-size: 1rem;
}

.account-library-heading span {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 700;
}

.account-asset-list {
  display: grid;
  gap: 0.55rem;
}

.account-asset-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  color: #0f172a;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.account-asset-item:hover {
  border-color: #5bdc35;
  background: #f8fff5;
  transform: translateY(-1px);
}

.account-asset-thumb {
  width: 54px;
  height: 44px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #f1f5f9;
  color: #0891b2;
}

.account-asset-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-asset-copy {
  min-width: 0;
  display: grid;
  gap: 0.1rem;
}

.account-asset-copy strong,
.account-asset-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-asset-copy strong {
  color: #020617;
  font-size: 0.9rem;
}

.account-asset-copy small,
.account-empty,
.account-asset-missing {
  color: #64748b;
  font-size: 0.8rem;
}

.account-empty,
.account-asset-missing {
  margin: 0;
  padding: 0.85rem;
  border: 1px dashed #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
}

.account-dialog .full-width-btn {
  min-height: 48px;
  border-radius: 12px;
}

@media (max-width: 620px) {
  .account-stats {
    grid-template-columns: 1fr;
  }
}

/* Per-eye login animation ported from the React component logic */
.login-character-purple {
  transform:
    translate(var(--login-purple-peek, 0px), var(--login-purple-lift, 0px))
    rotate(calc(-1.5deg + (1.5deg * var(--login-purple-stand, 0))))
    skewX(calc(var(--purple-body-skew, 0deg) + (-4deg * var(--login-purple-stand, 0))))
    scaleY(var(--login-purple-scale, 1));
}

.login-character-ink {
  transform: skewX(var(--ink-body-skew, 0deg));
}

.login-character-coral {
  transform: skewX(var(--coral-body-skew, 0deg));
}

.login-character-neon {
  transform: rotate(-2.5deg) skewX(var(--neon-body-skew, 0deg));
}

.login-character-purple span {
  overflow: hidden;
  transform: translate(var(--purple-face-x, 0px), var(--purple-face-y, 0px));
}

.login-character-ink span {
  overflow: hidden;
  transform: translate(var(--ink-face-x, 0px), var(--ink-face-y, 0px));
}

.login-character-purple span::after,
.login-character-ink span::after {
  transform: translate(var(--eye-x, 0px), var(--eye-y, 0px));
}

.login-character-coral span {
  transform:
    translate(var(--coral-face-x, 0px), var(--coral-face-y, 0px))
    translate(var(--eye-x, 0px), var(--eye-y, 0px));
}

.login-character-neon span {
  transform:
    translate(var(--neon-face-x, 0px), var(--neon-face-y, 0px))
    translate(var(--eye-x, 0px), var(--eye-y, 0px));
}

.login-character-neon i {
  transform: translate(var(--neon-face-x, 0px), var(--neon-face-y, 0px));
}

.motion-ready .login-character-purple,
.motion-ready .login-character-ink,
.motion-ready .login-character-coral,
.motion-ready .login-character-neon,
.motion-ready .login-character span,
.motion-ready .login-character span::after,
.motion-ready .login-character-neon i {
  transition: none !important;
}

/* ============================================
   HIGH-IMPACT UX POLISH PASS
   Final overrides for homepage hierarchy, chips, cards, and mobile search.
============================================ */
:root {
  --brand-green: #58c934;
  --brand-green-hover: #49b929;
  --brand-cyan: #1497b8;
  --brand-pink: #b93472;
  --brand-pro: #f97316;
  --brand-pro-hover: #ea580c;
  --brand-ink: #080d18;
  --surface-page: #ffffff;
  --surface-soft: #f4fbfd;
  --surface-card: #ffffff;
  --line-soft: #dfe7ef;
  --line-strong: #c7d2df;
  --text-strong: #080d18;
  --text-body: #26364f;
  --text-soft: #64748b;
  --gradient-brand: linear-gradient(90deg, var(--brand-cyan), var(--brand-pink));
}

body {
  font-family: 'DM Sans', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface-page);
  color: var(--text-strong);
}

.nav-logo span,
.section-title,
.hero h1,
.cat-hero h1 {
  font-family: 'Space Grotesk', 'DM Sans', 'Inter', sans-serif;
  letter-spacing: 0;
}

.navbar {
  min-height: 72px;
}

.nav-logo img {
  max-height: 48px;
}

.nav-cta .btn {
  background: var(--brand-pro);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.18);
}

.nav-cta .btn:hover {
  background: var(--brand-pro-hover);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(249, 115, 22, 0.24);
}

.hero {
  min-height: 640px;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 14% 20%, rgba(20, 151, 184, 0.13), transparent 28%),
    radial-gradient(circle at 88% 72%, rgba(88, 201, 52, 0.1), transparent 26%),
    linear-gradient(180deg, #f8fdff 0%, #ffffff 78%);
}

.hero-content {
  padding-top: clamp(3.2rem, 6vw, 5.4rem);
  padding-bottom: clamp(3.7rem, 7vw, 5.9rem);
}

.hero h1 {
  max-width: 920px;
  margin-inline: auto;
  font-size: clamp(4rem, 7.1vw, 6rem);
  line-height: 0.96;
}

.hero p {
  max-width: 760px;
  color: var(--text-body);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
  line-height: 1.55;
}

.hero-heading-accent {
  color: var(--brand-green);
}

.hero-search {
  width: min(100%, 920px);
  min-height: 76px;
  grid-template-columns: auto auto auto minmax(10rem, 1fr) auto auto;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.09);
}

.hero-search:focus-within {
  border-color: var(--brand-green);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.09), 0 0 0 4px rgba(88, 201, 52, 0.14);
}

.hero-search-type {
  color: var(--text-strong);
}

.hero-search input {
  min-width: 0;
  color: var(--text-strong);
}

.hero-search .btn {
  min-width: 112px;
  border-radius: 9px;
  font-weight: 800;
}

.hero-chip-row {
  max-width: 900px;
  margin-top: 1.25rem;
  gap: 0.55rem;
}

.hero-chip-row > span {
  color: var(--text-soft);
  font-weight: 800;
}

.hero-chip-row a {
  min-height: 34px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(100, 116, 139, 0.2);
  border-radius: 999px;
  background: #ffffff;
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.hero-chip-row a:hover {
  border-color: rgba(88, 201, 52, 0.42);
  background: rgba(88, 201, 52, 0.1);
  color: var(--brand-ink);
  transform: translateY(-1px);
}

.recent-section {
  padding-top: clamp(3.1rem, 5vw, 4.8rem);
  padding-bottom: clamp(2.6rem, 4vw, 3.6rem);
}

.recent-strip {
  grid-auto-columns: minmax(280px, 0.32fr);
  gap: 1rem;
  padding: 0.45rem 0 1.15rem;
}

.recent-card {
  min-height: 116px;
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface-card);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.055);
}

.recent-card:hover {
  transform: translateY(-2px);
  border-color: #dbe3ef;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.recent-thumb {
  width: 86px;
  height: 82px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--cat-accent, var(--brand-cyan));
}

.recent-thumb .asset-thumb-media,
.recent-thumb .asset-thumb-fallback {
  width: 100%;
  height: 100%;
}

.recent-thumb img,
.recent-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-thumb .asset-thumb-fallback {
  min-height: 0;
  padding: 0.5rem;
  gap: 0.1rem;
}

.recent-thumb .asset-thumb-fallback i {
  font-size: 1.25rem;
}

.recent-thumb .asset-thumb-fallback span,
.recent-thumb .asset-thumb-fallback small {
  display: none;
}

.recent-thumb .asset-thumb-fallback strong {
  font-size: 0.62rem;
  line-height: 1.1;
}

.recent-copy strong {
  color: var(--text-strong);
  font-size: 0.96rem;
  line-height: 1.22;
}

.recent-copy small {
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 700;
}

.recent-format {
  align-self: start;
  padding: 0.22rem 0.48rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.asset-card,
.category-card,
.why-card,
.pricing-card {
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.055);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.asset-card:hover,
.category-card:hover,
.why-card:hover,
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.asset-thumb img,
.asset-thumb video {
  transition: transform 260ms ease;
}

.asset-card:hover .asset-thumb img,
.asset-card:hover .asset-thumb video {
  transform: scale(1.035);
}

.asset-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.95rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
}

.asset-kind-chip {
  flex: 0 0 auto;
  padding: 0.28rem 0.55rem;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.asset-view-link {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-strong);
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.asset-view-link i {
  color: var(--cat-accent, var(--brand-cyan));
  transition: transform 180ms ease;
}

.asset-card:hover .asset-view-link i {
  transform: translateX(2px);
}

/* Listing card alignment and fast poster-first video thumbnails. */
.assets-grid {
  align-items: stretch;
}

.asset-card {
  height: 100%;
}

.asset-card-link {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.asset-thumb {
  aspect-ratio: 16 / 10;
  flex: 0 0 auto;
  background: #f1f5f9;
}

.asset-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.95rem 0.95rem 0.9rem;
}

.asset-info-top {
  align-items: flex-start;
  min-height: 4.1rem;
}

.asset-info-top > div {
  min-width: 0;
}

.asset-type-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-title {
  min-height: 2.75rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: normal;
  word-break: normal;
}

.asset-category {
  min-height: 2.6rem;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.asset-category i {
  display: none;
}

.asset-tags {
  max-height: 4.2rem;
  overflow: hidden;
}

.asset-card-footer {
  margin-top: auto;
}

.asset-action-btn {
  min-width: 38px;
  width: 38px;
  height: 38px;
  padding: 0;
}

.asset-card-actions {
  flex-direction: column;
}

@media (max-width: 560px) {
  .asset-info-top {
    min-height: 0;
  }

  .asset-title {
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }

  .hero h1 {
    font-size: clamp(3rem, 11vw, 4.25rem);
  }

  .recent-strip {
    grid-auto-columns: minmax(250px, 0.82fr);
  }

}

@media (max-width: 560px) {
  .navbar {
    min-height: 64px;
  }

  .nav-logo img {
    max-height: 42px;
  }

  .hero {
    padding-top: 0;
    background:
      radial-gradient(circle at 0% 18%, rgba(20, 151, 184, 0.16), transparent 36%),
      linear-gradient(180deg, #f8fdff 0%, #ffffff 84%);
  }

  .hero-content {
    padding-top: 3.7rem;
    padding-bottom: 2.8rem;
  }

  .hero h1 {
    width: min(100%, 22rem);
    max-width: 22rem;
    font-size: clamp(2.75rem, 12vw, 3.35rem);
    line-height: 0.98;
  }

  .hero p {
    width: min(100%, 21rem);
    max-width: 21rem;
    font-size: 1rem;
  }

  .hero-search {
    width: min(100%, 22rem);
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.85rem 0.65rem;
    padding: 0.85rem;
    border-radius: 10px;
    overflow: visible;
  }

  .hero-search-type,
  .hero-search-divider,
  .hero-search .search-command-hint {
    display: none;
  }

  .hero-search > i {
    align-self: center;
    padding-left: 0.15rem;
  }

  .hero-search input {
    width: 100%;
    min-width: 0;
    font-size: 1rem;
  }

  .hero-search .btn {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 46px;
  }

  .hero-chip-row {
    width: min(100%, 22rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.5rem;
  }

  .hero-chip-row > span {
    grid-column: 1 / -1;
    text-align: center;
  }

  .hero-chip-row a {
    justify-content: center;
    min-height: 40px;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
  }

  .recent-section {
    padding-top: 3.4rem;
  }

  .recent-card {
    grid-template-columns: 74px minmax(0, 1fr);
    min-height: 104px;
  }

  .recent-thumb {
    width: 74px;
    height: 72px;
  }

  .recent-format {
    display: none;
  }

  .nav-account {
    display: none;
  }

  .nextjs-toast,
  [data-nextjs-toast],
  script[data-nextjs-dev-overlay],
  nextjs-portal {
    display: none !important;
  }
}

script[data-nextjs-dev-overlay],
nextjs-portal {
  display: none !important;
  pointer-events: none !important;
}

/* ============================================
   SECTION POLISH WITHOUT EXTRA HERO PREVIEWS
   Tightens trust, featured, why, and pricing surfaces.
============================================ */
.trust-strip {
  padding: 1.35rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(90deg, rgba(20, 151, 184, 0.06), rgba(88, 201, 52, 0.05));
}

.trust-grid {
  gap: 0.8rem;
}

.trust-item {
  min-height: 74px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.trust-item i {
  color: var(--brand-cyan);
}

.featured-banner {
  padding-block: clamp(3rem, 5vw, 5rem);
}

.featured-banner-inner {
  min-height: 360px;
  border: 1px solid rgba(8, 13, 24, 0.12);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(8, 13, 24, 0.96), rgba(16, 34, 50, 0.94) 56%, rgba(20, 151, 184, 0.82)),
    #080d18;
  box-shadow: 0 28px 80px rgba(8, 13, 24, 0.18);
}

.featured-banner-content {
  max-width: 620px;
}

.featured-eyebrow {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.featured-banner-content h2 {
  max-width: 12ch;
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  letter-spacing: 0;
}

.featured-banner-content .btn {
  background: var(--brand-green);
  color: #10200d;
}

.featured-banner-content .btn:hover {
  background: var(--brand-green-hover);
  color: #10200d;
}

.why-grid {
  align-items: stretch;
}

.why-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  border: 1px solid var(--line-soft);
}

.why-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(88, 201, 52, 0.12);
  color: var(--brand-green);
}

#pricing {
  background:
    linear-gradient(180deg, #ffffff, #f8fbfd);
  border-top: 1px solid var(--line-soft);
}

.pricing-grid-3 {
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.35rem, 2vw, 1.8rem);
  border: 1px solid var(--line-soft);
  background: #ffffff;
}

.pricing-card-premium {
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 24px 70px rgba(249, 115, 22, 0.14);
}

.pricing-title {
  color: var(--brand-ink);
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
}

.pricing-price {
  color: var(--brand-ink);
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
}

.pricing-copy {
  min-height: 2.75rem;
  color: var(--text-body);
}

.pricing-list {
  flex: 1;
}

.pricing-list li {
  align-items: flex-start;
  text-align: left;
}

.pricing-list i {
  color: var(--brand-green);
}

.pricing-card-premium .pricing-list i,
.pricing-card-premium .pricing-price {
  color: var(--brand-pro);
}

.pricing-card-premium .btn-primary {
  background: var(--brand-pro);
  color: #ffffff;
}

.pricing-card-premium .btn-primary:hover {
  background: var(--brand-pro-hover);
  color: #ffffff;
}

@media (max-width: 760px) {
  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-banner-inner {
    min-height: 0;
    padding: 1.4rem;
  }

  .featured-banner-content h2 {
    max-width: 100%;
  }
}

/* Pull discovery content higher now that the hero preview rail is removed. */
.hero {
  min-height: 560px;
}

.hero-content {
  padding-top: clamp(2.6rem, 5vw, 4.4rem);
  padding-bottom: clamp(2.9rem, 5vw, 4.2rem);
}

@media (max-width: 560px) {
  .hero-content {
    padding-top: 2.85rem;
    padding-bottom: 2rem;
  }

  .recent-section {
    padding-top: 2.25rem;
  }
}

/* Footer single-logo cleanup and stronger bottom navigation. */
.footer {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: 1.5rem;
  border-top: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, #ffffff, #f8fbfd);
}

.footer-grid {
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(150px, 0.75fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.footer-brand-wide-logo {
  width: min(320px, 100%);
  max-width: 320px;
  height: auto;
  margin: 0;
}

.footer .nav-logo {
  display: none;
}

.footer-brand p {
  max-width: 35ch;
  margin: 0;
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.65;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.footer-actions a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-ink);
  font-size: 0.86rem;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.footer-actions a:first-child {
  border-color: rgba(88, 201, 52, 0.4);
  background: rgba(88, 201, 52, 0.12);
}

.footer-actions a:hover {
  border-color: var(--brand-green);
  background: rgba(88, 201, 52, 0.16);
  transform: translateY(-1px);
}

.footer-col h4 {
  margin-bottom: 1.15rem;
  color: var(--brand-ink);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.11em;
}

.footer-col ul {
  gap: 0.78rem;
}

.footer-col ul a {
  color: var(--text-body);
  font-size: 0.98rem;
  line-height: 1.35;
}

.footer-col ul a:hover {
  color: var(--brand-cyan);
}

.footer-bottom {
  margin-top: clamp(2rem, 4vw, 3.5rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}

.footer-bottom p {
  color: var(--text-soft);
}

.social-link {
  border-color: var(--line-soft);
  border-radius: 999px;
}

.social-link:hover {
  border-color: var(--brand-cyan);
  color: var(--brand-cyan);
  background: rgba(20, 151, 184, 0.08);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand-wide-logo {
    width: min(280px, 100%);
  }

  .footer-actions a {
    flex: 1 1 130px;
  }
}

/* Asset detail page polish. */
.asset-detail-wrap {
  gap: clamp(1.5rem, 4vw, 3.2rem) !important;
  padding-top: clamp(1.5rem, 3vw, 2.4rem) !important;
  padding-bottom: clamp(1.5rem, 3vw, 2.25rem) !important;
}

.breadcrumb {
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  white-space: nowrap;
}

.breadcrumb::-webkit-scrollbar {
  display: none;
}

.asset-preview {
  border-color: var(--line-soft) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(135deg, rgba(20, 151, 184, 0.08), rgba(185, 52, 114, 0.06)),
    #eef4f8 !important;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.08);
}

.asset-preview video,
.asset-preview img {
  border-radius: inherit;
}

.asset-info-panel {
  position: sticky;
  top: calc(var(--navbar-height) + 1.25rem);
  padding: clamp(1.1rem, 2vw, 1.35rem);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.asset-info-panel h1 {
  color: var(--brand-ink) !important;
  font-family: 'Space Grotesk', 'DM Sans', sans-serif !important;
  font-size: clamp(2rem, 3vw, 2.65rem) !important;
  letter-spacing: 0;
}

.asset-meta {
  gap: 0.5rem !important;
}

.asset-meta > span:not(.badge) {
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--text-soft) !important;
  font-weight: 700;
}

.asset-desc {
  color: var(--text-body) !important;
  font-size: 1rem !important;
}

.asset-description-panel,
.asset-tags-panel {
  color: var(--brand-ink);
}

.asset-description-panel h2,
.asset-tags-panel h2 {
  margin: 0 0 0.85rem;
  color: var(--brand-ink);
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: clamp(1.18rem, 1.8vw, 1.45rem);
  font-weight: 900;
  letter-spacing: 0;
}

.asset-description-panel p {
  max-width: 72ch;
  margin: 0;
  color: var(--text-body);
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.62;
}

.asset-info-panel [style*="text-transform:uppercase"] {
  color: var(--text-soft) !important;
  font-weight: 900;
}

.asset-tags-panel .tags-wrap,
.asset-info-panel .tags-wrap {
  gap: 0.65rem 0.6rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  max-width: 100%;
  padding: 0.52rem 1.08rem !important;
  border: 1px solid rgba(17, 24, 39, 0.42) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #020617 !important;
  overflow-wrap: anywhere;
  font-size: clamp(0.92rem, 1.2vw, 1.02rem) !important;
  font-weight: 500;
  line-height: 1.2;
}

.tag-pill:hover {
  border-color: #111827 !important;
  color: #020617 !important;
  background: #f8fafc !important;
}

.download-box {
  border-color: #dbe3ef !important;
  border-radius: 12px !important;
  background:
    linear-gradient(180deg, rgba(88, 201, 52, 0.08), rgba(255, 255, 255, 0) 50%),
    #ffffff !important;
  box-shadow: none;
}

.download-box .btn-primary {
  border-radius: 10px;
  font-weight: 900;
}

.download-note {
  color: var(--text-soft) !important;
}

.detail-action-btn {
  min-height: 46px;
  border-radius: 999px !important;
}

.detail-action-btn:hover {
  border-color: var(--brand-cyan) !important;
  color: var(--brand-cyan) !important;
  background: rgba(20, 151, 184, 0.08) !important;
}

.related-section {
  border-top: 0 !important;
  padding-top: clamp(0.25rem, 1vw, 0.75rem);
}

@media (max-width: 900px) {
  .asset-info-panel {
    position: static;
  }
}

@media (max-width: 560px) {
  .asset-detail-wrap {
    padding-top: 1.1rem !important;
  }

  .asset-info-panel {
    padding: 1rem;
  }

  .asset-info-panel h1 {
    font-size: 1.85rem !important;
  }
}

/* Admin entry polish and clearer access path. */
.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(20, 151, 184, 0.12), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(88, 201, 52, 0.1), transparent 30%),
    linear-gradient(180deg, #f8fdff 0%, #ffffff 48%),
    #ffffff;
}

.admin-header {
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.admin-header h1 {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
}

.admin-site-link {
  min-height: 40px;
  border-radius: 999px;
  font-weight: 900;
}

.admin-locked {
  width: min(520px, 100%);
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 14px;
}

.admin-locked h2 {
  font-family: 'Space Grotesk', 'DM Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.admin-locked > p {
  max-width: 38ch;
  color: var(--text-body);
}

.admin-url-hint {
  margin-top: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: #f8fbfd;
}

.admin-url-hint code {
  color: var(--brand-cyan);
  font-weight: 900;
}

.admin-help {
  margin-top: 1rem;
}

.admin-help div {
  border-radius: 10px;
}

#adminGoogleSignIn {
  min-height: 52px;
  margin-top: 1rem;
  border-radius: 10px;
  font-weight: 900;
}

@media (max-width: 700px) {
  .admin-actions {
    width: 100%;
    justify-content: stretch;
  }

  .admin-site-link,
  .admin-user,
  #adminSignOut {
    flex: 1 1 auto;
  }

  .admin-user {
    text-align: center;
  }
}

/* Sponsored Ad Slots */
.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 2rem auto;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.03);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  min-height: 100px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.ad-slot::before {
  content: 'SPONSORED ADVERTISEMENT';
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.ad-slot-horizontal {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
}

.ad-slot-sidebar {
  width: 100%;
  min-height: 250px;
}

.ad-slot ins {
  background: transparent;
  display: block;
}

/* Modern motion, legal pages, and consent notice. */
.motion-shell {
  min-height: 100vh;
}

.js-enabled .fade-in {
  opacity: 0;
  transform: translate3d(0, 18px, 0) scale(0.992);
  filter: none;
  transition:
    opacity 420ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: none;
}

.hero-badge .dot {
  animation: evPulse 1.8s ease-in-out infinite;
}

.hero-heading-accent {
  background-size: 180% 100%;
  animation: evGradientShift 9s ease-in-out infinite;
}

.gradient-text {
  background-size: 100% 100%;
  animation: none;
}

.hero-search,
.asset-card,
.category-card,
.recent-card,
.why-card,
.pricing-card,
.contact-card,
.faq-item {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 220ms ease;
}

.hero-search:focus-within {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.asset-card:hover,
.category-card:hover,
.recent-card:hover,
.why-card:hover,
.pricing-card:hover,
.contact-card:hover,
.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.1);
  border-color: rgba(8, 145, 178, 0.28);
}

.asset-card:hover .asset-thumb img,
.category-card:hover .category-preview img,
.recent-card:hover img,
.featured-tile:hover img {
  transform: scale(1.025);
}

.asset-thumb img,
.category-preview img,
.recent-card img,
.featured-tile img {
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-tile:nth-child(1) {
  animation: evFloatSoft 6.8s ease-in-out infinite;
}

.featured-tile:nth-child(2) {
  animation: evFloatSoft 7.5s ease-in-out 0.35s infinite;
}

.featured-tile:nth-child(3) {
  animation: evFloatSoft 7s ease-in-out 0.65s infinite;
}

.legal-page {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.legal-card {
  max-width: 880px;
  background: #ffffff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.legal-eyebrow {
  margin-bottom: 0.65rem;
  color: var(--brand-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-card h1 {
  color: var(--brand-ink);
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.legal-updated {
  color: var(--text-soft);
  margin-bottom: clamp(1.5rem, 4vw, 2.4rem);
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
  padding: 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #f8fafc;
}

.legal-card .legal-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.45rem 0.7rem;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--brand-ink);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.legal-card .legal-toc a:hover,
.legal-card .legal-toc a:focus-visible {
  border-color: rgba(8, 145, 178, 0.35);
  color: var(--brand-cyan);
  transform: translateY(-1px);
  text-decoration: none;
}

.legal-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.legal-summary-card {
  min-height: 116px;
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.legal-summary-card strong {
  display: block;
  color: var(--brand-ink);
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}

.legal-summary-card span {
  color: var(--text-body);
  font-size: 0.86rem;
  line-height: 1.55;
}

.legal-card section {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: 110px;
}

.legal-card h2 {
  color: var(--brand-ink);
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.legal-card p {
  color: var(--text-body);
  line-height: 1.75;
}

.legal-card a {
  color: var(--brand-cyan);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-inline-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-left: 0.65rem;
}

.footer-inline-links a {
  color: var(--text-body);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 10000;
  width: min(560px, calc(100vw - 2rem));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid rgba(8, 145, 178, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  transform: translateY(14px);
  animation: evNoticeIn 280ms ease forwards;
}

.cookie-notice strong {
  display: block;
  color: var(--brand-ink);
  font-size: 0.9rem;
}

.cookie-notice p {
  margin: 0.25rem 0 0;
  color: var(--text-body);
  font-size: 0.84rem;
  line-height: 1.45;
}

.cookie-notice-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.7rem;
}

.cookie-notice-actions a {
  color: var(--brand-cyan);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-notice .btn {
  min-height: 38px;
  padding: 0.5rem 1rem;
}

.cookie-notice.is-hiding {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 220ms ease, transform 220ms ease;
}

@keyframes evPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(88, 201, 52, 0.38);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 8px rgba(88, 201, 52, 0);
  }
}

@keyframes evGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes evFloatSoft {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -9px, 0) rotate(0.6deg); }
}

@keyframes evNoticeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .legal-summary-grid {
    grid-template-columns: 1fr;
  }

  .legal-toc {
    padding: 0.65rem;
  }

  .legal-toc a {
    flex: 1 1 auto;
    justify-content: center;
  }

  .cookie-notice {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-notice-actions {
    justify-content: space-between;
  }

  .footer-inline-links {
    display: flex;
    margin: 0.5rem 0 0;
  }
}

@media (hover: none) {
  .asset-card:hover,
  .category-card:hover,
  .recent-card:hover,
  .why-card:hover,
  .pricing-card:hover,
  .contact-card:hover,
  .faq-item:hover,
  .legal-toc a:hover {
    transform: none;
  }

  .featured-tile {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled .fade-in,
  .fade-in.visible,
  .hero-badge .dot,
  .hero-heading-accent,
  .gradient-text,
  .featured-tile {
    animation: none !important;
    filter: none !important;
    transform: none !important;
    transition-duration: 0.01ms !important;
  }

  .asset-card:hover,
  .category-card:hover,
  .recent-card:hover,
  .why-card:hover,
  .pricing-card:hover,
  .contact-card:hover,
  .faq-item:hover,
  .hero-search:focus-within {
    transform: none;
  }
}

/* Distinct like/save/download actions. Keep this late to beat page-specific card overrides. */
.asset-action-btn[data-like-asset],
.like-action-btn,
body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset] {
  color: #be123c !important;
  border-color: rgba(244, 63, 94, 0.32) !important;
  background: rgba(255, 241, 242, 0.96) !important;
}

.asset-action-btn[data-save-asset],
.save-action-btn,
body:has(.browse-shell) .browse-content .asset-action-btn[data-save-asset] {
  color: #075985 !important;
  border-color: rgba(14, 165, 233, 0.32) !important;
  background: rgba(240, 249, 255, 0.96) !important;
}

.asset-download-btn,
body:has(.browse-shell) .browse-content .asset-download-btn {
  color: #166534 !important;
  border-color: rgba(34, 197, 94, 0.34) !important;
  background: rgba(240, 253, 244, 0.96) !important;
}

.asset-action-btn[data-like-asset]:hover,
.asset-action-btn[data-like-asset].active,
.like-action-btn:hover,
.like-action-btn.active,
body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset]:hover,
body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset].active {
  color: #ffffff !important;
  border-color: #e11d48 !important;
  background: #e11d48 !important;
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.22) !important;
}

.asset-action-btn[data-save-asset]:hover,
.asset-action-btn[data-save-asset].active,
.save-action-btn:hover,
.save-action-btn.active,
body:has(.browse-shell) .browse-content .asset-action-btn[data-save-asset]:hover,
body:has(.browse-shell) .browse-content .asset-action-btn[data-save-asset].active {
  color: #ffffff !important;
  border-color: #0284c7 !important;
  background: #0284c7 !important;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.22) !important;
}

.asset-download-btn:hover,
body:has(.browse-shell) .browse-content .asset-download-btn:hover {
  color: #10200d !important;
  border-color: var(--brand-green) !important;
  background: var(--brand-green) !important;
}

.asset-detail-actions .detail-action-btn {
  gap: 0.5rem;
  font-weight: 900;
}

.asset-detail-actions .detail-action-btn[data-like-asset] {
  color: #be123c !important;
}

.asset-detail-actions .detail-action-btn[data-save-asset] {
  color: #075985 !important;
}

.asset-detail-actions .detail-action-btn.active {
  color: #ffffff !important;
}

.account-stats > div:first-child i {
  color: #e11d48 !important;
}

.account-stats > div:nth-child(2) i {
  color: #0284c7 !important;
}

/* Final spacing and Instagram-style action polish. */
.hero {
  min-height: 0 !important;
  display: block !important;
  align-items: initial !important;
  padding: clamp(1.75rem, 3.4vw, 3.25rem) 0 clamp(2rem, 4vw, 3.5rem) !important;
}

.hero-content {
  padding-top: clamp(0.9rem, 1.8vw, 1.75rem) !important;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
}

.hero h1 {
  margin-top: 0 !important;
}

.hero-badge {
  margin-bottom: 1rem !important;
}

.assets-grid:not(.audio-listing) .asset-card-actions,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-card-actions {
  top: 0.72rem !important;
  right: 0.72rem !important;
  display: flex !important;
  flex-direction: row !important;
  gap: 0.34rem !important;
  transform: none !important;
}

.asset-action-btn,
body:has(.browse-shell) .browse-content .asset-action-btn {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #0f172a !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease, box-shadow 180ms ease !important;
}

.asset-action-btn i {
  font-size: 1.08rem;
  line-height: 1;
}

.asset-action-btn:hover,
body:has(.browse-shell) .browse-content .asset-action-btn:hover {
  transform: scale(1.06) !important;
  background: #ffffff !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18) !important;
}

.asset-action-btn[data-like-asset],
.like-action-btn,
body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset] {
  color: #111827 !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.asset-action-btn[data-like-asset]:hover,
.like-action-btn:hover,
body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset]:hover {
  color: #e11d48 !important;
}

.asset-action-btn[data-like-asset].active,
.like-action-btn.active,
body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset].active {
  color: #e11d48 !important;
  background: #ffffff !important;
  box-shadow: 0 12px 26px rgba(225, 29, 72, 0.2) !important;
}

.asset-action-btn[data-save-asset],
.save-action-btn,
body:has(.browse-shell) .browse-content .asset-action-btn[data-save-asset] {
  color: #111827 !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.asset-action-btn[data-save-asset]:hover,
.asset-action-btn[data-save-asset].active,
.save-action-btn:hover,
.save-action-btn.active,
body:has(.browse-shell) .browse-content .asset-action-btn[data-save-asset]:hover,
body:has(.browse-shell) .browse-content .asset-action-btn[data-save-asset].active {
  color: #020617 !important;
  background: #ffffff !important;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18) !important;
}

.asset-download-btn,
body:has(.browse-shell) .browse-content .asset-download-btn {
  color: #16a34a !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.asset-download-btn:hover,
body:has(.browse-shell) .browse-content .asset-download-btn:hover {
  color: #15803d !important;
  background: #ffffff !important;
}

.asset-like-count-badge {
  top: 0.75rem !important;
  left: 0.75rem !important;
  min-height: 28px !important;
  padding: 0.34rem 0.55rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.94) !important;
  color: #0f172a !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.asset-like-count-badge::before {
  content: "\2665" !important;
  color: #e11d48;
  font-size: 0.78rem;
}

.download-box {
  gap: 0.85rem !important;
  padding: clamp(1rem, 2vw, 1.25rem) !important;
  background: #ffffff !important;
}

.asset-detail-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  margin: 0 0 0.35rem !important;
}

.asset-detail-actions .detail-action-btn {
  width: auto !important;
  min-width: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 0.65rem !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #111827 !important;
  font-size: 1rem;
  font-weight: 850;
}

.asset-detail-actions .detail-action-btn i {
  font-size: 1.35rem;
}

.asset-detail-actions .detail-action-btn:hover {
  background: #f8fafc !important;
  transform: none !important;
  box-shadow: none !important;
}

.asset-detail-actions .detail-action-btn[data-like-asset]:hover,
.asset-detail-actions .detail-action-btn[data-like-asset].active {
  color: #e11d48 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.asset-detail-actions .detail-action-btn[data-save-asset]:hover,
.asset-detail-actions .detail-action-btn[data-save-asset].active {
  color: #020617 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.download-box .btn-primary {
  min-height: 50px;
  margin-top: 0.1rem;
}

@media (max-width: 760px) {
  .hero {
    padding-top: 1.25rem !important;
  }

  .hero-content {
    padding-top: 0.75rem !important;
    padding-bottom: 1.75rem !important;
  }
}

/* Last pass: reduce the first viewport gap and keep inactive detail actions neutral. */
.hero {
  padding-top: clamp(1rem, 2rem, 2rem) !important;
  padding-bottom: clamp(1.5rem, 2.75rem, 2.75rem) !important;
}

.hero-content {
  padding-top: clamp(0.35rem, 1rem, 1rem) !important;
  padding-bottom: clamp(1rem, 2rem, 2rem) !important;
}

.hero h1 {
  max-width: 980px !important;
  font-size: 5.35rem !important;
  line-height: 0.98 !important;
  margin-bottom: 0.85rem !important;
}

.hero p {
  margin-bottom: 1.25rem !important;
}

.asset-detail-actions .detail-action-btn[data-like-asset],
.asset-detail-actions .detail-action-btn[data-save-asset] {
  color: #111827 !important;
}

.asset-detail-actions .detail-action-btn[data-like-asset]:hover,
.asset-detail-actions .detail-action-btn[data-like-asset].active {
  color: #e11d48 !important;
}

.asset-detail-actions .detail-action-btn[data-save-asset]:hover,
.asset-detail-actions .detail-action-btn[data-save-asset].active {
  color: #020617 !important;
}

@media (max-width: 1200px) {
  .hero h1 {
    font-size: 4.55rem !important;
  }
}

@media (max-width: 760px) {
  .hero {
    padding-top: 1rem !important;
  }

  .hero h1 {
    font-size: 3.2rem !important;
    line-height: 1 !important;
  }
}

/* Refined hero/nav pass: quieter, more search-led, less oversized. */
.navbar {
  height: 76px !important;
  min-height: 76px !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04) !important;
}

.navbar .container {
  padding-inline: clamp(1.25rem, 4vw, 5.25rem) !important;
}

.navbar .nav-logo img {
  width: clamp(168px, 12vw, 204px) !important;
  max-height: 50px !important;
}

.nav-links {
  gap: 0.3rem !important;
}

.nav-links a {
  min-height: 38px !important;
  padding: 0 0.68rem !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #253044 !important;
  font-size: 0.93rem !important;
  font-weight: 800 !important;
}

.nav-links a:hover {
  background: #f6f8fb !important;
  color: var(--brand-ink) !important;
}

.nav-links a.active {
  background: transparent !important;
  color: var(--brand-ink) !important;
}

.nav-links a.active::after {
  display: block !important;
  left: 0.68rem !important;
  right: 0.68rem !important;
  bottom: -0.2rem !important;
  width: auto !important;
  height: 2px !important;
  background: var(--brand-green) !important;
  border-radius: 999px !important;
}

.nav-cta .btn {
  min-height: 44px !important;
  padding-inline: 1rem !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.16) !important;
}

.navbar .nav-account a {
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  border-color: #dce6d8 !important;
  background: #f7fff3 !important;
  font-size: 1.5rem !important;
}

.hero {
  padding-top: clamp(0.9rem, 1.8vw, 1.6rem) !important;
  padding-bottom: clamp(1.45rem, 2.8vw, 2.4rem) !important;
  background:
    radial-gradient(circle at 14% 24%, rgba(20, 151, 184, 0.1), transparent 22%),
    radial-gradient(circle at 88% 72%, rgba(88, 201, 52, 0.08), transparent 24%),
    linear-gradient(180deg, #f8fdff 0%, #ffffff 78%) !important;
}

.hero-content {
  max-width: 980px !important;
  padding-top: clamp(0.5rem, 1.2vw, 1rem) !important;
  padding-bottom: clamp(1rem, 2vw, 1.75rem) !important;
}

.hero-badge {
  margin-bottom: 0.75rem !important;
  color: #64748b !important;
  font-size: 0.86rem !important;
}

.hero-badge .dot {
  width: 6px !important;
  height: 6px !important;
}

.hero h1 {
  max-width: 900px !important;
  font-size: clamp(3.35rem, 5vw, 4.8rem) !important;
  line-height: 1.03 !important;
  margin-bottom: 0.85rem !important;
}

.hero-heading-accent {
  text-shadow: 0 10px 22px rgba(88, 201, 52, 0.12) !important;
}

.hero-heading-accent::after {
  bottom: -0.07em !important;
  height: 0.052em !important;
  box-shadow: 0 5px 12px rgba(88, 201, 52, 0.14) !important;
}

.hero p {
  max-width: 750px !important;
  margin-bottom: 1.25rem !important;
  color: #334155 !important;
  font-size: clamp(0.98rem, 1.15vw, 1.08rem) !important;
  line-height: 1.52 !important;
}

.hero-search {
  width: min(900px, calc(100% - 2rem)) !important;
  min-height: 62px !important;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto auto !important;
  gap: 0.65rem !important;
  margin: 0 auto 0.85rem !important;
  padding: 0.38rem 0.45rem 0.38rem 0.9rem !important;
  border-color: #d9e2ee !important;
  border-radius: 14px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07) !important;
}

.hero-search:focus-within {
  border-color: rgba(88, 201, 52, 0.65) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07), 0 0 0 4px rgba(88, 201, 52, 0.13) !important;
}

.hero-search-type {
  font-size: 0.88rem !important;
}

.hero-search-divider {
  height: 28px !important;
}

.hero-search > i {
  font-size: 1.05rem !important;
}

.hero-search input {
  height: 42px !important;
  font-size: 0.98rem !important;
}

.hero-search .search-command-hint {
  width: 36px !important;
  height: 36px !important;
}

.hero-search .btn {
  min-width: 108px !important;
  min-height: 46px !important;
  border-radius: 10px !important;
}

.hero-chip-row {
  max-width: 900px !important;
  justify-content: center !important;
  gap: 0.42rem !important;
  margin: 0 auto !important;
  color: #64748b !important;
}

.hero-chip-row > span {
  color: #64748b !important;
  font-size: 0.84rem !important;
  font-weight: 800 !important;
}

.hero-chip-row a {
  min-height: 31px !important;
  padding: 0.34rem 0.65rem !important;
  border-color: #dfe7f0 !important;
  background: rgba(255, 255, 255, 0.86) !important;
  color: #253044 !important;
  font-size: 0.83rem !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.hero-chip-row a:hover {
  border-color: rgba(88, 201, 52, 0.48) !important;
  background: rgba(88, 201, 52, 0.08) !important;
}

@media (max-width: 1200px) {
  .hero h1 {
    font-size: clamp(3rem, 6.4vw, 4.2rem) !important;
  }
}

@media (max-width: 760px) {
  .navbar {
    height: 66px !important;
    min-height: 66px !important;
  }

  .hero {
    padding-top: 0.9rem !important;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 10.5vw, 3.15rem) !important;
    line-height: 1.02 !important;
  }

  .hero p {
    font-size: 0.98rem !important;
  }

  .hero-search {
    width: min(100%, 22rem) !important;
  }
}

/* Final headline hierarchy requested: big first line, smaller creator line, no "fast". */
.hero h1 {
  display: grid !important;
  justify-items: center !important;
  gap: 0.02rem !important;
  max-width: 1120px !important;
  margin-inline: auto !important;
  margin-bottom: 0.95rem !important;
  line-height: 1 !important;
}

.hero-heading-main {
  display: block;
  color: #070b16;
  font-family: 'EditVault Display', 'Space Grotesk', 'DM Sans', 'Inter', sans-serif;
  font-size: clamp(4.8rem, 6.1vw, 6.65rem);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-heading-sub {
  display: block;
  color: #070b16;
  font-family: 'EditVault Display', 'Space Grotesk', 'DM Sans', 'Inter', sans-serif;
  font-size: clamp(3.75rem, 4.9vw, 5.45rem);
  font-weight: 950;
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-heading-sub .hero-heading-accent {
  color: var(--brand-green);
  font-size: 1em;
  font-weight: inherit;
}

@media (max-width: 1200px) {
  .hero-heading-main {
    font-size: clamp(3.7rem, 7.7vw, 5.4rem);
  }

  .hero-heading-sub {
    font-size: clamp(3rem, 6.8vw, 4.35rem);
  }
}

@media (max-width: 760px) {
  .hero h1 {
    gap: 0.18rem !important;
  }

  .hero-heading-main {
    font-size: clamp(2.9rem, 12vw, 4rem);
  }

  .hero-heading-sub {
    font-size: clamp(2.35rem, 10vw, 3.45rem);
  }
}

/* Authoritative final pass: full-screen hero, orange premium CTA, reliable like counts. */
.navbar {
  height: 76px !important;
  min-height: 76px !important;
}

.hero {
  min-height: calc(100vh - 76px) !important;
  display: grid !important;
  align-items: center !important;
  padding: clamp(2rem, 4vw, 4.25rem) 0 clamp(3rem, 6vw, 5.5rem) !important;
}

.hero-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.hero h1 {
  gap: 0.08rem !important;
  margin-bottom: 1.1rem !important;
}

.hero-heading-main,
.hero-heading-sub {
  font-size: clamp(4.6rem, 6.2vw, 6.7rem) !important;
  font-weight: 950 !important;
  line-height: 0.94 !important;
  letter-spacing: 0 !important;
}

.hero-heading-sub .hero-heading-accent {
  font-size: 1em !important;
  font-weight: 950 !important;
}

.hero p {
  margin-bottom: 1.6rem !important;
}

.nav-cta .btn,
.nav-cta a,
#nav-premium-btn {
  background: #ff6a1a !important;
  border: 1px solid #ff6a1a !important;
  color: #ffffff !important;
  box-shadow: 0 14px 30px rgba(255, 106, 26, 0.22) !important;
}

.nav-cta .btn:hover,
.nav-cta a:hover,
#nav-premium-btn:hover {
  background: #f25c05 !important;
  border-color: #f25c05 !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}

.asset-like-count-badge {
  display: none !important;
}

.action-icon,
.action-icon svg {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.action-svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.asset-action-btn.active .action-svg {
  fill: currentColor;
}

.asset-action-btn[data-like-asset],
body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset] {
  color: #e11d48 !important;
}

.asset-action-btn[data-save-asset],
body:has(.browse-shell) .browse-content .asset-action-btn[data-save-asset] {
  color: #111827 !important;
}

.asset-action-btn[data-like-asset].has-count,
body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset].has-count {
  width: auto !important;
  min-width: 44px !important;
  padding-inline: 0.55rem !important;
  gap: 0.25rem !important;
}

.asset-action-count {
  display: inline-flex;
  min-width: 0;
  color: #111827;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.asset-action-count[hidden] {
  display: none !important;
}

.asset-card-actions .asset-action-btn {
  color: #111827 !important;
}

.asset-card-actions .asset-action-btn[data-like-asset] {
  color: #e11d48 !important;
}

.asset-card-actions .asset-action-btn[data-save-asset] {
  color: #111827 !important;
}

.asset-card-actions .asset-download-btn {
  color: #16a34a !important;
}

.asset-detail-actions .detail-action-btn .action-icon,
.asset-detail-actions .detail-action-btn .action-icon svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 1200px) {
  .hero-heading-main,
  .hero-heading-sub {
    font-size: clamp(3.8rem, 7.4vw, 5.4rem) !important;
  }
}

@media (max-width: 760px) {
  .navbar {
    height: 66px !important;
    min-height: 66px !important;
  }

  .hero {
    min-height: calc(100vh - 66px) !important;
    padding: 1.75rem 0 2.5rem !important;
  }

  .hero-heading-main,
  .hero-heading-sub {
    font-size: clamp(2.85rem, 11.4vw, 3.9rem) !important;
    line-height: 0.98 !important;
  }
}

/* Fast, GPU-safe motion pass. Hero text paints without waiting for JavaScript. */
@keyframes evHeroRise {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(0.988);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes evSoftSweep {
  0%, 100% {
    transform: translate3d(-2%, 0, 0);
    opacity: 0.52;
  }
  50% {
    transform: translate3d(2%, 0, 0);
    opacity: 0.9;
  }
}

.js-enabled .hero .fade-in {
  opacity: 1 !important;
  transform: translate3d(0, 0, 0) scale(1) !important;
  animation: evHeroRise 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

.js-enabled .hero .hero-badge {
  animation-delay: 40ms;
}

.js-enabled .hero h1 {
  animation-delay: 100ms;
}

.js-enabled .hero p {
  animation-delay: 160ms;
}

.js-enabled .hero-search {
  animation-delay: 220ms;
}

.js-enabled .hero-chip-row {
  animation-delay: 280ms;
}

.js-enabled .fade-in {
  transition-duration: 520ms !important;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.lazy-media {
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(1.015);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.lazy-media-loaded {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.category-preview-item::after,
.featured-tile::after {
  animation: evSoftSweep 2.8s ease-in-out infinite;
}

.asset-card,
.category-card,
.recent-card,
.why-card,
.pricing-card,
.hero-search,
.btn {
  backface-visibility: hidden;
}

.asset-card:hover,
.category-card:hover,
.recent-card:hover,
.why-card:hover,
.pricing-card:hover {
  transform: translate3d(0, -5px, 0) !important;
}

.btn:hover {
  transform: translate3d(0, -1px, 0);
}

@media (prefers-reduced-motion: reduce) {
  .js-enabled .hero .fade-in,
  .lazy-media,
  .lazy-media-loaded,
  .asset-thumb-media::after,
  .category-preview-item::after,
  .featured-tile::after {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }

  .lazy-media {
    opacity: 1;
  }
}

/* Professional media/icon hardening: no blank icon-font dependency, no overflowing names. */
.ui-icon-svg {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: -0.16em;
}

.filter-icon .ui-icon-svg,
.category-icon .ui-icon-svg {
  width: 1.2rem;
  height: 1.2rem;
}

.asset-action-btn .ui-icon-svg,
.detail-action-btn .ui-icon-svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke-width: 2.1;
}

.asset-thumb-fallback .ui-icon-svg,
.asset-audio-preview .ui-icon-svg {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}

.asset-view-link .ui-icon-svg,
.play-icon .ui-icon-svg {
  width: 1rem;
  height: 1rem;
  transition: transform 180ms ease;
}

.assets-grid:not(.audio-listing) .asset-card:hover .asset-view-link .ui-icon-svg,
.assets-grid:not(.audio-listing) .asset-card:focus-within .asset-view-link .ui-icon-svg {
  transform: translateX(5px);
}

.asset-thumb-video {
  background: #05070a;
}

.asset-thumb-video .asset-video-poster {
  opacity: 1;
  background: #05070a;
}

.asset-thumb-video.video-frame-ready.video-preview-playing .asset-video-poster {
  opacity: 0;
}

.asset-title,
.asset-info h3,
.asset-info-panel h1,
.asset-card,
.asset-card * {
  min-width: 0;
}

.asset-title,
.asset-info h3 {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.asset-info-panel h1 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.08;
  font-size: clamp(2rem, 3.1vw, 3.5rem);
}

.asset-category,
.asset-type-label,
.asset-folder-divider,
.breadcrumb,
.breadcrumb a,
.breadcrumb span {
  overflow-wrap: anywhere;
}

.cookie-notice {
  left: auto !important;
  right: clamp(0.75rem, 2vw, 1rem) !important;
  bottom: clamp(0.75rem, 2vw, 1rem) !important;
  width: min(360px, calc(100vw - 1.5rem)) !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.75rem !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14) !important;
}

.cookie-notice strong {
  font-size: 0.82rem !important;
}

.cookie-notice p {
  display: none !important;
}

.cookie-notice .btn {
  min-height: 38px !important;
  padding: 0.55rem 0.85rem !important;
  border-radius: 8px !important;
}

@media (max-width: 560px) {
  .cookie-notice {
    right: 0.75rem !important;
    left: 0.75rem !important;
    width: auto !important;
  }
}

/* Most-liked ranking and smooth interaction polish. */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.asset-card,
.category-card,
.recent-card,
.why-card,
.pricing-card,
.hero-search,
.nav-links a,
.btn,
.asset-action-btn {
  transition:
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    background-color 220ms ease,
    color 180ms ease,
    opacity 220ms ease !important;
}

.asset-card,
.category-card,
.recent-card {
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.asset-card:hover,
.category-card:hover,
.recent-card:hover {
  transform: translate3d(0, -6px, 0) !important;
}

.asset-thumb {
  position: relative;
  overflow: hidden;
}

.asset-thumb img,
.asset-video-poster,
.category-preview-item img,
.category-preview-video,
.featured-tile img {
  transform: translate3d(0, 0, 0) scale(1);
  transition:
    opacity 360ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease;
}

.asset-card:hover .asset-thumb img,
.asset-card:hover .asset-video-poster,
.category-card:hover .category-preview-item img,
.category-card:hover .category-preview-video,
.featured-tile:hover img {
  transform: translate3d(0, 0, 0) scale(1.035);
}

.most-liked-badge {
  position: absolute;
  left: 0.72rem;
  bottom: 0.72rem;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  min-height: 32px;
  max-width: calc(100% - 1.44rem);
  padding: 0.36rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #101827;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.96);
  animation: evRankIn 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(80ms + (var(--rank-index, 0) * 42ms));
}

.most-liked-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.62rem;
  height: 1.3rem;
  padding: 0 0.34rem;
  border-radius: 999px;
  background: #e11d48;
  color: #ffffff;
  font-size: 0.72rem;
}

.most-liked-card .like-action-btn {
  box-shadow: 0 10px 24px rgba(225, 29, 72, 0.14) !important;
}

.like-action-btn.active .action-icon,
.asset-action-btn[data-like-asset].active .action-icon {
  animation: evLikePop 360ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes evRankIn {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes evLikePop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .asset-card,
  .category-card,
  .recent-card,
  .asset-thumb img,
  .asset-video-poster,
  .category-preview-item img,
  .featured-tile img,
  .most-liked-badge,
  .like-action-btn.active .action-icon,
  .asset-action-btn[data-like-asset].active .action-icon {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }

  .most-liked-badge {
    opacity: 1;
  }
}

/* Professional audio browser: compact rows, reactive waveform, clean action icons. */
@keyframes evAudioWave {
  0%, 100% {
    transform: scaleY(0.72);
    opacity: 0.58;
  }
  50% {
    transform: scaleY(1.18);
    opacity: 1;
  }
}

.assets-grid.audio-listing,
.browse-content .assets-grid.audio-listing {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0.72rem !important;
  margin-top: 1rem !important;
}

.audio-listing .asset-card {
  position: relative !important;
  min-height: 92px !important;
  padding: 0.82rem 12.5rem 0.82rem 5.1rem !important;
  border: 1px solid rgba(226, 232, 240, 0.78) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(90deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96)),
    #ffffff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.055) !important;
  overflow: hidden !important;
}

.audio-listing .asset-card:hover {
  transform: translate3d(0, -3px, 0) !important;
  border-color: rgba(88, 201, 52, 0.34) !important;
  background: #ffffff !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08) !important;
}

.audio-listing .asset-card.audio-active {
  border-color: rgba(88, 201, 52, 0.48) !important;
  background:
    linear-gradient(90deg, rgba(240, 253, 244, 0.86), rgba(255, 255, 255, 0.98)),
    #ffffff !important;
}

.audio-listing .asset-card.audio-active::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 4px !important;
  border-radius: 999px !important;
  background: var(--brand-green) !important;
}

.audio-listing .asset-card > .asset-audio-row-btn {
  position: absolute !important;
  left: 1.05rem !important;
  top: 50% !important;
  z-index: 5 !important;
  width: 48px !important;
  min-width: 48px !important;
  height: 48px !important;
  min-height: 48px !important;
  border: 1px solid rgba(203, 213, 225, 0.86) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  color: #020617 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
  transform: translate3d(0, -50%, 0) !important;
}

.audio-listing .asset-card > .asset-audio-row-btn:hover {
  transform: translate3d(0, -50%, 0) scale(1.04) !important;
  border-color: rgba(88, 201, 52, 0.52) !important;
}

.audio-listing .asset-card > .asset-audio-row-btn.playing {
  border-color: var(--brand-green) !important;
  background: var(--brand-green) !important;
  color: #10200d !important;
  transform: translate3d(0, -50%, 0) scale(1.04) !important;
}

.audio-listing .asset-card > .asset-audio-row-btn span {
  display: none !important;
}

.audio-listing .asset-card > .asset-audio-row-btn i {
  font-size: 1.18rem !important;
}

.audio-listing .asset-card-link {
  display: block !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.audio-listing .asset-thumb {
  display: none !important;
}

.audio-listing .asset-info {
  display: block !important;
  min-width: 0 !important;
}

.audio-listing .asset-info-top {
  display: block !important;
  max-width: min(34vw, 24rem) !important;
  min-width: 0 !important;
}

.audio-listing .asset-info-top > div {
  min-width: 0 !important;
}

.audio-listing .asset-type-label {
  margin: 0 0 0.22rem !important;
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
}

.audio-listing .asset-title {
  max-width: 100% !important;
  margin: 0 !important;
  color: #020617 !important;
  font-size: clamp(0.95rem, 1vw, 1.08rem) !important;
  font-weight: 900 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.audio-listing .asset-category {
  max-width: min(34vw, 24rem) !important;
  min-height: 0 !important;
  margin-top: 0.28rem !important;
  color: #475569 !important;
  font-size: 0.86rem !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.audio-listing .asset-tags,
.audio-listing .badge {
  display: none !important;
}

.audio-listing .asset-card-footer {
  position: absolute !important;
  right: 8.4rem !important;
  top: 50% !important;
  z-index: 4 !important;
  display: flex !important;
  align-items: center !important;
  min-width: 4.5rem !important;
  height: 2rem !important;
  transform: translate3d(0, -50%, 0) !important;
  border: 0 !important;
}

.audio-listing .asset-kind-chip {
  border: 0 !important;
  background: transparent !important;
  color: #020617 !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  text-transform: none !important;
}

.audio-listing .asset-view-link {
  display: none !important;
}

.audio-listing .asset-card-actions {
  position: absolute !important;
  top: 50% !important;
  right: 0.82rem !important;
  z-index: 6 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.48rem !important;
  transform: translate3d(0, -50%, 0) !important;
}

.audio-listing .asset-action-btn,
body:has(.browse-shell) .audio-listing .asset-action-btn {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #020617 !important;
  box-shadow: none !important;
}

.audio-listing .asset-action-btn:hover,
body:has(.browse-shell) .audio-listing .asset-action-btn:hover {
  transform: translate3d(0, -1px, 0) scale(1.08) !important;
  background: #f1f5f9 !important;
}

.audio-listing .asset-action-btn[data-like-asset],
body:has(.browse-shell) .audio-listing .asset-action-btn[data-like-asset] {
  color: #e11d48 !important;
}

.audio-listing .asset-download-btn,
body:has(.browse-shell) .audio-listing .asset-download-btn {
  color: #16a34a !important;
}

.audio-listing .audio-seek-rail {
  position: absolute !important;
  left: clamp(21rem, 38vw, 34rem) !important;
  right: 14rem !important;
  top: 50% !important;
  z-index: 4 !important;
  display: flex !important;
  align-items: center !important;
  height: 44px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  transform: translate3d(0, -50%, 0) !important;
  cursor: ew-resize !important;
}

.audio-listing .audio-seek-rail::before {
  display: none !important;
}

.audio-waveform {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 3px !important;
  width: 100% !important;
  height: 38px !important;
  overflow: hidden !important;
}

.audio-waveform i {
  display: block !important;
  flex: 1 1 2px !important;
  min-width: 2px !important;
  max-width: 5px !important;
  height: var(--wave-height, 46%) !important;
  border-radius: 999px !important;
  background: #94a3b8 !important;
  opacity: 0.62 !important;
  transform-origin: center !important;
  transform: scaleY(var(--wave-scale, 0.82)) !important;
  opacity: var(--wave-opacity, 0.62) !important;
  transition:
    background 180ms ease,
    opacity 180ms ease,
    transform 180ms ease !important;
}

.audio-listing .asset-card.audio-active .audio-waveform i {
  background: #10200d !important;
  opacity: 0.78 !important;
}

.audio-listing .asset-card.audio-active:not(.audio-visualizer-ready) .audio-waveform i {
  animation: evAudioWave 760ms ease-in-out infinite;
  animation-delay: var(--wave-delay, 0ms);
}

.audio-listing .asset-card.audio-visualizer-ready .audio-waveform i {
  animation: none !important;
  opacity: var(--wave-opacity, 0.78) !important;
}

.audio-progress-line {
  position: absolute !important;
  left: 0 !important;
  bottom: 2px !important;
  display: block !important;
  width: var(--audio-progress, 0%) !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--brand-green), #16a34a) !important;
  box-shadow: 0 0 18px rgba(88, 201, 52, 0.28) !important;
  transition: width 120ms linear !important;
}

.audio-seek-rail.is-scrubbing .audio-progress-line,
.audio-listing .asset-card.audio-active .audio-progress-line {
  height: 4px !important;
}

@media (max-width: 959px) {
  .audio-listing .asset-card {
    padding: 0.9rem 0.85rem 1rem 4.75rem !important;
  }

  .audio-listing .asset-info-top,
  .audio-listing .asset-category {
    max-width: calc(100vw - 9rem) !important;
  }

  .audio-listing .audio-seek-rail {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    width: 100% !important;
    margin: 0.72rem 6.5rem 0 0 !important;
    transform: none !important;
  }

  .audio-listing .asset-card-footer {
    right: 5.25rem !important;
    top: auto !important;
    bottom: 1.15rem !important;
    transform: none !important;
  }

  .audio-listing .asset-card-actions {
    right: 0.7rem !important;
    top: auto !important;
    bottom: 1rem !important;
    transform: none !important;
  }
}

@media (max-width: 640px) {
  .audio-listing .asset-card {
    min-height: 122px !important;
  }

  .audio-listing .asset-card-footer {
    display: none !important;
  }

  .audio-listing .audio-seek-rail {
    margin-right: 0 !important;
  }

  .audio-listing .asset-card-actions {
    top: 0.72rem !important;
    bottom: auto !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audio-listing .asset-card.audio-active .audio-waveform i {
    animation: none !important;
  }
}

.asset-thumb-media:has(img.lazy-media-loaded) .asset-thumb-fallback {
  opacity: 0 !important;
}

.category-preview-item:has(img.lazy-media:not(.lazy-media-loaded)) {
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), #ffffff) !important;
}

.category-preview-item:has(img.lazy-media:not(.lazy-media-loaded))::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-top-color: transparent;
  border-radius: 999px;
  animation: evSpin 720ms linear infinite;
}

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

/* Featured mosaic should never look like empty wireframe boxes. */
.featured-tile {
  position: relative;
  display: grid;
  place-items: center;
  border: 0 !important;
  border-radius: 8px !important;
  background:
    radial-gradient(circle at 28% 22%, rgba(88, 201, 52, 0.34), transparent 38%),
    radial-gradient(circle at 78% 74%, rgba(249, 115, 22, 0.24), transparent 42%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.045)) !important;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 18px 45px rgba(0, 0, 0, 0.14) !important;
}

.featured-tile::before {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(16px);
}

.featured-tile img {
  position: relative;
  z-index: 1;
}

.featured-tile-empty span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 850;
}

/* Final audio-listing pass: sound-library rows instead of bulky cards. */
.browse-content .assets-grid.audio-listing {
  overflow: hidden !important;
  border-top: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  background: #ffffff !important;
}

.audio-listing .asset-card {
  min-height: 108px !important;
  padding: 0.72rem 12rem 0.72rem 5.05rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

.audio-listing .asset-card:last-child {
  border-bottom: 0 !important;
}

.audio-listing .asset-card:hover {
  background: linear-gradient(90deg, rgba(240, 253, 244, 0.58), #ffffff 38%) !important;
  box-shadow: none !important;
}

.audio-listing .asset-card.audio-active {
  background: linear-gradient(90deg, rgba(240, 253, 244, 0.82), #ffffff 42%) !important;
  box-shadow: none !important;
}

.audio-listing .asset-info {
  padding: 0 !important;
}

.audio-listing .asset-card-actions .asset-action-btn,
body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}

.audio-listing .asset-card-actions .action-icon {
  background: transparent !important;
  box-shadow: none !important;
}

.audio-listing .audio-waveform {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  width: 100% !important;
  background: transparent !important;
  border-radius: 0 !important;
  transform: none !important;
  transition: none !important;
}

.audio-listing .audio-seek-rail {
  left: clamp(19rem, 30vw, 28rem) !important;
  right: 12.25rem !important;
}

/* Cleaner adjustable audio rail: flat waveform, progress overlay, visible drag handle. */
.audio-listing .audio-seek-rail {
  height: 54px !important;
  padding: 0 0.35rem !important;
  border-radius: 999px !important;
  cursor: col-resize !important;
}

.audio-listing .audio-seek-rail:focus-visible {
  outline: 3px solid rgba(88, 201, 52, 0.32) !important;
  outline-offset: 4px !important;
}

.audio-waveform-shell {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 42px !important;
}

.audio-waveform-shell::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 50% !important;
  height: 1px !important;
  transform: translateY(-50%) !important;
  background: #cbd5e1 !important;
}

.audio-listing .audio-waveform,
.audio-listing .audio-waveform-base {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 2px !important;
  width: 100% !important;
  height: 42px !important;
  overflow: hidden !important;
  background: transparent !important;
  transform: none !important;
}

.audio-listing .audio-waveform i {
  flex: 1 1 2px !important;
  min-width: 1px !important;
  max-width: 3px !important;
  height: var(--wave-height, 42%) !important;
  border-radius: 999px !important;
  background: #64748b !important;
  opacity: var(--wave-opacity, 0.48) !important;
  transform: scaleY(var(--wave-scale, 0.68)) !important;
  transition:
    background 180ms ease,
    opacity 180ms ease,
    transform 120ms ease !important;
}

.audio-waveform-progress {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  display: block !important;
  width: var(--audio-progress, 0%) !important;
  overflow: hidden !important;
  border-radius: inherit !important;
  transition: width 110ms linear !important;
}

.audio-waveform-progress .audio-waveform {
  width: var(--audio-rail-width, 100%) !important;
  min-width: var(--audio-rail-width, 100%) !important;
}

.audio-waveform-progress .audio-waveform i {
  background: var(--brand-green) !important;
  opacity: var(--wave-opacity, 0.92) !important;
}

.audio-progress-handle {
  position: absolute !important;
  left: var(--audio-progress, 0%) !important;
  top: 50% !important;
  width: 14px !important;
  height: 14px !important;
  border: 2px solid #ffffff !important;
  border-radius: 999px !important;
  background: var(--brand-green) !important;
  box-shadow: 0 4px 14px rgba(88, 201, 52, 0.28) !important;
  transform: translate(-50%, -50%) scale(0.92) !important;
  opacity: 0.72 !important;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease !important;
}

.audio-seek-rail:hover .audio-progress-handle,
.audio-seek-rail.is-scrubbing .audio-progress-handle,
.audio-listing .asset-card.audio-active .audio-progress-handle {
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

.audio-listing .asset-card.audio-active,
.audio-listing .asset-card:hover {
  box-shadow: none !important;
}

.audio-listing .asset-card.audio-active .audio-waveform i {
  background: #64748b !important;
}

.audio-listing .asset-card.audio-active .audio-waveform-progress .audio-waveform i {
  background: var(--brand-green) !important;
}

.audio-listing .asset-card.audio-active:not(.audio-visualizer-ready) .audio-waveform i {
  animation: none !important;
}

.audio-listing .asset-card.audio-visualizer-ready .audio-waveform i {
  animation: none !important;
  opacity: var(--wave-opacity, 0.7) !important;
}

.audio-listing .asset-card.audio-visualizer-ready .audio-waveform-progress .audio-waveform i {
  opacity: var(--wave-opacity, 0.96) !important;
}

/* Override older broad .audio-seek-rail span rules. */
.audio-listing .audio-seek-rail .audio-waveform-shell {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  transform: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.audio-listing .audio-seek-rail .audio-waveform,
.audio-listing .audio-seek-rail .audio-waveform-base {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 42px !important;
  transform: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.audio-listing .audio-seek-rail .audio-waveform-progress {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  display: block !important;
  width: var(--audio-progress, 0%) !important;
  height: 42px !important;
  transform: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
}

.audio-listing .audio-seek-rail .audio-waveform-progress .audio-waveform {
  width: var(--audio-rail-width, 100%) !important;
  min-width: var(--audio-rail-width, 100%) !important;
}

.audio-listing .audio-seek-rail .audio-progress-handle {
  position: absolute !important;
  left: var(--audio-progress, 0%) !important;
  top: 50% !important;
  width: 14px !important;
  height: 14px !important;
  transform: translate(-50%, -50%) scale(0.92) !important;
  border-radius: 999px !important;
  background: var(--brand-green) !important;
}

/* Keep the cookie notice compact so it does not cover media controls or cards. */
.cookie-notice {
  left: auto !important;
  right: clamp(0.75rem, 2vw, 1rem) !important;
  bottom: clamp(0.75rem, 2vw, 1rem) !important;
  width: min(360px, calc(100vw - 1.5rem)) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.14) !important;
}

.audio-listing .asset-card-footer {
  right: 7.7rem !important;
  gap: 0.55rem !important;
  min-width: 8rem !important;
  justify-content: flex-end !important;
}

.audio-time {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 850;
  font-variant-numeric: lining-nums;
}

.audio-time-separator {
  opacity: 0.55;
}

.audio-mini-player {
  position: fixed;
  left: 50%;
  bottom: 1.05rem;
  z-index: 9999;
  display: grid;
  grid-template-columns: auto minmax(180px, 280px) minmax(160px, 360px) auto auto;
  align-items: center;
  gap: 0.75rem;
  width: min(860px, calc(100vw - 2rem));
  padding: 0.72rem 0.82rem;
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(-50%, 18px, 0);
  transition:
    opacity 220ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.audio-mini-player.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(-50%, 0, 0);
}

.audio-mini-button,
.audio-mini-close {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.audio-mini-button {
  background: var(--brand-green);
  color: #10200d;
  font-size: 1rem;
}

.audio-mini-close {
  background: #f8fafc;
  color: #0f172a;
}

.audio-mini-copy {
  min-width: 0;
}

.audio-mini-copy strong,
.audio-mini-copy span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.audio-mini-copy strong {
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 900;
}

.audio-mini-copy span,
.audio-mini-time {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.audio-mini-seek {
  position: relative;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: col-resize;
}

.audio-mini-seek::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  transform: translateY(-50%);
}

.audio-mini-progress {
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--mini-audio-progress, 0%);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-green), #16a34a);
  transform: translateY(-50%);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.detail-stat {
  padding: 0.72rem 0.78rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #f8fafc;
}

.detail-stat small,
.detail-stat strong {
  display: block;
}

.detail-stat small {
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.detail-stat strong {
  margin-top: 0.18rem;
  color: var(--brand-ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.9rem;
}

.detail-stat-wide {
  grid-column: 1 / -1;
}

.license-note-panel {
  padding: 0.9rem;
  border: 1px solid rgba(88, 201, 52, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.86), #ffffff);
}

.license-note-panel strong {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: var(--brand-ink);
  font-size: 0.9rem;
}

.license-note-panel p {
  margin: 0.42rem 0;
  color: var(--text-body);
  font-size: 0.86rem;
  line-height: 1.55;
}

.license-note-panel small {
  display: block;
  color: var(--text-soft);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.75rem;
}

@media (max-width: 780px) {
  .audio-mini-player {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .audio-mini-seek,
  .audio-mini-time {
    grid-column: 1 / -1;
  }
}

/* Audio browse cleanup: keep playback inline, readable, and free of overlays. */
body:has(.browse-shell) .audio-mini-player,
.browse-shell ~ .audio-mini-player {
  display: none !important;
}

.audio-listing .asset-card {
  overflow: hidden !important;
  padding-right: 9.25rem !important;
}

.audio-listing .asset-card.audio-active {
  background: linear-gradient(90deg, rgba(240, 253, 244, 0.7), rgba(255, 255, 255, 0.98) 17rem) !important;
  box-shadow: none !important;
}

.audio-listing .asset-card.audio-active::before {
  width: 3px !important;
  background: var(--brand-green) !important;
  opacity: 1 !important;
  box-shadow: none !important;
}

.audio-listing .asset-card.audio-active::after,
.audio-listing .asset-card:hover::after {
  display: none !important;
}

.audio-listing .audio-seek-rail {
  left: clamp(18rem, 30vw, 27rem) !important;
  right: 15.75rem !important;
  z-index: 2 !important;
}

.audio-listing .asset-card-footer {
  right: 6rem !important;
  min-width: 9rem !important;
  max-width: 9rem !important;
  gap: 0.42rem !important;
  justify-content: flex-end !important;
  z-index: 3 !important;
}

.audio-listing .asset-info {
  max-width: clamp(13rem, 21vw, 22rem) !important;
}

.audio-listing .asset-title {
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.audio-listing .asset-meta {
  max-width: 100% !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.audio-listing .asset-kind-chip {
  min-width: 3.4rem !important;
  max-width: 3.8rem !important;
  overflow: hidden !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.audio-time {
  min-width: 4.9rem !important;
  max-width: 4.9rem !important;
  justify-content: flex-end !important;
  white-space: nowrap !important;
}

.audio-listing .asset-card-actions {
  right: 0.58rem !important;
  gap: 0.34rem !important;
  z-index: 4 !important;
}
/* Modern professional marketplace refresh */
:root {
  color-scheme: light;
  --primary: #111827;
  --primary-light: #1f2937;
  --accent: #2563eb;
  --accent-2: #16a34a;
  --accent-warm: #f97316;
  --bg: #f8fafc;
  --bg-soft: #eef2ff;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --text-primary: #111827;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border: #dbe3ef;
  --glass-bg: #ffffff;
  --glass-border: #dbe3ef;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 16px 42px rgba(15, 23, 42, 0.12);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

html {
  background: var(--bg);
}

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: Inter, "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
a,
input,
select,
textarea {
  letter-spacing: 0;
}

button,
.btn,
[role="button"],
.asset-card,
.category-card,
.recent-card,
.search-suggestion {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.32);
  outline-offset: 3px;
}

.bg-mesh,
.hero-geometric-bg,
.elegant-shape,
.hero::before,
.hero::after {
  display: none !important;
}

.container {
  max-width: 1180px;
}

.top-offer {
  background: #111827;
  color: #f8fafc;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-offer a {
  color: #bbf7d0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav-logo span,
.nav-links a {
  color: var(--text-primary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.btn,
.asset-action-btn,
.audio-preview-btn,
.category-card,
.asset-card,
.recent-card,
.admin-panel,
.admin-stat-card,
.glass-card {
  border-radius: var(--radius-md);
}

.btn-primary {
  background: var(--accent-2);
  color: #ffffff;
  border: 1px solid var(--accent-2);
  box-shadow: 0 10px 24px rgba(22, 163, 74, 0.2);
}

.btn-primary:hover {
  background: #15803d;
  border-color: #15803d;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.26);
}

.btn-outline {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #eff6ff;
}

.glass-card,
.admin-panel,
.admin-stat-card,
.asset-card,
.category-card,
.pricing-card,
.download-box {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.hero {
  display: block !important;
  justify-content: normal !important;
  align-items: normal !important;
  min-height: 0 !important;
  padding: clamp(3.25rem, 6vw, 5rem) 0 clamp(2.25rem, 4vw, 3.25rem) !important;
  background: #f8fafc;
  border-bottom: 1px solid var(--border);
}

.hero-content {
  max-width: 940px;
  text-align: left;
  margin-inline: 0;
}

.hero-badge {
  width: fit-content;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  box-shadow: none;
}

.hero-badge .dot {
  background: var(--accent-2);
}

.hero h1 {
  max-width: 850px;
  color: var(--text-primary);
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-heading-main,
.hero-heading-sub {
  display: block;
}

.hero-heading-accent,
.gradient-text {
  color: var(--accent);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero p {
  max-width: 760px;
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
}

.hero-search {
  width: min(100%, 820px);
  min-height: 64px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.11);
}

.hero-search:focus-within {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 18px 52px rgba(37, 99, 235, 0.14);
}

.hero-search-type {
  color: var(--text-primary);
  font-weight: 700;
}

.hero-search > i,
.hero-search input {
  color: var(--text-primary);
}

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

.hero-chip-row {
  justify-content: flex-start;
  gap: 0.65rem;
}

.hero-chip-row > span {
  color: var(--text-muted);
}

.hero-chip-row a {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 999px;
  box-shadow: none;
}

.hero-chip-row a:hover {
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--accent);
  background: #eff6ff;
}

.trust-strip,
.recent-section,
.section,
.pricing,
.about-preview {
  background: var(--bg);
}

.trust-grid,
.categories-grid,
.assets-grid,
.recent-strip {
  gap: 1rem;
}

.trust-item,
.recent-card,
.category-card {
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: none;
}

.section-title {
  color: var(--text-primary);
  letter-spacing: 0;
}

.section-subtitle,
.asset-category,
.asset-type-label,
.admin-status {
  color: var(--text-muted);
}

.asset-card {
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.asset-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: var(--shadow-hover);
}

.asset-thumb {
  background: var(--surface-muted);
}

.asset-title,
.asset-info h3 {
  color: var(--text-primary);
}

.asset-tag,
.asset-kind-chip,
.asset-size-chip,
.badge-free {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.asset-size-chip {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.badge-premium {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.asset-view-link,
.asset-action-btn:hover {
  color: var(--accent);
}

.search-suggestions {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
}

.search-suggestion {
  border-radius: var(--radius-sm);
}

.search-suggestion:hover {
  background: #eff6ff;
}

.admin-page {
  background: #f8fafc;
}

.admin-header {
  background: transparent;
}

.admin-kicker {
  color: var(--accent);
  letter-spacing: 0.08em;
}

.admin-stat-card {
  box-shadow: none;
}

.admin-stat-card span {
  color: var(--text-muted);
}

.admin-stat-card strong {
  color: var(--text-primary);
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea,
.admin-search-input input {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus,
.admin-search-input input:focus {
  border-color: rgba(37, 99, 235, 0.75);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.admin-asset-row {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.admin-asset-row:hover {
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--shadow-soft);
}

@media (max-width: 720px) {
  .hero {
    padding-top: 3.25rem;
  }

  .hero-content {
    text-align: left;
  }

  .hero-search {
    align-items: stretch;
    gap: 0.6rem;
    padding: 0.75rem;
  }

  .hero-search-type,
  .hero-search-divider,
  .hero-search .search-command-hint {
    display: none;
  }

  .hero-search .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Hero correction: tighter text, real previews, less empty space */
.hero {
  display: block !important;
  min-height: 0 !important;
  padding: clamp(2.75rem, 5vw, 4.25rem) 0 clamp(2.35rem, 4vw, 3.25rem) !important;
  background:
    radial-gradient(ellipse at 10% 24%, rgba(191, 219, 254, 0.58) 0%, rgba(219, 234, 254, 0.42) 24%, transparent 50%),
    radial-gradient(ellipse at 88% 66%, rgba(187, 247, 208, 0.62) 0%, rgba(220, 252, 231, 0.5) 26%, transparent 54%),
    radial-gradient(circle at 50% 6%, rgba(255, 255, 255, 0.88), transparent 34%),
    #f8fafc !important;
}

.hero-content {
  max-width: 980px !important;
  margin-inline: auto !important;
  text-align: center !important;
}

.hero-badge,
.hero-search {
  margin-left: auto !important;
  margin-right: auto !important;
}

.hero h1 {
  max-width: 900px !important;
  margin: 1rem auto 1rem !important;
  font-size: clamp(2.75rem, 5vw, 5.35rem) !important;
  line-height: 1.02 !important;
  letter-spacing: 0 !important;
}

.hero-heading-main,
.hero-heading-sub {
  display: block !important;
  font-size: inherit !important;
  line-height: inherit !important;
}

.hero-heading-sub .hero-heading-accent,
.hero-heading-accent {
  color: #16a34a !important;
  position: relative !important;
  display: inline-block !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: 0 18px 42px rgba(22, 163, 74, 0.28) !important;
}

.hero-heading-accent::after {
  content: "" !important;
  position: absolute !important;
  left: 0.03em !important;
  right: 0.03em !important;
  bottom: -0.1em !important;
  height: 0.08em !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(88, 201, 52, 0.2), rgba(88, 201, 52, 0.95), rgba(88, 201, 52, 0.2)) !important;
  box-shadow: 0 10px 22px rgba(88, 201, 52, 0.42) !important;
  pointer-events: none !important;
}

.hero p {
  max-width: 720px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.hero-search {
  width: min(100%, 780px) !important;
}

.hero-chip-row {
  justify-content: center !important;
}

.hero-preview-strip {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
  width: min(100%, 980px);
  margin: 1.35rem auto 0;
}

.hero-preview-card {
  position: relative;
  min-width: 0;
  min-height: 156px;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(219, 227, 239, 0.92);
  border-radius: 8px;
  background: #ffffff;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-preview-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 20%, rgba(15, 23, 42, 0.72) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-preview-card:hover {
  transform: translateY(-3px);
  border-color: #dbe3ef;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16), 0 0 0 4px rgba(34, 211, 238, 0.14);
}

.hero-preview-thumb,
.hero-preview-thumb .asset-thumb-media,
.hero-preview-thumb .asset-thumb-fallback,
.hero-preview-thumb img,
.hero-preview-thumb video {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}

.hero-preview-thumb {
  position: absolute;
  inset: 0;
  display: block;
  background: #f1f5f9;
}

.hero-preview-thumb img,
.hero-preview-thumb video {
  object-fit: cover !important;
}

.hero-preview-thumb .asset-thumb-fallback {
  display: none !important;
}

.hero-preview-thumb .asset-thumb-media.thumb-error .asset-thumb-fallback {
  display: flex !important;
}

.hero-preview-format,
.hero-preview-copy {
  position: absolute;
  z-index: 2;
}

.hero-preview-format {
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.28rem 0.48rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-preview-copy {
  left: 0.72rem;
  right: 0.72rem;
  bottom: 0.68rem;
  text-align: left;
}

.hero-preview-copy strong,
.hero-preview-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-preview-copy strong {
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.18;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.36);
}

.hero-preview-copy small {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

@media (max-width: 720px) {
  .hero {
    padding-top: 2.5rem !important;
  }

  .hero-content,
  .hero p {
    text-align: left !important;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.6rem) !important;
    text-align: left !important;
  }

  .hero-badge,
  .hero-search {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .hero-chip-row {
    justify-content: flex-start !important;
  }

  .hero-preview-strip {
    display: flex !important;
    overflow-x: auto;
    padding: 0 0 0.35rem;
    scroll-snap-type: x proximity;
  }

  .hero-preview-card {
    min-width: 210px;
    scroll-snap-align: start;
  }
}

/* Browse cleanup: lighter controls and consistent horizontal card actions */
.browse-toolbar .search-wrap,
.search-wrap {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.search-wrap input {
  min-height: 58px !important;
  border: 1px solid var(--border) !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06) !important;
}

.search-wrap:focus-within,
.search-wrap input:focus {
  border-color: rgba(37, 99, 235, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1) !important;
}

.sidebar-section-compact .filter-bar,
.browse-sidebar .filter-bar,
.browse-sidebar .collection-bar,
.browse-filter-group .collection-bar,
.filter-bar,
.collection-bar {
  padding: 0.25rem 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.asset-card-actions,
.assets-grid:not(.audio-listing) .asset-card-actions,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-card-actions,
body:has(.browse-shell) .browse-content .asset-card-actions,
.audio-listing .asset-card-actions {
  position: absolute !important;
  top: 0.85rem !important;
  right: 0.85rem !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.42rem !important;
  z-index: 6 !important;
}

.asset-card-actions .asset-action-btn,
.audio-listing .asset-card-actions .asset-action-btn,
body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12) !important;
}

.asset-card-actions .asset-action-btn[data-like-asset] {
  width: auto !important;
  min-width: 58px !important;
  padding-inline: 0.62rem !important;
}

/* Performance pass: keep motion GPU-friendly without reserving will-change for every card. */
.asset-card,
.category-card,
.recent-card,
.why-card,
.pricing-card,
.search-suggestion {
  contain: layout paint;
  will-change: auto !important;
}

.asset-card:hover,
.asset-card:focus-within,
.category-card:hover,
.category-card:focus-within,
.recent-card:hover,
.recent-card:focus-within {
  will-change: transform;
}

.asset-thumb-media,
.category-preview-item,
.featured-tile {
  content-visibility: auto;
  contain-intrinsic-size: 220px 160px;
}

section:not(.hero),
.related-section,
.browse-shell {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

.asset-thumb img,
.asset-video-poster,
.category-preview-item img,
.featured-tile img {
  image-rendering: auto;
}

.asset-size-chip {
  display: none !important;
}

.asset-detail-wrap.asset-detail-audio {
  align-items: start;
}

.asset-media-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.35rem);
}

.asset-media-column > .asset-preview {
  width: 100%;
}

.asset-preview.asset-preview-audio {
  aspect-ratio: auto !important;
  min-height: 220px;
  height: auto;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.asset-preview.asset-preview-audio .asset-audio-preview {
  min-height: 0;
  height: auto;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 12px;
  background: transparent;
}

.asset-preview.asset-preview-audio .asset-audio-preview audio {
  width: min(100%, 560px);
  margin-top: 0.9rem;
}

.asset-preview > video,
.asset-preview > audio,
.asset-preview .asset-audio-preview audio {
  pointer-events: auto !important;
}

@media (min-width: 900px) {
  .asset-detail-wrap {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.74fr) !important;
    grid-template-rows: auto;
    align-items: start !important;
  }

  .asset-detail-wrap > .asset-media-column {
    grid-column: 1;
    grid-row: 1;
  }

  .asset-detail-wrap > .asset-info-panel {
    grid-column: 2;
    grid-row: 1;
  }
}

.asset-license-note {
  align-self: stretch;
}

/* Category cover refresh: uploaded covers lead every category card. */
.category-card {
  position: relative;
  transform: translate3d(0, 0, 0);
  transition:
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease,
    box-shadow 280ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 220ms ease !important;
  will-change: transform;
}

.category-preview {
  grid-template-columns: minmax(0, 1fr) !important;
  aspect-ratio: 16 / 9 !important;
  transform: translate3d(0, 0, 0);
  transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.category-preview-stack {
  display: none !important;
}

.category-preview-item {
  position: relative;
  transform: translate3d(0, 0, 0);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition:
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 280ms ease,
    border-color 220ms ease,
    filter 220ms ease;
}

.category-preview-item-large {
  width: 100%;
  height: 100%;
}

.category-preview-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 34%),
    linear-gradient(135deg, transparent 20%, rgba(255, 255, 255, 0.22) 46%, transparent 68%);
  opacity: 0;
  transform: translate3d(-18%, 0, 0);
  transition:
    opacity 260ms ease,
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.category-cover-art {
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(15, 23, 42, 0.08)),
    #0f172a;
}

.category-cover-uploaded {
  background: #0f172a;
}

.category-cover-art::after {
  animation: none !important;
  content: none !important;
}

.category-cover-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0f172a;
  transform: translate3d(0, 0, 0) scale(1.001);
  transform-origin: center;
  transition:
    transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 360ms ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translate3d(0, -6px, 0) !important;
}

.category-card:hover .category-preview,
.category-card:focus-visible .category-preview {
  transform: translate3d(0, -2px, 0);
}

.category-card:hover .category-preview-item,
.category-card:focus-visible .category-preview-item {
  border-color: #dbe3ef;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
}

.category-card:hover .category-preview-item-large,
.category-card:focus-visible .category-preview-item-large {
  transform: translate3d(0, -1px, 0) scale(1.012);
}

.category-card:hover .category-preview-item-small:first-child,
.category-card:focus-visible .category-preview-item-small:first-child {
  transform: translate3d(0, -2px, 0);
}

.category-card:hover .category-preview-item-small:last-child,
.category-card:focus-visible .category-preview-item-small:last-child {
  transform: translate3d(0, 2px, 0);
}

.category-card:hover .category-preview-item::before,
.category-card:focus-visible .category-preview-item::before {
  opacity: 1;
  transform: translate3d(22%, 0, 0);
}

.category-card:hover .category-cover-art img,
.category-card:focus-visible .category-cover-art img {
  filter: saturate(1.08) contrast(1.035);
  transform: translate3d(0, 0, 0) scale(1.045);
}

@media (prefers-reduced-motion: reduce) {
  .category-card,
  .category-preview,
  .category-preview-stack,
  .category-preview-item,
  .category-preview-item::before,
  .category-cover-art img {
    transition: none !important;
  }

  .category-card:hover,
  .category-card:focus-visible,
  .category-card:hover .category-preview,
  .category-card:focus-visible .category-preview,
  .category-card:hover .category-preview-stack,
  .category-card:focus-visible .category-preview-stack,
  .category-card:hover .category-preview-item,
  .category-card:focus-visible .category-preview-item {
    transform: none !important;
  }
}

/* Interaction reliability and motion polish. */
.asset-action-btn,
.detail-action-btn,
.search-suggestion,
.login-dialog,
.account-dialog {
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    background-color 180ms ease,
    color 160ms ease,
    opacity 180ms ease !important;
}

.asset-action-btn:active,
.detail-action-btn:active {
  transform: translate3d(0, 1px, 0) scale(0.96) !important;
}

.asset-action-btn[data-like-asset],
.like-action-btn,
.asset-card-actions .asset-action-btn[data-like-asset],
body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset] {
  color: #64748b !important;
}

.asset-action-btn[data-save-asset],
.save-action-btn,
.asset-card-actions .asset-action-btn[data-save-asset],
body:has(.browse-shell) .browse-content .asset-action-btn[data-save-asset] {
  color: #64748b !important;
}

.asset-action-btn[data-like-asset].active,
.like-action-btn.active,
.asset-card-actions .asset-action-btn[data-like-asset].active,
body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset].active {
  color: #e11d48 !important;
  background: #fff1f2 !important;
  border-color: rgba(225, 29, 72, 0.35) !important;
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.2) !important;
}

.asset-action-btn[data-save-asset].active,
.save-action-btn.active,
.asset-card-actions .asset-action-btn[data-save-asset].active,
body:has(.browse-shell) .browse-content .asset-action-btn[data-save-asset].active {
  color: #2563eb !important;
  background: #eff6ff !important;
  border-color: rgba(37, 99, 235, 0.32) !important;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.17) !important;
}

.admin-category-panel {
  grid-column: 1 / -1;
}

.admin-category-form {
  display: grid;
  gap: 0.9rem;
}

.admin-category-form label {
  display: block;
  margin-bottom: 0.34rem;
  color: var(--text-body);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-category-form input,
.admin-category-form select {
  width: 100%;
}

.admin-category-form .admin-two > div,
.admin-category-form .admin-three > div {
  min-width: 0;
}

.admin-three {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 9rem minmax(0, 1fr);
  gap: 0.85rem;
}

#categoryAccent {
  min-height: 42px;
  padding: 0.2rem;
}

.admin-category-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #f8fafc;
}

.admin-category-thumb,
.admin-category-row-thumb {
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #ffffff;
  color: #64748b;
}

.admin-category-thumb {
  width: 96px;
  height: 64px;
}

.admin-category-thumb img,
.admin-category-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-category-preview strong,
.admin-category-preview span,
.admin-category-row-copy h3,
.admin-category-row-copy p,
.admin-category-row-copy span {
  display: block;
  overflow: hidden;
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.admin-category-preview strong,
.admin-category-row-copy h3 {
  color: var(--text-strong);
  font-size: 0.95rem;
  font-weight: 900;
}

.admin-category-preview span,
.admin-category-row-copy p,
.admin-category-row-copy span {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 750;
}

.admin-category-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.admin-category-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.admin-category-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--cat-accent, #2563eb);
  border-radius: 8px;
  background: #ffffff;
}

.admin-category-row-thumb {
  width: 76px;
  height: 54px;
}

.admin-category-row-copy {
  min-width: 0;
}

@media (max-width: 760px) {
  .admin-three,
  .admin-category-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-category-preview {
    grid-template-columns: 84px minmax(0, 1fr);
  }
}

.asset-action-btn.active .action-svg,
.detail-action-btn.active .action-svg {
  fill: currentColor !important;
  stroke: currentColor !important;
}

.asset-action-btn:not(.active) .action-svg,
.detail-action-btn:not(.active) .action-svg {
  fill: transparent !important;
}

.asset-action-btn.active .action-icon,
.detail-action-btn.active .action-icon {
  animation: evActionConfirm 340ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.asset-download-btn:hover,
.asset-download-btn:focus-visible {
  color: #047857 !important;
  background: #ecfdf5 !important;
  border-color: rgba(16, 185, 129, 0.34) !important;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.18) !important;
}

.asset-card.visible,
.category-card.visible,
.recent-card.visible,
.search-suggestion {
  backface-visibility: hidden;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  transform: translate3d(0, -2px, 0);
}

/* Final card interaction pass: visible hover and wider Most Liked layout. */
.assets-grid:not(.audio-listing) .asset-card {
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease !important;
}

.assets-grid:not(.audio-listing) .asset-card:hover,
.assets-grid:not(.audio-listing) .asset-card:focus-within {
  transform: translate3d(0, -8px, 0) scale(1.01) !important;
  border-color: rgba(37, 99, 235, 0.36) !important;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.16) !important;
}

.assets-grid:not(.audio-listing) .asset-card:hover .asset-thumb img,
.assets-grid:not(.audio-listing) .asset-card:hover .asset-video-poster,
.assets-grid:not(.audio-listing) .asset-card:hover .asset-preview-video,
.assets-grid:not(.audio-listing) .asset-card:focus-within .asset-thumb img,
.assets-grid:not(.audio-listing) .asset-card:focus-within .asset-video-poster,
.assets-grid:not(.audio-listing) .asset-card:focus-within .asset-preview-video {
  transform: translate3d(0, 0, 0) scale(1.055) !important;
  filter: saturate(1.05) contrast(1.03);
}

.assets-grid:not(.audio-listing) .asset-card:hover .asset-view-link i,
.assets-grid:not(.audio-listing) .asset-card:focus-within .asset-view-link i {
  transform: translateX(5px);
}

#trending .container {
  max-width: min(1680px, calc(100vw - 4rem));
}

#trendingGrid.assets-grid {
  grid-template-columns: repeat(4, minmax(230px, 1fr)) !important;
  gap: 1.15rem;
}

@media (max-width: 1280px) {
  #trendingGrid.assets-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  #trending .container {
    max-width: var(--container-max);
  }

  #trendingGrid.assets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 620px) {
  #trendingGrid.assets-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@keyframes evActionConfirm {
  0% {
    transform: scale(0.86);
  }
  45% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .asset-action-btn,
  .detail-action-btn,
  .search-suggestion,
  .assets-grid:not(.audio-listing) .asset-card,
  .assets-grid:not(.audio-listing) .asset-card .asset-thumb img,
  .assets-grid:not(.audio-listing) .asset-card .asset-video-poster,
  .assets-grid:not(.audio-listing) .asset-card .asset-preview-video,
  .login-dialog,
  .account-dialog {
    transition: none !important;
  }

  .assets-grid:not(.audio-listing) .asset-card:hover,
  .assets-grid:not(.audio-listing) .asset-card:focus-within,
  .assets-grid:not(.audio-listing) .asset-card:hover .asset-thumb img,
  .assets-grid:not(.audio-listing) .asset-card:hover .asset-video-poster,
  .assets-grid:not(.audio-listing) .asset-card:hover .asset-preview-video,
  .assets-grid:not(.audio-listing) .asset-card:focus-within .asset-thumb img,
  .assets-grid:not(.audio-listing) .asset-card:focus-within .asset-video-poster,
  .assets-grid:not(.audio-listing) .asset-card:focus-within .asset-preview-video {
    transform: none !important;
  }

  .asset-action-btn.active .action-icon,
  .detail-action-btn.active .action-icon {
    animation: none !important;
  }
}

/* Stitch mobile pass: dense, touch-safe mobile web. */

.asset-info-panel h1,
.asset-card h3,
.asset-title,
.breadcrumb a,
.breadcrumb span {
  overflow-wrap: anywhere;
}

@media (hover: none) {
  .asset-card:hover,
  .category-card:hover,
  .recent-card:hover,
  .hero-preview-card:hover {
    transform: none !important;
  }
}

@media (max-width: 760px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100%, 100vw);
    padding-inline: 0.9rem !important;
  }

  .navbar {
    width: min(100% - 1rem, 720px) !important;
    min-height: 62px;
  }

  .navbar .container {
    padding-inline: 0.55rem !important;
  }

  .navbar .nav-logo {
    min-width: 0;
    max-width: calc(100vw - 6rem);
    padding: 0.32rem 0.55rem 0.32rem 0.34rem !important;
  }

  .navbar .nav-logo img {
    width: min(150px, 42vw) !important;
    max-height: 42px !important;
    object-fit: contain;
  }

  .nav-logo span {
    display: none;
  }

  .nav-hamburger {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
  }

  .nav-links {
    top: calc(100% + 0.55rem) !important;
    left: 0 !important;
    right: 0 !important;
    max-height: min(72dvh, 540px);
    overflow-y: auto;
    padding: 0.65rem !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
  }

  .nav-links.open {
    display: flex !important;
  }

  .nav-links li,
  .nav-links a {
    width: 100%;
  }

  .nav-links a {
    min-height: 44px !important;
    justify-content: flex-start !important;
    padding-inline: 0.85rem !important;
    color: var(--brand-ink, #0f172a) !important;
  }

  .hero {
    min-height: 0 !important;
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }

  .hero-content {
    max-width: none;
  }

  .hero-search input,
  .search-wrap input {
    min-height: 52px !important;
    font-size: 0.98rem !important;
  }

  .hero-preview-strip,
  .collection-bar,
  .filter-bar,
  .hero-chip-row {
    max-width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .hero-preview-strip::-webkit-scrollbar,
  .collection-bar::-webkit-scrollbar,
  .filter-bar::-webkit-scrollbar,
  .hero-chip-row::-webkit-scrollbar {
    display: none;
  }

  .hero-preview-card,
  .collection-btn,
  .filter-btn,
  .hero-chip {
    scroll-snap-align: start;
  }

  .hero-preview-card {
    min-width: min(76vw, 260px) !important;
    min-height: 146px !important;
  }

  body:has(.browse-shell) main {
    padding-top: 1.1rem !important;
  }

  body:has(.browse-shell) main .container {
    max-width: 100% !important;
  }

  .browse-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.95rem !important;
    align-items: start;
  }

  .browse-sidebar {
    position: relative !important;
    top: auto !important;
    max-height: 34dvh !important;
    padding: 0.72rem !important;
    overflow: auto !important;
    border-radius: 10px !important;
  }

  .browse-sidebar .filter-bar,
  .browse-sidebar .collection-bar,
  .browse-filter-group .collection-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.5rem !important;
    padding-bottom: 0.15rem !important;
  }

  .filter-btn,
  .collection-btn,
  .browse-filter-group .collection-btn {
    min-height: 44px !important;
    min-width: max-content !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
  }

  .browse-content,
  .browse-content > * {
    min-width: 0;
  }

  .browse-content .assets-grid,
  .assets-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.9rem !important;
  }

  .assets-grid:not(.audio-listing) .asset-card {
    border-radius: 8px !important;
  }

  .assets-grid:not(.audio-listing) .asset-card .asset-thumb {
    aspect-ratio: 16 / 9 !important;
    min-height: 0 !important;
  }

  .asset-card-actions,
  body:has(.browse-shell) .browse-content .asset-card-actions {
    top: 0.62rem !important;
    right: 0.62rem !important;
    gap: 0.36rem !important;
  }

  .asset-card-actions .asset-action-btn,
  body:has(.browse-shell) .browse-content .asset-action-btn,
  .audio-listing .asset-card-actions .asset-action-btn {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    transform: none !important;
  }

  .asset-card-actions .asset-action-btn[data-like-asset],
  body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset] {
    min-width: 58px !important;
  }

  .asset-card-link {
    min-width: 0;
  }

  .asset-card h3,
  .asset-card .asset-title,
  .asset-card p {
    max-width: 100%;
  }

  .audio-listing .asset-card {
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    gap: 0.65rem !important;
    padding: 0.72rem 0.55rem !important;
  }

  .audio-listing .asset-card-actions {
    position: static !important;
    display: flex !important;
    gap: 0.32rem !important;
  }

  .audio-waveform-rail {
    min-width: 0;
  }

  .breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.42rem !important;
    overflow: visible !important;
    white-space: normal !important;
    padding-top: 0.9rem !important;
  }

  .breadcrumb a,
  .breadcrumb span {
    min-width: 0;
    max-width: 100%;
    line-height: 1.35;
  }

  #breadcrumb-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .asset-detail-wrap {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1rem !important;
    padding-top: 0.9rem !important;
    padding-bottom: 1.35rem !important;
  }

  .asset-media-column,
  .asset-info-panel {
    min-width: 0;
  }

  .asset-preview {
    width: 100% !important;
    border-radius: 10px !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1) !important;
  }

  .asset-preview video,
  .asset-preview img {
    max-width: 100%;
  }

  .asset-info-panel {
    padding: 0.95rem !important;
    border-radius: 10px !important;
  }

  .asset-info-panel h1 {
    font-size: clamp(1.45rem, 8vw, 2rem) !important;
    line-height: 1.12 !important;
  }

  .asset-meta {
    gap: 0.42rem !important;
  }

  .asset-detail-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem !important;
  }

  .asset-detail-actions .detail-action-btn {
    min-height: 48px !important;
    border-radius: 8px !important;
  }

  .download-box {
    padding: 1rem !important;
    border-radius: 10px !important;
  }

  .related-section {
    padding-bottom: 1.6rem !important;
  }

  .section-title {
    font-size: clamp(1.7rem, 9vw, 2.25rem) !important;
    line-height: 1.08 !important;
  }

  .cookie-notice {
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 420px) {
  .navbar .nav-logo img {
    width: min(138px, 40vw) !important;
  }

  .asset-card-actions .asset-action-btn[data-like-asset],
  body:has(.browse-shell) .browse-content .asset-action-btn[data-like-asset] {
    min-width: 54px !important;
    padding-inline: 0.48rem !important;
  }

  .audio-listing .asset-card {
    grid-template-columns: 46px minmax(0, 1fr) !important;
  }

  .audio-listing .asset-card-actions {
    grid-column: 1 / -1;
    justify-content: flex-end !important;
  }
}

@media (max-width: 760px) {
  body:has(.browse-shell) .browse-content .audio-listing .asset-card .asset-card-actions .asset-action-btn {
    width: 44px !important;
    min-width: 44px !important;
    max-width: none !important;
    height: 44px !important;
    min-height: 44px !important;
    max-height: none !important;
    transform: none !important;
  }

  body:has(.browse-shell) .browse-content .audio-listing .asset-card .asset-card-actions .asset-action-btn[data-like-asset] {
    min-width: 58px !important;
  }
}

/* Mobile app shell: bottom tabs and native-app rhythm. */
.mobile-app-tabbar {
  display: none;
}

.mobile-top-account {
  display: none;
}

@media (max-width: 760px) {
  :root {
    --mobile-tabbar-height: 72px;
  }

  body {
    background: #f6f8fc !important;
    padding-bottom: calc(var(--mobile-tabbar-height) + 1.3rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  main {
    padding-bottom: calc(var(--mobile-tabbar-height) + 1rem) !important;
  }

  .navbar {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: calc(60px + env(safe-area-inset-top, 0px)) !important;
    min-height: calc(60px + env(safe-area-inset-top, 0px)) !important;
    margin: 0 !important;
    padding-top: env(safe-area-inset-top, 0px);
    border: 0 !important;
    border-bottom: 1px solid rgba(203, 213, 225, 0.88) !important;
    border-radius: 0 !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
  }

  .navbar .container {
    height: 60px !important;
    max-width: 100% !important;
    justify-content: flex-start !important;
  }

  .navbar .nav-logo {
    border: 0 !important;
    background: transparent !important;
  }

  .navbar .nav-logo img {
    width: min(142px, 39vw) !important;
    max-height: 40px !important;
  }

  .navbar .nav-links,
  .navbar .nav-links.open,
  .nav-hamburger,
  .nav-hamburger.open {
    display: none !important;
  }

  .mobile-top-account {
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 999px;
    background: #ffffff;
    color: #2563eb;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    cursor: pointer;
  }

  .mobile-top-account i {
    font-size: 1.42rem;
  }

  .nav-links {
    top: calc(60px + env(safe-area-inset-top, 0px) + 0.45rem) !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
  }

  .hero {
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    background: transparent !important;
  }

  .hero-badge,
  .hero h1 {
    display: none !important;
  }

  .hero-content > p,
  .hero-chip-row,
  .hero-search {
    margin-top: 0 !important;
  }

  .hero-content > p,
  .hero-chip-row,
  .trust-strip {
    display: none !important;
  }

  .hero-search {
    width: 100% !important;
    min-height: 52px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0 0.9rem !important;
    border: 1px solid rgba(203, 213, 225, 0.94) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08) !important;
  }

  .hero-search-type,
  .hero-search-divider,
  .search-command-hint,
  .hero-search .btn {
    display: none !important;
  }

  .hero-search input {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .mobile-dashboard-chips {
    width: 100%;
    display: flex;
    gap: 0.5rem;
    margin-top: 0.7rem;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scroll-snap-type: x proximity;
  }

  .mobile-dashboard-chips::-webkit-scrollbar {
    display: none;
  }

  .mobile-dashboard-chips a {
    min-height: 38px;
    min-width: max-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.9rem;
    border: 1px solid rgba(203, 213, 225, 0.95);
    border-radius: 999px;
    background: #ffffff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 900;
    text-decoration: none;
    scroll-snap-align: start;
  }

  .mobile-dashboard-chips a:first-child {
    border-color: rgba(37, 99, 235, 0.28);
    background: #eaf1ff;
    color: #2563eb;
  }

  .hero-preview-strip {
    margin-top: 0.75rem !important;
  }

  .hero-cta {
    display: none !important;
  }

  .section {
    padding-top: 1.6rem !important;
    padding-bottom: 1.65rem !important;
  }

  .trending-header {
    align-items: flex-start !important;
    gap: 0.85rem !important;
  }

  .section-subtitle {
    font-size: 0.94rem !important;
  }

  .browse-toolbar {
    gap: 0.65rem !important;
  }

  .mobile-app-tabbar {
    position: fixed;
    z-index: 1200;
    left: 0.65rem;
    right: 0.65rem;
    bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
    height: var(--mobile-tabbar-height);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 0.25rem;
    padding: 0.48rem;
    border: 1px solid rgba(203, 213, 225, 0.92);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.18);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .mobile-tab {
    min-width: 0;
    min-height: 56px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.24rem;
    border: 0;
    border-radius: 16px;
    background: transparent;
    color: #64748b;
    text-decoration: none;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
  }

  .mobile-tab i {
    font-size: 1.35rem;
    line-height: 1;
  }

  .mobile-tab span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tab.active,
  .mobile-tab:focus-visible {
    background: #eaf1ff;
    color: #2563eb;
  }

  .mobile-tab:active {
    transform: scale(0.96);
  }

  .cookie-notice {
    bottom: calc(var(--mobile-tabbar-height) + 1rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 380px) {
  .mobile-app-tabbar {
    left: 0.45rem;
    right: 0.45rem;
    gap: 0.1rem;
    padding-inline: 0.34rem;
  }

  .mobile-tab {
    font-size: 0.62rem;
  }

  .mobile-tab i {
    font-size: 1.22rem;
  }
}

@media (max-width: 760px) {
  .login-modal {
    align-items: flex-end !important;
    justify-content: stretch !important;
    padding: 0 !important;
  }

  .login-dialog {
    width: 100% !important;
    max-width: none !important;
    max-height: calc(100dvh - 0.75rem) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    border-radius: 20px 20px 0 0 !important;
    overflow: auto !important;
  }

  .login-visual {
    display: none !important;
  }

  .login-panel {
    min-width: 0 !important;
    padding: 1.25rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .login-panel-inner {
    width: 100% !important;
    max-width: none !important;
    align-items: stretch !important;
  }

  .login-close {
    top: 0.75rem !important;
    right: 0.75rem !important;
    width: 44px !important;
    height: 44px !important;
  }

  .login-dialog h2 {
    max-width: calc(100% - 52px);
    font-size: 1.45rem !important;
    line-height: 1.12 !important;
    text-align: left !important;
  }

  .login-copy,
  .login-signup,
  .login-error {
    text-align: left !important;
  }

  .google-signin-btn,
  .login-submit-btn {
    min-height: 50px !important;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.68rem !important;
  }

  .category-card,
  .category-card-featured {
    min-height: 0 !important;
    padding: 0.68rem !important;
    border-radius: 11px !important;
  }

  .category-card-head {
    gap: 0.38rem !important;
    margin-bottom: 0.5rem !important;
  }

  .category-kicker {
    font-size: 0.66rem !important;
    line-height: 1.1 !important;
  }

  .category-card-featured .category-preview,
  .category-preview {
    height: 82px !important;
    min-height: 0 !important;
    margin-bottom: 0.52rem !important;
    border-radius: 9px !important;
  }

  .category-preview-stack {
    height: 100% !important;
    grid-template-columns: 1fr !important;
  }

  .category-preview-item-large,
  .category-card-featured .category-preview-item-large {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }

  .category-preview-item-small {
    display: none !important;
  }

  .category-card h3 {
    font-size: 0.92rem !important;
    line-height: 1.14 !important;
    margin-bottom: 0.28rem !important;
  }

  .category-card p {
    min-height: 0 !important;
    font-size: 0.74rem !important;
    line-height: 1.25 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .category-cta {
    min-height: 34px !important;
    width: fit-content !important;
    padding: 0 0.62rem !important;
    font-size: 0.75rem !important;
  }

  body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing),
  .browse-content .assets-grid:not(.audio-listing),
  .assets-grid:not(.audio-listing),
  #trendingGrid.assets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.68rem !important;
  }

  .assets-grid:not(.audio-listing) .asset-card {
    min-height: 0 !important;
    border-radius: 10px !important;
  }

  .assets-grid:not(.audio-listing) .asset-card-link {
    padding: 0.58rem !important;
    gap: 0.48rem !important;
  }

  .assets-grid:not(.audio-listing) .asset-card .asset-thumb {
    aspect-ratio: 16 / 10 !important;
    border-radius: 9px !important;
  }

  .assets-grid:not(.audio-listing) .asset-card-actions,
  body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-card-actions {
    top: 0.42rem !important;
    right: 0.42rem !important;
    gap: 0.26rem !important;
  }

  .assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn,
  body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 !important;
  }

  .assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn[data-like-asset],
  body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn[data-like-asset] {
    min-width: 48px !important;
    padding-inline: 0.38rem !important;
  }

  .assets-grid:not(.audio-listing) .asset-card h3,
  .assets-grid:not(.audio-listing) .asset-title {
    font-size: 0.9rem !important;
    line-height: 1.18 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .asset-meta-line,
  .asset-card p {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
  }

  .tag-pill {
    font-size: 0.67rem !important;
    padding: 0.16rem 0.42rem !important;
  }

  .asset-card .tags-wrap .tag-pill:nth-child(n+3) {
    display: none !important;
  }

  .asset-card-footer {
    padding-top: 0.42rem !important;
    gap: 0.42rem !important;
  }

  .asset-view-link {
    font-size: 0.78rem !important;
  }

  .audio-listing .asset-card {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    padding: 0.64rem 0.52rem !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 420px) {
  .category-card-featured .category-preview,
  .category-preview {
    height: 74px !important;
  }

  .category-card,
  .category-card-featured {
    padding: 0.58rem !important;
  }

  .category-card h3 {
    font-size: 0.86rem !important;
  }

  .category-card p {
    font-size: 0.7rem !important;
  }

  .assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn,
  body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn {
    width: 36px !important;
    min-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
  }

  .assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn[data-like-asset],
  body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn[data-like-asset] {
    min-width: 46px !important;
  }
}

@media (max-width: 760px) {
  .categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.48rem !important;
  }

  .category-card,
  .category-card-featured {
    display: grid !important;
    grid-template-rows: auto auto;
    align-content: start;
    gap: 0.42rem !important;
    min-height: 132px !important;
    padding: 0.48rem !important;
  }

  .category-card-head {
    margin-bottom: 0 !important;
  }

  .category-kicker {
    display: none !important;
  }

  .category-card-featured .category-preview,
  .category-preview {
    height: 58px !important;
    margin: 0 !important;
    border-radius: 8px !important;
  }

  .category-card h3 {
    min-height: 2.05em;
    margin: 0 !important;
    font-size: 0.72rem !important;
    line-height: 1.12 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .category-card p,
  .category-cta {
    display: none !important;
  }
}

@media (min-width: 421px) and (max-width: 760px) {
  .category-card-featured .category-preview,
  .category-preview {
    height: 68px !important;
  }

  .category-card h3 {
    font-size: 0.78rem !important;
  }
}

@media (max-width: 760px) {
  .cookie-notice {
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: calc(var(--mobile-tabbar-height, 72px) + 0.7rem + env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 0.48rem !important;
    padding: 0.58rem 0.66rem !important;
    border-radius: 16px !important;
  }

  .cookie-notice strong {
    font-size: 0.78rem !important;
    line-height: 1.15 !important;
  }

  .cookie-notice p {
    display: none !important;
  }

  .cookie-notice-actions {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.45rem !important;
  }

  .cookie-notice-actions a {
    font-size: 0.72rem !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .cookie-notice .btn {
    min-height: 38px !important;
    padding: 0 0.72rem !important;
    border-radius: 12px !important;
    font-size: 0.78rem !important;
  }
}

/* Public mobile browsers stay website-first. PWA installs use the same web layout. */
@media (max-width: 760px) {
  html:not(.is-native-app) body {
    padding-bottom: 0 !important;
  }

  html:not(.is-native-app) main {
    padding-bottom: 1.25rem !important;
  }

  html:not(.is-native-app) .mobile-app-tabbar,
  html:not(.is-native-app) .mobile-top-account,
  html:not(.is-native-app) .mobile-dashboard-chips {
    display: none !important;
  }

  html:not(.is-native-app) .navbar {
    top: 0.7rem !important;
    left: auto !important;
    right: auto !important;
    width: min(1240px, calc(100% - 1rem)) !important;
    height: 64px !important;
    min-height: 64px !important;
    margin: 0 auto !important;
    padding-top: 0 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.94) !important;
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08) !important;
  }

  html:not(.is-native-app) .navbar .container {
    height: 100% !important;
    max-width: 100% !important;
    justify-content: space-between !important;
    padding-inline: 0.55rem !important;
  }

  html:not(.is-native-app) .navbar .nav-logo {
    max-width: calc(100% - 58px) !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 999px !important;
    background: #f8fafc !important;
  }

  html:not(.is-native-app) .navbar .nav-logo img {
    width: min(144px, 42vw) !important;
    max-height: 42px !important;
  }

  html:not(.is-native-app) .nav-hamburger,
  html:not(.is-native-app) .nav-hamburger.open {
    display: inline-flex !important;
  }

  html:not(.is-native-app) .navbar .nav-links {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 0.55rem) !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    width: auto !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.2rem !important;
    padding: 0.55rem !important;
    border: 1px solid rgba(203, 213, 225, 0.92) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16) !important;
  }

  html:not(.is-native-app) .navbar .nav-links.open {
    display: flex !important;
  }

  html:not(.is-native-app) .navbar .nav-links a {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    padding: 0 0.8rem !important;
    border-radius: 10px !important;
    color: #0f172a !important;
  }

  html:not(.is-native-app) .navbar .nav-links a.active {
    background: #ecfdf5 !important;
    color: #16a34a !important;
  }

  html:not(.is-native-app) .hero {
    padding-top: clamp(5rem, 15vw, 7rem) !important;
    padding-bottom: 2rem !important;
    background:
      radial-gradient(circle at 18% 20%, rgba(34, 211, 238, 0.16), transparent 34%),
      radial-gradient(circle at 82% 12%, rgba(132, 204, 22, 0.16), transparent 32%),
      linear-gradient(180deg, #f8fafc 0%, #ffffff 78%) !important;
  }

  html:not(.is-native-app) .hero-badge {
    display: inline-flex !important;
  }

  html:not(.is-native-app) .hero h1 {
    display: block !important;
    font-size: clamp(2.15rem, 10.5vw, 3.2rem) !important;
    line-height: 1.02 !important;
    margin-bottom: 1rem !important;
  }

  html:not(.is-native-app) .hero-content > p {
    display: block !important;
    margin-bottom: 1.25rem !important;
    font-size: 0.96rem !important;
    line-height: 1.5 !important;
  }

  html:not(.is-native-app) .hero-search {
    width: 100% !important;
    min-height: 54px !important;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr) !important;
    gap: 0.55rem !important;
    margin-bottom: 1rem !important;
    padding: 0 0.85rem !important;
    border-radius: 14px !important;
  }

  html:not(.is-native-app) .hero-search-type,
  html:not(.is-native-app) .hero-search-divider,
  html:not(.is-native-app) .search-command-hint,
  html:not(.is-native-app) .hero-search .btn {
    display: none !important;
  }

  html:not(.is-native-app) .hero-chip-row {
    display: flex !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding-bottom: 0.2rem !important;
  }

  html:not(.is-native-app) .hero-cta {
    display: flex !important;
  }

  html:not(.is-native-app) .trust-strip {
    display: block !important;
  }

  html:not(.is-native-app) .cookie-notice {
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Mobile audio rows: prevent waveform/action overlap and keep sound previews readable. */
@media (max-width: 760px) {
  .assets-grid.audio-listing,
  .browse-content .assets-grid.audio-listing {
    gap: 0.58rem !important;
  }

  .audio-listing .asset-card {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    column-gap: 0.62rem !important;
    row-gap: 0.4rem !important;
    min-height: 0 !important;
    padding: 0.72rem !important;
    border-radius: 12px !important;
    overflow: visible !important;
  }

  .audio-listing .asset-card > .asset-audio-row-btn {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    transform: none !important;
  }

  .audio-listing .asset-card > .asset-audio-row-btn:hover,
  .audio-listing .asset-card > .asset-audio-row-btn.playing {
    transform: scale(1.03) !important;
  }

  .audio-listing .asset-card-link {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
  }

  .audio-listing .asset-info,
  .audio-listing .asset-info-top {
    max-width: none !important;
    min-width: 0 !important;
  }

  .audio-listing .asset-type-label {
    margin-bottom: 0.1rem !important;
    font-size: 0.66rem !important;
  }

  .audio-listing .asset-title {
    max-width: 100% !important;
    font-size: 0.86rem !important;
    line-height: 1.16 !important;
    white-space: normal !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
  }

  .audio-listing .asset-category,
  .audio-listing .asset-meta {
    max-width: 100% !important;
    margin-top: 0.18rem !important;
    font-size: 0.72rem !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .audio-listing .asset-category {
    display: none !important;
  }

  .audio-listing .asset-card-actions {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: start !important;
    display: flex !important;
    gap: 0.22rem !important;
    transform: none !important;
  }

  .audio-listing .asset-card-actions .asset-action-btn,
  body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn,
  body:has(.browse-shell) .browse-content .audio-listing .asset-card .asset-card-actions .asset-action-btn {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
  }

  .audio-listing .asset-card-actions .asset-action-btn[data-like-asset],
  body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn[data-like-asset],
  body:has(.browse-shell) .browse-content .audio-listing .asset-card .asset-card-actions .asset-action-btn[data-like-asset] {
    min-width: 44px !important;
    max-width: 44px !important;
    padding-inline: 0.34rem !important;
  }

  .audio-listing .asset-card-footer {
    display: none !important;
  }

  .audio-listing .audio-seek-rail {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    grid-column: 2 / 4 !important;
    grid-row: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 28px !important;
    transform: none !important;
  }

  .audio-listing .audio-waveform,
  .audio-listing .audio-waveform-base {
    height: 26px !important;
    gap: 2px !important;
  }
}

/* Web repo safety: legacy app-shell elements must never show on the public website. */
#mobileAppShell,
#mobileTopAccountAction,
#mobileDashboardChips,
.mobile-app-tabbar,
.mobile-top-account,
.mobile-dashboard-chips {
  display: none !important;
}

/* Category page mobile polish: keep category filters near the top as a compact rail. */
@media (max-width: 900px) {
  .browse-shell {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.9rem !important;
  }

  .browse-sidebar {
    order: 0 !important;
    position: relative !important;
    top: auto !important;
    width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0.72rem !important;
    overflow: hidden !important;
    border: 1px solid rgba(203, 213, 225, 0.95) !important;
    border-radius: 16px !important;
    background:
      radial-gradient(circle at 8% 0%, rgba(34, 211, 238, 0.14), transparent 34%),
      radial-gradient(circle at 92% 0%, rgba(91, 220, 53, 0.14), transparent 34%),
      #ffffff !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08) !important;
  }

  .browse-content {
    order: 1 !important;
    width: 100% !important;
  }

  .browse-sidebar .sidebar-section {
    display: grid !important;
    gap: 0.55rem !important;
  }

  .browse-sidebar .sidebar-section h2 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 0 !important;
    color: #0f172a !important;
    font-size: 0.86rem !important;
    font-weight: 950 !important;
    letter-spacing: 0 !important;
  }

  .browse-sidebar .sidebar-section h2::after {
    content: "Swipe";
    padding: 0.18rem 0.5rem;
    border: 1px solid rgba(203, 213, 225, 0.9);
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.86);
    color: #64748b;
    font-size: 0.64rem;
    font-weight: 900;
  }

  .filter-toggle {
    display: none !important;
  }

  .sidebar-section-compact .filter-bar,
  .browse-sidebar .filter-bar,
  #filterBar {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 0.44rem !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0.05rem 0.05rem 0.3rem !important;
    scroll-snap-type: x proximity !important;
  }

  .browse-sidebar .filter-bar::-webkit-scrollbar,
  #filterBar::-webkit-scrollbar {
    display: none !important;
  }

  .sidebar-section-compact .filter-btn,
  body:has(.browse-shell) .filter-btn,
  #filterBar .filter-btn {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    min-height: 42px !important;
    grid-template-columns: auto auto !important;
    gap: 0.42rem !important;
    flex: 0 0 auto !important;
    padding: 0.42rem 0.68rem !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    color: #334155 !important;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.055) !important;
    scroll-snap-align: start !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  body:has(.browse-shell) .filter-btn.active,
  #filterBar .filter-btn.active {
    border-color: #dbe3ef !important;
    background:
      linear-gradient(90deg, rgba(255, 255, 255, 0.92), #ffffff) !important;
    color: #0f172a !important;
    box-shadow: 0 10px 22px rgba(34, 211, 238, 0.14) !important;
  }

  .filter-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 9px !important;
  }

  .filter-label,
  body:has(.browse-shell) .filter-label {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    font-size: 0.78rem !important;
  }

  .filter-count {
    display: none !important;
  }
}

@media (max-width: 560px) {
  #assetFilters,
  .browse-sidebar {
    max-height: none !important;
  }

  .browse-sidebar {
    padding: 0.64rem !important;
    border-radius: 14px !important;
  }
}

/* ============================================================
   EDITVAULT — PROFESSIONAL POLISH v2.0
   Smooth animations, shimmer loading, micro-interactions
   ============================================================ */

/* --- Shimmer loading skeleton for lazy images --- */
@keyframes ev-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.lazy-media:not(.lazy-media-loaded),
.category-preview-item:not(:has(img.lazy-media-loaded)):not(.category-preview-empty) {
  background: linear-gradient(
    90deg,
    #f0f4f8 25%,
    #e2eaf2 50%,
    #f0f4f8 75%
  );
  background-size: 600px 100%;
  animation: ev-shimmer 1.5s infinite linear;
}

/* --- Staggered category card entrance --- */
.categories-grid .category-card:nth-child(1)  { --ev-stagger: 0ms; }
.categories-grid .category-card:nth-child(2)  { --ev-stagger: 60ms; }
.categories-grid .category-card:nth-child(3)  { --ev-stagger: 120ms; }
.categories-grid .category-card:nth-child(4)  { --ev-stagger: 180ms; }
.categories-grid .category-card:nth-child(5)  { --ev-stagger: 240ms; }
.categories-grid .category-card:nth-child(6)  { --ev-stagger: 300ms; }
.categories-grid .category-card:nth-child(7)  { --ev-stagger: 360ms; }
.categories-grid .category-card:nth-child(8)  { --ev-stagger: 420ms; }
.categories-grid .category-card:nth-child(9)  { --ev-stagger: 480ms; }
.categories-grid .category-card:nth-child(10) { --ev-stagger: 540ms; }

.js-enabled .categories-grid .category-card.fade-in {
  transition-delay: var(--ev-stagger, 0ms);
}

/* --- Enhanced category preview: object-position for portrait thumbnails --- */
.category-preview-item img,
.category-cover-art img {
  object-position: center center;
  border-radius: 6px;
  transition: transform 320ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              filter 320ms ease,
              opacity 200ms ease;
}

.category-card:hover .category-preview-item img,
.category-card:hover .category-cover-art img {
  transform: scale(1.06);
  filter: saturate(1.12) contrast(1.04) brightness(1.02);
}

/* --- Category preview container: make new large PNGs fill cleanly --- */
.category-cover-art {
  display: grid;
  place-items: stretch;
  overflow: hidden;
  border-radius: 8px;
}

.category-cover-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Smooth hover lift for asset cards --- */
.asset-card {
  transition:
    transform 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 220ms ease;
}

.asset-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14) !important;
}

/* --- Hero section: smooth entrance for hero elements --- */
@keyframes ev-hero-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.hero-badge {
  animation: ev-hero-float 4s ease-in-out infinite;
}

/* --- Hero preview strip: smooth slide-in --- */
@keyframes ev-slide-in-right {
  from { opacity: 0; transform: translateX(32px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-preview-strip .asset-card {
  animation: ev-slide-in-right 0.5s ease both;
}

.hero-preview-strip .asset-card:nth-child(2) { animation-delay: 0.08s; }
.hero-preview-strip .asset-card:nth-child(3) { animation-delay: 0.16s; }
.hero-preview-strip .asset-card:nth-child(4) { animation-delay: 0.24s; }
.hero-preview-strip .asset-card:nth-child(5) { animation-delay: 0.32s; }

/* --- Pulse dot animation for hero badge --- */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}

/* --- Category kicker icon spin on hover --- */
.category-card:hover .category-kicker i {
  animation: ev-icon-spin 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes ev-icon-spin {
  from { transform: rotate(-20deg) scale(0.8); }
  to   { transform: rotate(0deg) scale(1); }
}

/* --- Trending section: rank badge pop --- */
@keyframes likePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}

@keyframes savePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.28); }
  100% { transform: scale(1); }
}

/* --- Smooth button press effect --- */
.btn:active {
  transform: translateY(1px) scale(0.98);
}

/* --- Filter button micro-animation --- */
body:has(.browse-shell) .filter-btn {
  transition: border-color 180ms ease, background 180ms ease,
              transform 180ms ease, box-shadow 180ms ease;
}

body:has(.browse-shell) .filter-btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* --- Section reveal: enhanced fade-in for why-grid cards --- */
.why-card {
  transition:
    opacity 0.55s ease,
    transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.25s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
}

/* --- Pricing cards: subtle float on hover --- */
.pricing-card {
  transition:
    transform 260ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
}

/* --- Trust strip items: hover lift --- */
.trust-item {
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

/* --- Navbar: subtle drop shadow on scroll --- */
.navbar.scrolled {
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
}

/* --- Search bar focus ring enhancement --- */
.hero-search:focus-within {
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.22), 0 20px 48px rgba(15,23,42,0.12);
}

/* --- Load more button animation --- */
#loadMoreAssets:active {
  transform: scale(0.96);
}

/* --- Category card: make cover thumbnails fill the entire preview area --- */
/* The preview container uses a 2-column grid (line ~6744) expecting large+small items.
   When only a single cover-art image is rendered, we must override to fullbleed. */
.category-preview:has(> :only-child) {
  display: block !important;
  grid-template-columns: none !important;
  padding: 0 !important;
}

.category-preview > :only-child {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  display: block !important;
}

.category-preview > :only-child img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  display: block !important;
}

/* Also handle the featured cards */
.category-card-featured .category-preview:has(> :only-child) {
  display: block !important;
  aspect-ratio: 2.2 / 1 !important;
}

.category-preview-item-large {
  grid-column: 1 / -1;
}

/* --- Filter sidebar: wheel/touch scrolling must stay immediate. --- */
.browse-sidebar {
  scroll-behavior: auto !important;
}

/* --- Animated gradient border on featured category cards --- */
@keyframes ev-border-glow {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.category-card-featured .category-card-glow {
  animation: ev-border-glow 3s ease-in-out infinite;
}

/* --- Image lazy-load fade in --- */
.lazy-media {
  opacity: 0;
  transition: opacity 300ms ease;
}

.lazy-media.lazy-media-loaded {
  opacity: 1;
}

/* --- No-results state: gentle bounce --- */
@keyframes ev-bounce-in {
  0%   { transform: translateY(20px); opacity: 0; }
  60%  { transform: translateY(-6px); }
  100% { transform: translateY(0); opacity: 1; }
}


.no-results[style*="block"] {
  animation: ev-bounce-in 0.5s ease both;
}

/* ============================================================
   END PROFESSIONAL POLISH v2.0
   ============================================================ */

/* ============================================================
   HERO FONT FIX - Force Space Grotesk for bold headings
   'EditVault Display' is not a real loadable font;
   Space Grotesk is loaded via Google Fonts and renders
   bold and impactful at weight 700.
   ============================================================ */

.hero-heading-main,
.hero-heading-sub,
.hero h1,
.hero h1 span {
  font-family: 'Space Grotesk', 'DM Sans', 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hero-heading-accent {
  font-family: inherit !important;
  font-weight: inherit !important;
}

/* Section headings - use Poppins for bold look */
.section-title,
.cat-hero h1,
#catTitle {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 800 !important;
  -webkit-font-smoothing: antialiased;
}

/* Body - crisp Inter */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   FINAL HOME AND AUDIO REFINEMENTS
   ============================================================ */

@media (min-width: 961px) {
  .hero {
    padding-top: clamp(3rem, 5vw, 5.75rem) !important;
    padding-bottom: clamp(3.25rem, 5vw, 5.5rem) !important;
  }

  .hero-content {
    display: grid !important;
    grid-template-columns: minmax(0, 0.96fr) minmax(380px, 0.72fr) !important;
    align-items: center !important;
    column-gap: clamp(2rem, 4vw, 4.75rem) !important;
    row-gap: 1.1rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    text-align: left !important;
  }

  .hero-badge,
  .hero h1,
  .hero p,
  .hero-search,
  .hero-chip-row {
    grid-column: 1 !important;
    justify-self: start !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    text-align: left !important;
  }

  .hero h1 {
    max-width: 730px !important;
  }

  .hero p {
    max-width: 650px !important;
  }

  .hero-search {
    width: min(100%, 760px) !important;
  }

  .hero-chip-row {
    justify-content: flex-start !important;
  }

  .hero-preview-strip {
    grid-column: 2 !important;
    grid-row: 1 / span 5 !important;
    align-self: center !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: minmax(132px, 1fr) !important;
    gap: 0.82rem !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0.75rem !important;
    border: 1px solid rgba(203, 213, 225, 0.8) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, 0.76) !important;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.12) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .hero-preview-card {
    min-height: 138px !important;
    border-radius: 14px !important;
  }

  .hero-preview-card:first-child {
    grid-column: 1 / -1 !important;
    min-height: 210px !important;
  }
}

@media (max-width: 960px) {
  .hero-preview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.72rem !important;
  }

  .hero-preview-card {
    min-height: 142px !important;
  }
}

.featured-mosaic {
  gap: 0.85rem !important;
}

.featured-tile {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: linear-gradient(135deg, #102033, #17495a) !important;
  box-shadow: 0 16px 38px rgba(2, 8, 23, 0.18) !important;
}

.featured-tile img {
  filter: saturate(1.05) contrast(1.02) !important;
}

.featured-tile-empty {
  display: grid !important;
  place-items: center !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

.featured-tile-empty span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.38rem !important;
  padding: 0.45rem 0.7rem !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  font-weight: 850 !important;
}

.assets-grid.audio-listing,
.browse-content .assets-grid.audio-listing {
  margin-top: 0 !important;
  gap: 0.62rem !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
}

.audio-listing .asset-card {
  display: grid !important;
  grid-template-columns: 58px minmax(235px, 1fr) minmax(260px, min(36vw, 520px)) minmax(156px, auto) !important;
  align-items: center !important;
  column-gap: 1rem !important;
  min-height: 98px !important;
  padding: 0.86rem 1rem !important;
  border: 1px solid rgba(203, 213, 225, 0.86) !important;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06) !important;
  overflow: visible !important;
}

.audio-listing .asset-card:last-child {
  border-bottom: 1px solid rgba(203, 213, 225, 0.86) !important;
}

.audio-listing .asset-card:hover,
.audio-listing .asset-card.audio-active {
  border-color: #dbe3ef !important;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), #ffffff 42%) !important;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.09) !important;
}

.audio-listing .asset-card > .asset-audio-row-btn {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  align-self: center !important;
  width: 54px !important;
  min-width: 54px !important;
  height: 54px !important;
  min-height: 54px !important;
  transform: none !important;
}

.audio-listing .asset-card > .asset-audio-row-btn:hover,
.audio-listing .asset-card > .asset-audio-row-btn.playing {
  transform: scale(1.04) !important;
}

.audio-listing .asset-card-link {
  display: block !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.audio-listing .asset-thumb {
  display: none !important;
}

.audio-listing .asset-info,
.audio-listing .asset-info-top {
  display: block !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.audio-listing .asset-title {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 1.02rem !important;
  line-height: 1.22 !important;
}

.audio-listing .asset-type-label {
  margin-bottom: 0.16rem !important;
  font-size: 0.72rem !important;
}

.audio-listing .asset-category,
.audio-listing .asset-meta {
  display: flex !important;
  align-items: center !important;
  gap: 0.45rem !important;
  min-height: 0 !important;
  margin-top: 0.34rem !important;
  overflow: hidden !important;
  color: #52637a !important;
  font-size: 0.82rem !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.audio-listing .asset-category::before,
.audio-listing .asset-category::after {
  display: none !important;
  content: none !important;
}

.audio-listing .asset-tags,
.audio-listing .badge {
  display: none !important;
}

.audio-listing .asset-card-footer {
  position: static !important;
  right: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  min-width: 0 !important;
  margin-top: 0.44rem !important;
}

.audio-listing .asset-kind-chip {
  padding: 0.2rem 0.5rem !important;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  border-radius: 999px !important;
  background: #f8fafc !important;
  color: #334155 !important;
  font-size: 0.72rem !important;
}

.audio-listing .asset-view-link {
  display: none !important;
}

.audio-listing .audio-seek-rail {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  grid-column: 3 !important;
  grid-row: 1 !important;
  align-self: center !important;
  width: 100% !important;
  min-width: 240px !important;
  height: 42px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  transform: none !important;
}

.audio-listing .audio-waveform-shell,
.audio-listing .audio-waveform,
.audio-listing .audio-waveform-base {
  height: 40px !important;
}

.audio-listing .asset-card-actions {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  grid-column: 4 !important;
  grid-row: 1 !important;
  align-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 0.5rem !important;
  transform: none !important;
}

.audio-listing .asset-card-actions .asset-action-btn,
body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  border: 1px solid rgba(203, 213, 225, 0.82) !important;
  background: #ffffff !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08) !important;
}

.audio-listing .asset-card-actions .asset-action-btn[data-like-asset],
body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn[data-like-asset] {
  width: auto !important;
  min-width: 54px !important;
  padding-inline: 0.55rem !important;
}

@media (max-width: 1180px) {
  .audio-listing .asset-card {
    grid-template-columns: 56px minmax(210px, 1fr) minmax(220px, 0.85fr) auto !important;
  }
}

@media (max-width: 760px) {
  .assets-grid.audio-listing,
  .browse-content .assets-grid.audio-listing {
    gap: 0.62rem !important;
  }

  .audio-listing .asset-card {
    grid-template-columns: 44px minmax(0, 1fr) max-content !important;
    grid-template-rows: auto auto !important;
    column-gap: 0.58rem !important;
    row-gap: 0.34rem !important;
    min-height: 0 !important;
    padding: 0.72rem !important;
    border-radius: 13px !important;
  }

  .audio-listing .asset-card > .asset-audio-row-btn {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
  }

  .audio-listing .asset-card-link {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  .audio-listing .asset-title {
    display: -webkit-box !important;
    overflow: hidden !important;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal !important;
    font-size: 0.86rem !important;
    line-height: 1.16 !important;
  }

  .audio-listing .asset-category,
  .audio-listing .asset-meta {
    max-width: 100% !important;
    font-size: 0.72rem !important;
  }

  .audio-listing .asset-card-footer {
    display: none !important;
  }

  .audio-listing .audio-seek-rail {
    grid-column: 2 / -1 !important;
    grid-row: 2 !important;
    min-width: 0 !important;
    height: 28px !important;
  }

  .audio-listing .audio-waveform-shell,
  .audio-listing .audio-waveform,
  .audio-listing .audio-waveform-base {
    height: 26px !important;
  }

  .audio-listing .asset-card-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: start !important;
    gap: 0.22rem !important;
    min-width: max-content !important;
  }

  .audio-listing .asset-card-actions .asset-action-btn,
  body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  .audio-listing .asset-card-actions .asset-action-btn[data-like-asset],
  body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn[data-like-asset] {
    min-width: 44px !important;
    padding-inline: 0.34rem !important;
  }
}

/* Browse-page specificity correction for audio rows. */
body:has(.browse-shell) .browse-content .audio-listing .asset-card .asset-card-actions {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  grid-column: 4 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: end !important;
  transform: none !important;
}

@media (max-width: 760px) {
  body:has(.browse-shell) .browse-content .audio-listing .asset-card {
    grid-template-columns: 44px minmax(0, 1fr) max-content !important;
  }

body:has(.browse-shell) .browse-content .audio-listing .asset-card .asset-card-actions {
    grid-column: 3 !important;
    grid-row: 1 !important;
    align-self: start !important;
    min-width: max-content !important;
  }
}

/* Category browse correction: keep desktop filters anchored while the results scroll. */
@media (min-width: 960px) {
  body:has(.browse-shell) .browse-sidebar {
    position: sticky !important;
    top: calc(var(--navbar-height) + 1.25rem) !important;
    align-self: start !important;
    max-height: calc(100vh - var(--navbar-height) - 2.5rem) !important;
    overflow: auto !important;
    overscroll-behavior: contain;
  }

  body:has(.browse-shell) .browse-sidebar::-webkit-scrollbar {
    width: 8px;
  }

  body:has(.browse-shell) .browse-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.5);
  }
}

/* Premium audio rows: denser scan, clearer controls, no layout jumps. */
.assets-grid.audio-listing,
.browse-content .assets-grid.audio-listing {
  gap: 0.8rem !important;
}

.audio-listing .asset-card {
  grid-template-columns: 64px minmax(230px, 0.95fr) minmax(260px, 1.05fr) minmax(150px, auto) !important;
  min-height: 112px !important;
  padding: 1rem !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.08), rgba(249, 115, 22, 0.04) 44%, rgba(15, 23, 42, 0.02)),
    rgba(15, 23, 42, 0.96) !important;
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.2) !important;
}

.audio-listing .asset-card:hover,
.audio-listing .asset-card.audio-active {
  border-color: #dbe3ef !important;
  background:
    linear-gradient(90deg, #111827, rgba(15, 23, 42, 0.98) 54%),
    #111827 !important;
  box-shadow: 0 22px 52px rgba(2, 6, 23, 0.28) !important;
}

.audio-listing .asset-card > .asset-audio-row-btn {
  width: 58px !important;
  min-width: 58px !important;
  height: 58px !important;
  min-height: 58px !important;
  border: 1px solid rgba(255, 255, 255, 0.92) !important;
  background:
    radial-gradient(circle at 50% 45%, rgba(255,255,255,0.24), transparent 36%),
    linear-gradient(135deg, var(--cat-accent, #f59e0b), #ef4444) !important;
  color: #ffffff !important;
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.14) !important;
}

.audio-listing .asset-card > .asset-audio-row-btn span {
  display: none !important;
}

.audio-listing .asset-type-label {
  color: #cbd5e1 !important;
  letter-spacing: 0.04em !important;
}

.audio-listing .asset-info,
.audio-listing .asset-info-top,
html.theme-dark .audio-listing .asset-info,
html.theme-dark .audio-listing .asset-info-top,
html[data-theme="dark"] .audio-listing .asset-info,
html[data-theme="dark"] .audio-listing .asset-info-top {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.audio-listing .asset-title {
  color: #f8fafc !important;
  font-size: 1.06rem !important;
}

.audio-listing .asset-category,
.audio-listing .asset-meta {
  color: #94a3b8 !important;
}

.audio-listing .asset-kind-chip {
  border-color: rgba(255, 255, 255, 0.92) !important;
  background: #111827 !important;
  color: #f8fafc !important;
}

.audio-listing .audio-time {
  color: #cbd5e1 !important;
  font-weight: 800 !important;
}

.audio-listing .audio-seek-rail {
  height: 48px !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02)) !important;
}

.audio-listing .audio-waveform-shell,
.audio-listing .audio-waveform,
.audio-listing .audio-waveform-base {
  height: 48px !important;
}

.audio-listing .asset-card-actions .asset-action-btn,
body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn {
  border-color: rgba(148, 163, 184, 0.3) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  color: #e2e8f0 !important;
  box-shadow: none !important;
}

.audio-listing .asset-card-actions .asset-action-btn:hover,
body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn:hover {
  border-color: #dbe3ef !important;
  color: #ffffff !important;
}

@media (max-width: 760px) {
  .audio-listing .asset-card {
    grid-template-columns: 48px minmax(0, 1fr) max-content !important;
    padding: 0.8rem !important;
    min-height: 0 !important;
  }

  .audio-listing .asset-card > .asset-audio-row-btn {
    width: 46px !important;
    min-width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
  }

  .audio-listing .audio-seek-rail,
  .audio-listing .audio-waveform-shell,
  .audio-listing .audio-waveform,
  .audio-listing .audio-waveform-base {
    height: 30px !important;
  }
}

/* Bright-mode audio rows: keep audio premium without forcing dark cards. */
html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .asset-card {
  border-color: rgba(203, 213, 225, 0.9) !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), #ffffff 46%) !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07) !important;
}

html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .asset-card:hover,
html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .asset-card.audio-active {
  border-color: #dbe3ef !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), #ffffff 52%) !important;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.1) !important;
}

html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .asset-type-label {
  color: #64748b !important;
}

html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .asset-title {
  color: #111827 !important;
}

html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .asset-category,
html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .asset-meta {
  color: #64748b !important;
}

html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .asset-kind-chip {
  border-color: #dbe3ef !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #334155 !important;
}

html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .audio-time {
  color: #475569 !important;
}

html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .audio-seek-rail {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.055), rgba(15, 23, 42, 0.025)) !important;
}

html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .asset-card-actions .asset-action-btn,
html:not(.theme-dark):not([data-theme="dark"]) body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn {
  border-color: rgba(203, 213, 225, 0.95) !important;
  background: #ffffff !important;
  color: #1f2937 !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

html:not(.theme-dark):not([data-theme="dark"]) .audio-listing .asset-card-actions .asset-action-btn:hover,
html:not(.theme-dark):not([data-theme="dark"]) body:has(.browse-shell) .audio-listing .asset-card-actions .asset-action-btn:hover {
  border-color: #dbe3ef !important;
  color: #0f172a !important;
}

/* Restore centered home hero while keeping clean category preview cards. */
.hero .hero-badge {
  display: none !important;
}

@media (min-width: 761px) {
  .hero-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1.18rem !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  .hero h1,
  .hero p,
  .hero-search,
  .hero-chip-row,
  .hero-preview-strip {
    grid-column: auto !important;
    grid-row: auto !important;
    justify-self: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
  }

  .hero h1 {
    max-width: 900px !important;
  }

  .hero p {
    max-width: 760px !important;
  }

  .hero-search {
    width: min(100%, 780px) !important;
  }

  .hero-chip-row {
    justify-content: center !important;
  }

  .hero-preview-strip {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-rows: auto !important;
    gap: 0.8rem !important;
    width: min(100%, 980px) !important;
    margin-top: 0.55rem !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .hero-preview-card,
  .hero-preview-card:first-child {
    grid-column: auto !important;
    min-height: 156px !important;
    border-radius: 10px !important;
  }
}

@media (max-width: 760px) {
  .hero .hero-badge {
    display: none !important;
  }

  .hero-content {
    gap: 0.95rem !important;
  }

  .hero-preview-strip {
    margin-top: 0.35rem !important;
  }
}

/* Screenshot fixes: compact mobile cards, working nav, touch preview, and category flow. */
.hero .hero-badge,
.hero-badge,
html:not(.is-native-app) .hero .hero-badge,
html:not(.is-native-app) body .hero-badge {
  display: none !important;
  margin: 0 !important;
}

body:has(.browse-shell) .browse-content .assets-grid,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing),
.browse-content .assets-grid {
  margin-top: 0 !important;
}

body:has(.browse-shell) .browse-shell {
  isolation: isolate;
}

body:has(.browse-shell) .browse-sidebar,
body:has(.browse-shell) .browse-content,
.listing-head,
.browse-toolbar,
.browse-filter-row,
.assets-grid {
  position: relative;
}

body:has(.browse-shell) .browse-sidebar {
  z-index: 2;
}

body:has(.browse-shell) .browse-content {
  z-index: 1;
}

.listing-head,
.browse-toolbar,
.browse-filter-row {
  z-index: 3;
}

.assets-grid {
  z-index: 0;
}

.assets-grid:not(.audio-listing) .asset-card-actions,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-card-actions {
  top: 0.5rem !important;
  right: 0.5rem !important;
  gap: 0.28rem !important;
  z-index: 8 !important;
}

.assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn {
  position: relative !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: 1px solid rgba(226, 232, 240, 0.92) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12) !important;
  transform: none !important;
}

.assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn::after,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
}

.assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn[data-like-asset],
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn[data-like-asset] {
  width: auto !important;
  min-width: 42px !important;
  padding-inline: 0.34rem !important;
}

.asset-card-actions .action-icon,
.asset-card-actions .action-icon svg,
.asset-card-actions .ui-icon-svg {
  width: 16px !important;
  height: 16px !important;
}

.asset-action-count {
  font-size: 0.66rem !important;
}

.asset-card-footer {
  min-width: 0;
}

.asset-kind-chip {
  flex: 0 0 auto;
}

.asset-view-link {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.asset-card.touch-previewing .asset-thumb {
  outline: 2px solid rgba(255, 255, 255, 0.92);
  outline-offset: -2px;
}

@media (max-width: 959px) {
  body:has(.browse-shell) .browse-shell {
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  body:has(.browse-shell) .browse-sidebar,
  body:has(.browse-shell) .browse-content {
    order: initial !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body:has(.browse-shell) .browse-sidebar {
    position: relative !important;
    top: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body:has(.browse-shell) .browse-shell.browse-filters-hidden .browse-sidebar {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .navbar .container {
    justify-content: space-between !important;
  }

  .navbar .nav-hamburger,
  .navbar .nav-hamburger.open {
    display: inline-flex !important;
  }

  .navbar .nav-links {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 0.55rem) !important;
    left: 0.75rem !important;
    right: 0.75rem !important;
    width: auto !important;
    z-index: 2400 !important;
    pointer-events: auto !important;
  }

  .navbar .nav-links.open {
    display: flex !important;
    flex-direction: column !important;
  }

  .navbar .nav-links a,
  html:not(.is-native-app) .navbar .nav-links a,
  .nav-hamburger {
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  .navbar .nav-links .nav-account,
  html:not(.is-native-app) .navbar .nav-links .nav-account {
    display: block !important;
    width: 100% !important;
  }

  .navbar .nav-links .nav-account a,
  html:not(.is-native-app) .navbar .nav-links .nav-account a {
    width: 100% !important;
    max-width: none !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.65rem !important;
    padding: 0 0.8rem !important;
    border: 1px solid rgba(203, 213, 225, 0.82) !important;
    border-radius: 10px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-weight: 900 !important;
  }

  .navbar .nav-links .nav-account a::after {
    display: none !important;
  }

  .navbar .nav-links .nav-account i {
    display: inline-flex !important;
    color: #2563eb !important;
    font-size: 1.28rem !important;
  }

  .navbar .nav-links .nav-account [data-login-label] {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
  }

  .hero {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
  }

  .hero-content {
    gap: 0.65rem !important;
    padding-top: 0 !important;
    padding-bottom: 0.75rem !important;
  }

  .assets-grid:not(.audio-listing) .asset-card-actions,
  body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-card-actions {
    top: 0.34rem !important;
    right: 0.34rem !important;
    gap: 0.22rem !important;
  }

  .assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn,
  body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
  }

  .assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn[data-like-asset],
  body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn[data-like-asset] {
    min-width: 39px !important;
    padding-inline: 0.28rem !important;
  }

  .asset-card-actions .action-icon,
  .asset-card-actions .action-icon svg,
  .asset-card-actions .ui-icon-svg {
    width: 15px !important;
    height: 15px !important;
  }

  .asset-action-count {
    font-size: 0.62rem !important;
  }

  .asset-card-footer {
    gap: 0.34rem !important;
  }

  .asset-kind-chip {
    padding-inline: 0.42rem !important;
    font-size: 0.62rem !important;
  }

  .asset-view-link {
    font-size: 0.68rem !important;
  }

  body:has(.browse-shell) .cat-hero {
    margin-bottom: 0.85rem !important;
  }

  .listing-head,
  .browse-toolbar,
  .browse-filter-row {
    margin-bottom: 0.75rem !important;
  }

  body:has(.browse-shell) .browse-sidebar {
    padding: 0.64rem !important;
  }
}

@media (max-width: 1280px), (hover: none) and (pointer: coarse), (max-device-width: 900px) {
  .login-modal {
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 0.55rem !important;
  }

  .login-dialog {
    height: auto !important;
    min-height: 0 !important;
    width: min(100%, 560px) !important;
    max-width: calc(100vw - 1.1rem) !important;
    max-height: min(86dvh, 720px) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    border-radius: 22px 22px 0 0 !important;
    overflow: auto !important;
  }

  .login-visual {
    display: none !important;
  }

  .login-panel {
    min-width: 0 !important;
    display: block !important;
    padding: 1.35rem 1rem calc(1.35rem + env(safe-area-inset-bottom, 0px)) !important;
  }

  .login-panel-inner {
    width: 100% !important;
    max-width: none !important;
    align-items: stretch !important;
  }

  .login-close {
    top: 0.72rem !important;
    right: 0.72rem !important;
    width: 44px !important;
    height: 44px !important;
  }

  .login-dialog h2 {
    max-width: calc(100% - 54px) !important;
    font-size: clamp(1.45rem, 5vw, 1.85rem) !important;
    line-height: 1.12 !important;
    text-align: left !important;
  }

  .login-copy,
  .login-signup,
  .login-error {
    text-align: left !important;
  }

  .login-copy {
    margin-bottom: 1.25rem !important;
  }

  .login-signup {
    margin-top: 1.15rem !important;
  }

  .google-signin-btn,
  .login-submit-btn {
    min-height: 50px !important;
  }
}

/* Responsive shell: hamburger through tablet, desktop nav from desktop-site widths. */
html,
body {
  max-width: 100%;
}

.navbar .container {
  position: relative;
}

.container,
.navbar,
.hero,
.hero-content,
.browse-shell,
.browse-content,
.assets-grid,
.categories-grid {
  min-width: 0;
}

@media (min-width: 960px) {
  html:not(.is-native-app) .navbar,
  .navbar {
    width: 100% !important;
    min-height: 76px !important;
    height: 76px !important;
    margin-inline: 0 !important;
    border-radius: 0 !important;
    overflow: visible !important;
  }

  html:not(.is-native-app) .navbar .container,
  .navbar .container {
    height: 100% !important;
    width: 100% !important;
    max-width: 1480px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(0.75rem, 1.8vw, 1.4rem) !important;
    margin-inline: auto !important;
    padding-inline: clamp(1rem, 3vw, 2.5rem) !important;
  }

  html:not(.is-native-app) .navbar .nav-logo,
  .navbar .nav-logo {
    flex: 0 0 auto !important;
    max-width: none !important;
    border: 0 !important;
    background: transparent !important;
  }

  html:not(.is-native-app) .navbar .nav-logo img,
  .navbar .nav-logo img {
    width: clamp(172px, 16vw, 220px) !important;
    max-width: 220px !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain !important;
  }

  html:not(.is-native-app) .navbar .nav-hamburger,
  .navbar .nav-hamburger {
    display: none !important;
  }

  html:not(.is-native-app) .navbar .nav-links,
  .navbar .nav-links {
    position: static !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    max-height: none !important;
    overflow: visible !important;
    gap: clamp(0.75rem, 1.5vw, 1.5rem) !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 959px) {
  html:not(.is-native-app) .navbar,
  .navbar {
    width: min(100% - 1rem, 1040px) !important;
    min-height: 64px !important;
    height: auto !important;
    margin-inline: auto !important;
    border-radius: 999px !important;
    overflow: visible !important;
  }

  html:not(.is-native-app) .navbar .container,
  .navbar .container {
    height: 64px !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.65rem !important;
    padding-inline: 0.55rem !important;
  }

  html:not(.is-native-app) .navbar .nav-logo,
  .navbar .nav-logo {
    max-width: calc(100% - 58px) !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }

  html:not(.is-native-app) .navbar .nav-logo img,
  .navbar .nav-logo img {
    width: clamp(132px, 24vw, 190px) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 44px !important;
    object-fit: contain !important;
  }

  html:not(.is-native-app) .navbar .nav-hamburger,
  html:not(.is-native-app) .navbar .nav-hamburger.open,
  .navbar .nav-hamburger,
  .navbar .nav-hamburger.open {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 5px !important;
    margin-left: auto !important;
    border: 1px solid rgba(203, 213, 225, 0.92) !important;
    border-radius: 999px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08) !important;
    touch-action: manipulation;
    z-index: 2;
  }

  html:not(.is-native-app) .navbar .nav-links,
  .navbar .nav-links {
    position: absolute !important;
    top: calc(100% + 0.55rem) !important;
    left: 0.5rem !important;
    right: 0.5rem !important;
    z-index: 2600 !important;
    width: auto !important;
    max-height: min(72dvh, 560px) !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.22rem !important;
    padding: 0.58rem !important;
    overflow: auto !important;
    border: 1px solid rgba(203, 213, 225, 0.94) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 22px 52px rgba(15, 23, 42, 0.18) !important;
  }

  html:not(.is-native-app) .navbar .nav-links.open,
  .navbar .nav-links.open {
    display: flex !important;
  }

  html:not(.is-native-app) .navbar .nav-links li,
  .navbar .nav-links li,
  html:not(.is-native-app) .navbar .nav-links a,
  .navbar .nav-links a {
    width: 100% !important;
    max-width: none !important;
  }

  html:not(.is-native-app) .navbar .nav-links a,
  .navbar .nav-links a {
    min-height: 46px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0.62rem !important;
    padding: 0 0.85rem !important;
    border-radius: 11px !important;
    color: #0f172a !important;
    font-size: 0.98rem !important;
    font-weight: 900 !important;
    text-align: left !important;
    white-space: normal !important;
    touch-action: manipulation;
  }

  html:not(.is-native-app) .navbar .nav-links a::after,
  .navbar .nav-links a::after {
    display: none !important;
  }

  html:not(.is-native-app) .navbar .nav-links a.active,
  .navbar .nav-links a.active {
    background: #ecfdf5 !important;
    color: #15803d !important;
  }

  html:not(.is-native-app) .navbar .nav-links .nav-cta,
  .navbar .nav-links .nav-cta {
    display: none !important;
  }

  html:not(.is-native-app) .navbar .nav-links .nav-account,
  .navbar .nav-links .nav-account {
    display: block !important;
  }

  html:not(.is-native-app) .navbar .nav-links .nav-account a,
  .navbar .nav-links .nav-account a {
    min-height: 48px !important;
    border: 1px solid rgba(203, 213, 225, 0.9) !important;
    background: #f8fafc !important;
  }

  html:not(.is-native-app) .hero-content,
  .hero-content {
    width: min(100%, 960px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: clamp(0.75rem, 2vw, 1.15rem) !important;
    margin-inline: auto !important;
    text-align: center !important;
  }

  html:not(.is-native-app) .hero h1,
  .hero h1 {
    max-width: 820px !important;
    font-size: clamp(2.15rem, 7vw, 4rem) !important;
    line-height: 1.05 !important;
    text-align: center !important;
  }

  html:not(.is-native-app) .hero p,
  .hero p {
    max-width: 760px !important;
    font-size: clamp(0.98rem, 2vw, 1.12rem) !important;
    line-height: 1.58 !important;
    text-align: center !important;
  }

  html:not(.is-native-app) .hero-search,
  .hero-search {
    width: min(100%, 760px) !important;
    max-width: 100% !important;
  }

  html:not(.is-native-app) .hero-chip-row,
  .hero-chip-row {
    justify-content: center !important;
  }

  html:not(.is-native-app) .hero-preview-strip,
  .hero-preview-strip {
    width: min(100%, 960px) !important;
    max-width: 100% !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)) !important;
    gap: 0.72rem !important;
    margin-inline: auto !important;
  }

  #trendingGrid.assets-grid,
  .assets-grid:not(.audio-listing),
  .browse-content .assets-grid:not(.audio-listing) {
    grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .container {
    padding-inline: 0.88rem !important;
  }

  .hero-search {
    min-height: 52px !important;
    padding-inline: 0.85rem !important;
  }

  .hero-search-type,
  .hero-search-divider,
  .hero-search .btn,
  .search-command-hint {
    display: none !important;
  }

  .hero-preview-strip {
    display: flex !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity;
  }

  .hero-preview-card {
    min-width: min(74vw, 280px) !important;
    scroll-snap-align: start;
  }

  .assets-grid:not(.audio-listing),
  #trendingGrid.assets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .cookie-notice {
    left: 0.75rem !important;
    right: 0.75rem !important;
    bottom: max(0.75rem, env(safe-area-inset-bottom, 0px)) !important;
    width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 380px) {
  .assets-grid:not(.audio-listing),
  #trendingGrid.assets-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* SEO landing copy: visible, useful category context for search-focused collection pages. */
.seo-landing-copy {
  width: min(100%, 1040px);
  margin: 0 auto clamp(1rem, 2vw, 1.5rem);
  color: #334155;
}

.seo-landing-inner {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid rgba(203, 213, 225, 0.86);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.seo-eyebrow {
  margin: 0;
  color: #16a34a;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.seo-landing-copy h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.seo-landing-copy p {
  max-width: 860px;
  margin: 0;
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.65;
}

.seo-keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.seo-keyword-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0.3rem 0.68rem;
  border: 1px solid rgba(187, 247, 208, 0.95);
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 800;
}

.seo-related-assets {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.35rem;
}

.seo-related-assets h3 {
  margin: 0;
  color: #0f172a;
  font-size: 0.92rem;
  line-height: 1.2;
}

.seo-related-assets ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.seo-related-assets a {
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.seo-related-assets a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .seo-landing-copy {
    margin-bottom: 0.85rem;
  }

  .seo-landing-inner {
    border-radius: 12px;
  }
}

/* Dark mode: final theme layer. */
.nav-theme {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.theme-toggle {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 999px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(37, 99, 235, 0.45);
  color: #2563eb;
}

.theme-toggle i {
  font-size: 1.22rem;
  line-height: 1;
}

.theme-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

html.theme-dark,
html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #f8fafc;
  --primary-light: #e2e8f0;
  --accent: #60a5fa;
  --accent-2: #58c934;
  --accent-warm: #fb923c;
  --bg: #080d18;
  --bg-primary: #080d18;
  --bg-soft: #101827;
  --bg-surface: #0f172a;
  --bg-card: #111827;
  --surface: #111827;
  --surface-muted: #172033;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-strong: #f8fafc;
  --text-body: #cbd5e1;
  --text-soft: #94a3b8;
  --border: #263244;
  --line-soft: #263244;
  --glass-bg: rgba(15, 23, 42, 0.9);
  --glass-border: rgba(148, 163, 184, 0.24);
  --brand-ink: #f8fafc;
  --brand-soft: #101827;
  --brand-line: #263244;
  --brand-wash: #111827;
  --brand-cream: #172033;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.32);
  --shadow-hover: 0 24px 56px rgba(0, 0, 0, 0.44);
}

html.theme-dark,
html.theme-dark body,
html[data-theme="dark"],
html[data-theme="dark"] body {
  background: #080d18 !important;
  color: var(--text-primary) !important;
}

html.theme-dark body,
html[data-theme="dark"] body {
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.08), transparent 26%),
    linear-gradient(120deg, transparent 56%, rgba(88, 201, 52, 0.06)),
    #080d18 !important;
}

html.theme-dark .top-offer,
html[data-theme="dark"] .top-offer {
  border-bottom-color: rgba(148, 163, 184, 0.2) !important;
  background: #050814 !important;
  color: #dbeafe !important;
}

html.theme-dark .navbar,
html[data-theme="dark"] .navbar {
  border-color: rgba(148, 163, 184, 0.2) !important;
  background: rgba(8, 13, 24, 0.9) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28) !important;
}

html.theme-dark .nav-logo,
html[data-theme="dark"] .nav-logo {
  color: #f8fafc !important;
}

html.theme-dark .nav-links a,
html.theme-dark .nav-logo span,
html[data-theme="dark"] .nav-links a,
html[data-theme="dark"] .nav-logo span {
  color: #e2e8f0 !important;
}

html.theme-dark .nav-links a:hover,
html.theme-dark .nav-links a.active,
html[data-theme="dark"] .nav-links a:hover,
html[data-theme="dark"] .nav-links a.active {
  color: #86efac !important;
}

html.theme-dark .theme-toggle,
html[data-theme="dark"] .theme-toggle {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background: #111827 !important;
  color: #facc15 !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28) !important;
}

html.theme-dark .theme-toggle:hover,
html.theme-dark .theme-toggle:focus-visible,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .theme-toggle:focus-visible {
  border-color: rgba(250, 204, 21, 0.52) !important;
  background: #172033 !important;
  color: #fde68a !important;
}

html.theme-dark .nav-account a,
html[data-theme="dark"] .nav-account a {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: #111827 !important;
  color: #bfdbfe !important;
}

html.theme-dark .nav-hamburger,
html.theme-dark .nav-hamburger.open,
html[data-theme="dark"] .nav-hamburger,
html[data-theme="dark"] .nav-hamburger.open {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: #111827 !important;
}

html.theme-dark .nav-hamburger span,
html[data-theme="dark"] .nav-hamburger span {
  background: #f8fafc !important;
}

html.theme-dark main,
html.theme-dark section,
html[data-theme="dark"] main,
html[data-theme="dark"] section {
  color: var(--text-primary) !important;
}

html.theme-dark .hero,
html[data-theme="dark"] .hero {
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.14), transparent 34%),
    linear-gradient(225deg, rgba(88, 201, 52, 0.14), transparent 32%),
    linear-gradient(180deg, #0b1220 0%, #080d18 84%) !important;
}

html.theme-dark .hero h1,
html.theme-dark .hero-heading-main,
html.theme-dark .hero-heading-sub,
html.theme-dark .section-header h2,
html.theme-dark .cat-hero h1,
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .hero-heading-main,
html[data-theme="dark"] .hero-heading-sub,
html[data-theme="dark"] .section-header h2,
html[data-theme="dark"] .cat-hero h1,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3 {
  color: #f8fafc !important;
}

html.theme-dark .hero p,
html.theme-dark .section-header p,
html.theme-dark .cat-hero p,
html.theme-dark p,
html[data-theme="dark"] .hero p,
html[data-theme="dark"] .section-header p,
html[data-theme="dark"] .cat-hero p,
html[data-theme="dark"] p {
  color: var(--text-secondary) !important;
}

html.theme-dark .hero-search,
html.theme-dark .search-wrap,
html[data-theme="dark"] .hero-search,
html[data-theme="dark"] .search-wrap {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background: rgba(15, 23, 42, 0.92) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34) !important;
}

html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background: #0f172a !important;
  color: #f8fafc !important;
}

html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder,
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #94a3b8 !important;
}

html.theme-dark .hero-chip-row,
html.theme-dark .hero-chip-row > span,
html[data-theme="dark"] .hero-chip-row,
html[data-theme="dark"] .hero-chip-row > span {
  color: #cbd5e1 !important;
}

html.theme-dark .hero-chip-row a,
html.theme-dark .collection-btn,
html.theme-dark .filter-btn,
html.theme-dark .folder-summary,
html[data-theme="dark"] .hero-chip-row a,
html[data-theme="dark"] .collection-btn,
html[data-theme="dark"] .filter-btn,
html[data-theme="dark"] .folder-summary {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: #111827 !important;
  color: #e2e8f0 !important;
}

html.theme-dark .hero-chip-row a:hover,
html.theme-dark .collection-btn:hover,
html.theme-dark .collection-btn.active,
html.theme-dark .filter-btn:hover,
html.theme-dark .filter-btn.active,
html[data-theme="dark"] .hero-chip-row a:hover,
html[data-theme="dark"] .collection-btn:hover,
html[data-theme="dark"] .collection-btn.active,
html[data-theme="dark"] .filter-btn:hover,
html[data-theme="dark"] .filter-btn.active {
  border-color: rgba(88, 201, 52, 0.58) !important;
  background: rgba(88, 201, 52, 0.12) !important;
  color: #bbf7d0 !important;
}

html.theme-dark .asset-card,
html.theme-dark .category-card,
html.theme-dark .recent-card,
html.theme-dark .feature-card,
html.theme-dark .contact-card,
html.theme-dark .glass-card,
html.theme-dark .admin-panel,
html.theme-dark .admin-stat-card,
html.theme-dark .search-suggestion,
html.theme-dark .browse-sidebar,
html.theme-dark .browse-content,
html.theme-dark .seo-landing-inner,
html.theme-dark .trust-strip,
html[data-theme="dark"] .asset-card,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .recent-card,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .contact-card,
html[data-theme="dark"] .glass-card,
html[data-theme="dark"] .admin-panel,
html[data-theme="dark"] .admin-stat-card,
html[data-theme="dark"] .search-suggestion,
html[data-theme="dark"] .browse-sidebar,
html[data-theme="dark"] .browse-content,
html[data-theme="dark"] .seo-landing-inner,
html[data-theme="dark"] .trust-strip {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(17, 24, 39, 0.92) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28) !important;
}

html.theme-dark .asset-card:hover,
html.theme-dark .category-card:hover,
html.theme-dark .recent-card:hover,
html[data-theme="dark"] .asset-card:hover,
html[data-theme="dark"] .category-card:hover,
html[data-theme="dark"] .recent-card:hover {
  border-color: rgba(88, 201, 52, 0.42) !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.42) !important;
}

html.theme-dark .asset-card h3,
html.theme-dark .asset-title,
html.theme-dark .asset-card-title,
html.theme-dark .category-card h3,
html.theme-dark .recent-card h3,
html.theme-dark .contact-card strong,
html.theme-dark .seo-related-assets h3,
html[data-theme="dark"] .asset-card h3,
html[data-theme="dark"] .asset-title,
html[data-theme="dark"] .asset-card-title,
html[data-theme="dark"] .category-card h3,
html[data-theme="dark"] .recent-card h3,
html[data-theme="dark"] .contact-card strong,
html[data-theme="dark"] .seo-related-assets h3 {
  color: #f8fafc !important;
}

html.theme-dark .asset-category,
html.theme-dark .asset-meta,
html.theme-dark .asset-folder,
html.theme-dark .asset-public-meta,
html.theme-dark .asset-description,
html.theme-dark .category-card p,
html.theme-dark .recent-card p,
html.theme-dark .contact-card p,
html.theme-dark .result-count,
html.theme-dark .folder-empty,
html.theme-dark .seo-landing-copy p,
html[data-theme="dark"] .asset-category,
html[data-theme="dark"] .asset-meta,
html[data-theme="dark"] .asset-folder,
html[data-theme="dark"] .asset-public-meta,
html[data-theme="dark"] .asset-description,
html[data-theme="dark"] .category-card p,
html[data-theme="dark"] .recent-card p,
html[data-theme="dark"] .contact-card p,
html[data-theme="dark"] .result-count,
html[data-theme="dark"] .folder-empty,
html[data-theme="dark"] .seo-landing-copy p {
  color: #cbd5e1 !important;
}

html.theme-dark .asset-action-btn,
html.theme-dark .asset-download-btn,
html.theme-dark .asset-kind-chip,
html.theme-dark .asset-price-badge,
html.theme-dark .asset-free-badge,
html.theme-dark .seo-keyword-tags span,
html[data-theme="dark"] .asset-action-btn,
html[data-theme="dark"] .asset-download-btn,
html[data-theme="dark"] .asset-kind-chip,
html[data-theme="dark"] .asset-price-badge,
html[data-theme="dark"] .asset-free-badge,
html[data-theme="dark"] .seo-keyword-tags span {
  border-color: rgba(88, 201, 52, 0.32) !important;
  background: rgba(88, 201, 52, 0.12) !important;
  color: #bbf7d0 !important;
}

html.theme-dark .asset-view-link,
html.theme-dark .seo-related-assets a,
html.theme-dark a,
html[data-theme="dark"] .asset-view-link,
html[data-theme="dark"] .seo-related-assets a,
html[data-theme="dark"] a {
  color: #93c5fd;
}

html.theme-dark .btn,
html.theme-dark .btn-primary,
html.theme-dark #nav-premium-btn,
html[data-theme="dark"] .btn,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] #nav-premium-btn {
  color: #ffffff !important;
}

html.theme-dark .browse-filter-row,
html.theme-dark .browse-toolbar,
html.theme-dark .listing-head,
html[data-theme="dark"] .browse-filter-row,
html[data-theme="dark"] .browse-toolbar,
html[data-theme="dark"] .listing-head {
  border-color: rgba(148, 163, 184, 0.2) !important;
  background: transparent !important;
}

html.theme-dark .filter-toggle,
html[data-theme="dark"] .filter-toggle {
  color: #f8fafc !important;
}

html.theme-dark .sort-control,
html.theme-dark .sort-control select,
html[data-theme="dark"] .sort-control,
html[data-theme="dark"] .sort-control select {
  color: #e2e8f0 !important;
}

html.theme-dark .login-modal,
html.theme-dark .account-modal,
html[data-theme="dark"] .login-modal,
html[data-theme="dark"] .account-modal {
  background: rgba(2, 6, 23, 0.72) !important;
}

html.theme-dark .login-dialog,
html.theme-dark .account-dialog,
html[data-theme="dark"] .login-dialog,
html[data-theme="dark"] .account-dialog {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: #0f172a !important;
  color: #f8fafc !important;
}

html.theme-dark .login-panel,
html.theme-dark .account-panel,
html[data-theme="dark"] .login-panel,
html[data-theme="dark"] .account-panel {
  background: #0f172a !important;
  color: #f8fafc !important;
}

html.theme-dark .login-visual,
html[data-theme="dark"] .login-visual {
  background: #050814 !important;
}

html.theme-dark .login-close,
html.theme-dark .account-close,
html[data-theme="dark"] .login-close,
html[data-theme="dark"] .account-close {
  border-color: rgba(148, 163, 184, 0.28) !important;
  background: #111827 !important;
  color: #e2e8f0 !important;
}

html.theme-dark .google-signin-btn,
html.theme-dark .login-submit-btn,
html[data-theme="dark"] .google-signin-btn,
html[data-theme="dark"] .login-submit-btn {
  border-color: rgba(148, 163, 184, 0.32) !important;
  background: #111827 !important;
  color: #f8fafc !important;
}

html.theme-dark .cookie-notice,
html[data-theme="dark"] .cookie-notice {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background: rgba(15, 23, 42, 0.96) !important;
  color: #e2e8f0 !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.42) !important;
}

html.theme-dark .cookie-notice strong,
html[data-theme="dark"] .cookie-notice strong {
  color: #f8fafc !important;
}

html.theme-dark .cookie-notice p,
html[data-theme="dark"] .cookie-notice p {
  color: #cbd5e1 !important;
}

html.theme-dark footer,
html.theme-dark .footer,
html[data-theme="dark"] footer,
html[data-theme="dark"] .footer {
  border-top-color: rgba(148, 163, 184, 0.2) !important;
  background: #050814 !important;
  color: #cbd5e1 !important;
}

html.theme-dark .cat-hero,
html[data-theme="dark"] .cat-hero {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background:
    linear-gradient(135deg, rgba(96, 165, 250, 0.12), transparent 44%),
    linear-gradient(225deg, rgba(88, 201, 52, 0.12), transparent 38%),
    #101827 !important;
  color: #f8fafc !important;
}

html.theme-dark .cat-hero p,
html[data-theme="dark"] .cat-hero p {
  color: #cbd5e1 !important;
}

html.theme-dark .asset-card .asset-info,
html.theme-dark .asset-card .asset-thumb,
html.theme-dark .asset-card .asset-info-top,
html.theme-dark .audio-listing .asset-info,
html.theme-dark .audio-listing .asset-thumb,
html[data-theme="dark"] .asset-card .asset-info,
html[data-theme="dark"] .asset-card .asset-thumb,
html[data-theme="dark"] .asset-card .asset-info-top,
html[data-theme="dark"] .audio-listing .asset-info,
html[data-theme="dark"] .audio-listing .asset-thumb {
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: transparent !important;
  color: #e2e8f0 !important;
}

html.theme-dark .audio-listing .asset-card,
html[data-theme="dark"] .audio-listing .asset-card {
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.08), transparent 45%),
    rgba(17, 24, 39, 0.94) !important;
}

html.theme-dark .audio-waveform,
html.theme-dark .audio-seek-rail,
html[data-theme="dark"] .audio-waveform,
html[data-theme="dark"] .audio-seek-rail {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(15, 23, 42, 0.82) !important;
}

@media (max-width: 959px) {
  .navbar .nav-links .nav-theme,
  html:not(.is-native-app) .navbar .nav-links .nav-theme {
    display: block !important;
    width: 100% !important;
  }

  .navbar .nav-links .theme-toggle,
  html:not(.is-native-app) .navbar .nav-links .theme-toggle {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 48px !important;
    justify-content: flex-start !important;
    padding: 0 0.85rem !important;
    border-radius: 11px !important;
    font-size: 0.98rem !important;
    font-weight: 900 !important;
  }

  .navbar .nav-links .theme-toggle-label,
  html:not(.is-native-app) .navbar .nav-links .theme-toggle-label {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    white-space: normal !important;
  }

  html.theme-dark .navbar .nav-links,
  html[data-theme="dark"] .navbar .nav-links {
    border-color: rgba(148, 163, 184, 0.28) !important;
    background: rgba(15, 23, 42, 0.98) !important;
  }

  html.theme-dark .navbar .nav-links a,
  html[data-theme="dark"] .navbar .nav-links a {
    color: #f8fafc !important;
  }

  html.theme-dark .navbar .nav-links a.active,
  html[data-theme="dark"] .navbar .nav-links a.active {
    background: rgba(88, 201, 52, 0.14) !important;
    color: #bbf7d0 !important;
  }

  html.theme-dark .navbar .nav-links .nav-account a,
  html[data-theme="dark"] .navbar .nav-links .nav-account a {
    border-color: rgba(148, 163, 184, 0.28) !important;
    background: #111827 !important;
  }

  html.theme-dark .navbar .nav-hamburger,
  html.theme-dark .navbar .nav-hamburger.open,
  html[data-theme="dark"] .navbar .nav-hamburger,
  html[data-theme="dark"] .navbar .nav-hamburger.open,
  html:not(.is-native-app).theme-dark .navbar .nav-hamburger,
  html:not(.is-native-app).theme-dark .navbar .nav-hamburger.open {
    border-color: rgba(148, 163, 184, 0.36) !important;
    background: #111827 !important;
    color: #f8fafc !important;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32) !important;
  }

  html.theme-dark .navbar .nav-hamburger span,
  html[data-theme="dark"] .navbar .nav-hamburger span,
  html:not(.is-native-app).theme-dark .navbar .nav-hamburger span {
    background: #f8fafc !important;
    opacity: 1 !important;
  }
}

/* Dark mode correction pass: cover late component rules and desktop-site mobile category layout. */
html.theme-dark body:has(.browse-shell) main,
html[data-theme="dark"] body:has(.browse-shell) main {
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.06), transparent 24rem),
    #080d18 !important;
}

html.theme-dark .section,
html.theme-dark .recent-section,
html.theme-dark .why-section,
html.theme-dark .featured-banner,
html.theme-dark #categories,
html.theme-dark #pricing,
html.theme-dark #trending,
html[data-theme="dark"] .section,
html[data-theme="dark"] .recent-section,
html[data-theme="dark"] .why-section,
html[data-theme="dark"] .featured-banner,
html[data-theme="dark"] #categories,
html[data-theme="dark"] #pricing,
html[data-theme="dark"] #trending {
  border-color: rgba(148, 163, 184, 0.2) !important;
  background: #080d18 !important;
  color: #f8fafc !important;
}

html.theme-dark .navbar .container,
html[data-theme="dark"] .navbar .container {
  background: transparent !important;
  color: #f8fafc !important;
}

html.theme-dark .navbar .nav-logo img,
html.theme-dark .footer .nav-logo img,
html[data-theme="dark"] .navbar .nav-logo img,
html[data-theme="dark"] .footer .nav-logo img {
  background: #ffffff !important;
  border: 1px solid rgba(203, 213, 225, 0.82) !important;
  border-radius: 999px !important;
  padding: 0.22rem 0.65rem !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24) !important;
}

html.theme-dark .navbar .nav-logo span,
html.theme-dark .footer .nav-logo span,
html[data-theme="dark"] .navbar .nav-logo span,
html[data-theme="dark"] .footer .nav-logo span {
  color: transparent !important;
  background: linear-gradient(90deg, #f8fafc 0 44%, #8eea5d 44% 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

html.theme-dark .navbar .nav-logo span,
html[data-theme="dark"] .navbar .nav-logo span {
  display: none !important;
}

html.theme-dark .footer .nav-logo span,
html[data-theme="dark"] .footer .nav-logo span {
  display: inline-block !important;
}

html.theme-dark #categories,
html[data-theme="dark"] #categories {
  background:
    linear-gradient(135deg, rgba(88, 201, 52, 0.08), transparent 34%),
    linear-gradient(225deg, rgba(96, 165, 250, 0.08), transparent 36%),
    #080d18 !important;
}

html.theme-dark .section-title,
html.theme-dark .section-subtitle,
html.theme-dark .recent-header .section-title,
html.theme-dark .recent-header .section-subtitle,
html.theme-dark .trending-header .section-subtitle,
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .recent-header .section-title,
html[data-theme="dark"] .recent-header .section-subtitle,
html[data-theme="dark"] .trending-header .section-subtitle {
  color: inherit !important;
}

html.theme-dark .section-subtitle,
html.theme-dark .recent-header .section-subtitle,
html.theme-dark .trending-header .section-subtitle,
html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .recent-header .section-subtitle,
html[data-theme="dark"] .trending-header .section-subtitle {
  color: #cbd5e1 !important;
}

html.theme-dark .why-card,
html.theme-dark .legal-card,
html.theme-dark .legal-summary-card,
html.theme-dark .contact-form-wrap,
html.theme-dark .faq-item,
html[data-theme="dark"] .why-card,
html[data-theme="dark"] .legal-card,
html[data-theme="dark"] .legal-summary-card,
html[data-theme="dark"] .contact-form-wrap,
html[data-theme="dark"] .faq-item {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.06), transparent 64%),
    rgba(17, 24, 39, 0.94) !important;
  color: #f8fafc !important;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28) !important;
}

html.theme-dark .why-card h3,
html.theme-dark .legal-card h1,
html.theme-dark .legal-card h2,
html.theme-dark .legal-summary-card strong,
html.theme-dark .contact-form-wrap h2,
html.theme-dark .faq-item h3,
html[data-theme="dark"] .why-card h3,
html[data-theme="dark"] .legal-card h1,
html[data-theme="dark"] .legal-card h2,
html[data-theme="dark"] .legal-summary-card strong,
html[data-theme="dark"] .contact-form-wrap h2,
html[data-theme="dark"] .faq-item h3 {
  color: #f8fafc !important;
}

html.theme-dark .why-card p,
html.theme-dark .legal-card p,
html.theme-dark .legal-updated,
html.theme-dark .legal-summary-card span,
html.theme-dark .contact-form-wrap p,
html.theme-dark .faq-item p,
html[data-theme="dark"] .why-card p,
html[data-theme="dark"] .legal-card p,
html[data-theme="dark"] .legal-updated,
html[data-theme="dark"] .legal-summary-card span,
html[data-theme="dark"] .contact-form-wrap p,
html[data-theme="dark"] .faq-item p {
  color: #cbd5e1 !important;
}

html.theme-dark .legal-eyebrow,
html[data-theme="dark"] .legal-eyebrow {
  color: #86efac !important;
}

html.theme-dark .legal-card section,
html[data-theme="dark"] .legal-card section {
  border-color: rgba(148, 163, 184, 0.24) !important;
}

html.theme-dark .legal-toc,
html[data-theme="dark"] .legal-toc {
  border-color: rgba(148, 163, 184, 0.22) !important;
  background: rgba(15, 23, 42, 0.72) !important;
}

html.theme-dark .legal-card .legal-toc a,
html[data-theme="dark"] .legal-card .legal-toc a {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: #111827 !important;
  color: #dbeafe !important;
}

html.theme-dark .btn-outline,
html.theme-dark .recent-header .btn,
html.theme-dark .trending-header .btn,
html.theme-dark .full-width-btn,
html.theme-dark .filter-toggle,
html[data-theme="dark"] .btn-outline,
html[data-theme="dark"] .recent-header .btn,
html[data-theme="dark"] .trending-header .btn,
html[data-theme="dark"] .full-width-btn,
html[data-theme="dark"] .filter-toggle {
  border-color: rgba(148, 163, 184, 0.34) !important;
  background: rgba(15, 23, 42, 0.88) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

html.theme-dark .btn-outline:hover,
html.theme-dark .recent-header .btn:hover,
html.theme-dark .trending-header .btn:hover,
html.theme-dark .full-width-btn:hover,
html.theme-dark .filter-toggle:hover,
html[data-theme="dark"] .btn-outline:hover,
html[data-theme="dark"] .recent-header .btn:hover,
html[data-theme="dark"] .trending-header .btn:hover,
html[data-theme="dark"] .full-width-btn:hover,
html[data-theme="dark"] .filter-toggle:hover {
  border-color: rgba(88, 201, 52, 0.58) !important;
  background: rgba(88, 201, 52, 0.16) !important;
  color: #bbf7d0 !important;
}

html.theme-dark .featured-banner-content .btn-primary,
html[data-theme="dark"] .featured-banner-content .btn-primary {
  background: #58c934 !important;
  color: #052e16 !important;
}

html.theme-dark .pricing-period,
html.theme-dark .pricing-copy,
html.theme-dark .pricing-list,
html[data-theme="dark"] .pricing-period,
html[data-theme="dark"] .pricing-copy,
html[data-theme="dark"] .pricing-list {
  color: #cbd5e1 !important;
}

html.theme-dark .pricing-price,
html[data-theme="dark"] .pricing-price {
  color: #f8fafc !important;
}

html.theme-dark .pricing-card-premium .pricing-price,
html[data-theme="dark"] .pricing-card-premium .pricing-price {
  background: linear-gradient(90deg, #fb7185, #67e8f9) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

html.theme-dark .browse-shell,
html.theme-dark .browse-content,
html.theme-dark .browse-sidebar,
html[data-theme="dark"] .browse-shell,
html[data-theme="dark"] .browse-content,
html[data-theme="dark"] .browse-sidebar {
  background: transparent !important;
}

html.theme-dark .sidebar-section h2,
html.theme-dark .browse-filter-group h2,
html[data-theme="dark"] .sidebar-section h2,
html[data-theme="dark"] .browse-filter-group h2 {
  color: #f8fafc !important;
}

html.theme-dark .filter-btn::before,
html[data-theme="dark"] .filter-btn::before {
  border-color: rgba(148, 163, 184, 0.36) !important;
  background: #111827 !important;
}

html.theme-dark .filter-btn.active::before,
html[data-theme="dark"] .filter-btn.active::before {
  border-color: #58c934 !important;
  background: linear-gradient(135deg, #58c934, #60a5fa) !important;
  box-shadow: inset 0 0 0 7px #111827 !important;
}

html.theme-dark .recent-format,
html.theme-dark .asset-kind-chip,
html[data-theme="dark"] .recent-format,
html[data-theme="dark"] .asset-kind-chip {
  border-color: rgba(88, 201, 52, 0.34) !important;
  background: rgba(88, 201, 52, 0.13) !important;
  color: #bbf7d0 !important;
}

@media (max-width: 1100px) {
  body:has(.browse-shell) main .container {
    max-width: min(100% - 1.5rem, 960px) !important;
  }

  .browse-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
  }

  .browse-sidebar {
    position: static !important;
    width: 100% !important;
    padding: 1rem !important;
    border-right: 0 !important;
    border-radius: 14px !important;
  }

  .sidebar-section-compact .filter-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0.6rem !important;
    overflow-x: auto !important;
    padding-bottom: 0.35rem !important;
    scroll-snap-type: x proximity;
  }

  #filterBar,
  .browse-sidebar #filterBar,
  .sidebar-section-compact #filterBar {
    display: flex !important;
    grid-template-columns: none !important;
    flex-wrap: nowrap !important;
    gap: 0.6rem !important;
    max-height: none !important;
    overflow: auto hidden !important;
    padding: 0.05rem 0.05rem 0.35rem !important;
    scroll-snap-type: x proximity !important;
  }

  .browse-sidebar .sidebar-section-compact .filter-bar .filter-btn,
  .sidebar-section-compact .filter-bar .filter-btn,
  #filterBar .filter-btn {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-height: 42px !important;
    padding: 0.55rem 0.85rem !important;
    border: 1px solid rgba(148, 163, 184, 0.28) !important;
    border-radius: 999px !important;
    white-space: nowrap !important;
    scroll-snap-align: start;
  }

  .sidebar-section-compact .filter-bar .filter-btn::before {
    display: none !important;
  }

  .browse-content .assets-grid:not(.audio-listing) {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
  }
}

html.theme-dark .asset-detail-wrap,
html[data-theme="dark"] .asset-detail-wrap {
  color: #f8fafc !important;
}

html.theme-dark .asset-preview,
html[data-theme="dark"] .asset-preview {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: #050814 !important;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.36) !important;
}

html.theme-dark .asset-info-panel,
html[data-theme="dark"] .asset-info-panel {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background:
    linear-gradient(180deg, rgba(96, 165, 250, 0.07), transparent 56%),
    #111827 !important;
  color: #f8fafc !important;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34) !important;
}

html.theme-dark .asset-info-panel h1,
html.theme-dark .asset-description-panel h2,
html.theme-dark .asset-tags-panel h2,
html.theme-dark .license-note-panel strong,
html.theme-dark .detail-stat strong,
html[data-theme="dark"] .asset-info-panel h1,
html[data-theme="dark"] .asset-description-panel h2,
html[data-theme="dark"] .asset-tags-panel h2,
html[data-theme="dark"] .license-note-panel strong,
html[data-theme="dark"] .detail-stat strong {
  color: #f8fafc !important;
}

html.theme-dark .asset-meta > span:not(.badge),
html[data-theme="dark"] .asset-meta > span:not(.badge) {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background: #0f172a !important;
  color: #cbd5e1 !important;
}

html.theme-dark .asset-description-panel,
html.theme-dark .asset-tags-panel,
html[data-theme="dark"] .asset-description-panel,
html[data-theme="dark"] .asset-tags-panel {
  color: #f8fafc !important;
}

html.theme-dark .asset-description-panel p,
html.theme-dark .license-note-panel p,
html.theme-dark .license-note-panel small,
html.theme-dark .download-note,
html.theme-dark .breadcrumb,
html.theme-dark .detail-stat small,
html[data-theme="dark"] .asset-description-panel p,
html[data-theme="dark"] .license-note-panel p,
html[data-theme="dark"] .license-note-panel small,
html[data-theme="dark"] .download-note,
html[data-theme="dark"] .breadcrumb,
html[data-theme="dark"] .detail-stat small {
  color: #cbd5e1 !important;
}

html.theme-dark .breadcrumb a,
html[data-theme="dark"] .breadcrumb a {
  color: #dbeafe !important;
}

html.theme-dark .detail-stat,
html[data-theme="dark"] .detail-stat {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background: #0f172a !important;
  color: #f8fafc !important;
}

html.theme-dark .download-box,
html[data-theme="dark"] .download-box {
  border-color: rgba(88, 201, 52, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(88, 201, 52, 0.1), rgba(17, 24, 39, 0) 58%),
    #172033 !important;
  color: #f8fafc !important;
}

html.theme-dark .license-note-panel,
html[data-theme="dark"] .license-note-panel {
  border-color: rgba(88, 201, 52, 0.34) !important;
  background:
    linear-gradient(180deg, rgba(88, 201, 52, 0.1), rgba(17, 24, 39, 0.92)),
    #111827 !important;
  color: #f8fafc !important;
}

html.theme-dark .tag-pill,
html[data-theme="dark"] .tag-pill {
  border-color: rgba(187, 247, 208, 0.28) !important;
  background: rgba(220, 252, 231, 0.92) !important;
  color: #052e16 !important;
}

html.theme-dark .tag-pill:hover,
html[data-theme="dark"] .tag-pill:hover {
  border-color: rgba(187, 247, 208, 0.54) !important;
  background: #dcfce7 !important;
  color: #052e16 !important;
}

html.theme-dark .asset-detail-actions .detail-action-btn,
html[data-theme="dark"] .asset-detail-actions .detail-action-btn {
  border-color: rgba(148, 163, 184, 0.26) !important;
  background: rgba(15, 23, 42, 0.9) !important;
  color: #dbeafe !important;
}

html.theme-dark .asset-detail-actions .detail-action-btn:hover,
html.theme-dark .asset-detail-actions .detail-action-btn.active,
html[data-theme="dark"] .asset-detail-actions .detail-action-btn:hover,
html[data-theme="dark"] .asset-detail-actions .detail-action-btn.active {
  border-color: rgba(88, 201, 52, 0.42) !important;
  background: rgba(88, 201, 52, 0.16) !important;
  color: #bbf7d0 !important;
}

/* Search relevance and dark-mode readability overrides */
.hero-search.search-open,
.search-wrap.search-open {
  z-index: 220 !important;
}

.browse-toolbar {
  position: relative;
  z-index: 70;
}

.browse-filter-row {
  position: relative;
  z-index: 30;
}

.browse-advanced-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.browse-advanced-filters label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.browse-advanced-filters select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  padding: 0 0.75rem;
  font: inherit;
  font-weight: 800;
}

.browse-advanced-filters select:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.14);
  border-color: #dbe3ef;
}

.license-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0 0.5rem;
}

.license-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.65rem;
  border: 1px solid rgba(22, 163, 74, 0.28);
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.11);
  color: #166534;
  font-size: 0.76rem;
  font-weight: 850;
}

html.theme-dark .browse-advanced-filters,
html[data-theme="dark"] .browse-advanced-filters {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
}

html.theme-dark .browse-advanced-filters label,
html[data-theme="dark"] .browse-advanced-filters label {
  color: #cbd5e1;
}

html.theme-dark .browse-advanced-filters select,
html[data-theme="dark"] .browse-advanced-filters select {
  border-color: rgba(148, 163, 184, 0.3);
  background: #0f172a;
  color: #f8fafc;
}

html.theme-dark .license-chip,
html[data-theme="dark"] .license-chip {
  border-color: rgba(88, 201, 52, 0.34);
  background: rgba(88, 201, 52, 0.13);
  color: #bbf7d0;
}

.search-suggestions {
  z-index: 240 !important;
  max-height: min(54vh, 430px) !important;
  border: 1px solid rgba(148, 163, 184, 0.24) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18) !important;
}

.search-suggestion {
  border: 1px solid transparent;
  color: #0f172a;
}

.search-suggestion:hover,
.search-suggestion:focus-visible {
  border-color: rgba(34, 211, 238, 0.14);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.14), transparent 68%),
    #f8fafc;
}

.suggestion-copy strong {
  color: #0f172a;
}

.suggestion-copy small,
.suggestion-type {
  color: #64748b;
}

.search-suggestion-empty {
  margin: 0;
  padding: 1.1rem;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  border-radius: 12px;
  background: #f8fafc;
  color: #64748b;
  font-weight: 800;
  text-align: center;
}

html.theme-dark .search-suggestions,
html[data-theme="dark"] .search-suggestions {
  border-color: rgba(148, 163, 184, 0.32) !important;
  background: rgba(8, 13, 24, 0.98) !important;
  color: #f8fafc !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.56) !important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

html.theme-dark .search-suggestion,
html[data-theme="dark"] .search-suggestion {
  border-color: rgba(148, 163, 184, 0.18) !important;
  background: rgba(15, 23, 42, 0.96) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

html.theme-dark .search-suggestion:hover,
html.theme-dark .search-suggestion:focus-visible,
html[data-theme="dark"] .search-suggestion:hover,
html[data-theme="dark"] .search-suggestion:focus-visible {
  border-color: var(--cat-accent, var(--brand-cyan)) !important;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.14), transparent 70%),
    #111827 !important;
}

html.theme-dark .suggestion-copy strong,
html[data-theme="dark"] .suggestion-copy strong {
  color: #f8fafc !important;
}

html.theme-dark .suggestion-copy small,
html.theme-dark .suggestion-type,
html[data-theme="dark"] .suggestion-copy small,
html[data-theme="dark"] .suggestion-type {
  color: #cbd5e1 !important;
}

html.theme-dark .suggestion-icon,
html[data-theme="dark"] .suggestion-icon {
  border-color: rgba(148, 163, 184, 0.2) !important;
  background: #1e293b !important;
  color: #bbf7d0 !important;
}

html.theme-dark .search-suggestion-empty,
html[data-theme="dark"] .search-suggestion-empty {
  border-color: rgba(148, 163, 184, 0.32) !important;
  background: #0f172a !important;
  color: #cbd5e1 !important;
}

html.theme-dark .search-suggestions::-webkit-scrollbar-thumb,
html[data-theme="dark"] .search-suggestions::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.64) !important;
}

@media (max-width: 760px) {
  .browse-advanced-filters {
    grid-template-columns: 1fr;
  }

  .browse-toolbar .search-wrap.search-open {
    z-index: 260 !important;
  }

  .search-suggestions-inline {
    max-height: min(48vh, 380px) !important;
  }

  .search-suggestion {
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .suggestion-type {
    max-width: 5.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 420px) {
  .search-suggestion {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .suggestion-type {
    display: none;
  }
}

/* Admin console polish */
.admin-page {
  --admin-bg: #070b14;
  --admin-surface: #0f172a;
  --admin-surface-2: #111c31;
  --admin-border: rgba(148, 163, 184, 0.24);
  --admin-border-strong: rgba(148, 163, 184, 0.38);
  --admin-text: #f8fafc;
  --admin-muted: #a8b3c7;
  --admin-subtle: #7f8da6;
  --admin-green: #4ade80;
  --admin-cyan: #22d3ee;
  --admin-blue: #60a5fa;
  --admin-amber: #fbbf24;
  --admin-danger: #fb7185;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.12), transparent 34rem),
    radial-gradient(circle at top right, rgba(74, 222, 128, 0.08), transparent 30rem),
    var(--admin-bg);
  color: var(--admin-text);
}

.admin-page .bg-mesh {
  opacity: 0.22;
  filter: saturate(0.75);
}

.admin-shell {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 28px 24px 56px;
}

.admin-header,
.admin-panel,
.admin-locked,
.admin-stat-card {
  border: 1px solid var(--admin-border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    rgba(15, 23, 42, 0.94);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  color: var(--admin-text);
}

.admin-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border-radius: 18px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.admin-header h1,
.admin-panel h2,
.admin-locked h2 {
  color: var(--admin-text);
  letter-spacing: 0;
}

.admin-header h1 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
}

.admin-kicker,
.admin-form label,
.admin-category-form label,
.admin-bulk-filter label,
.admin-bulk-category label,
.admin-bulk-tags label,
.admin-search-control label {
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-user,
.admin-status,
.admin-locked > p,
.admin-panel-head .admin-status,
.admin-preview-copy span,
.admin-category-preview span,
.admin-category-row-copy p,
.admin-category-row-copy span {
  color: var(--admin-muted);
}

.admin-actions,
.admin-panel-head,
.admin-category-actions,
.admin-bulk-actions,
.admin-bulk-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-grid {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}

.admin-grid[hidden],
.admin-locked[hidden] {
  display: none;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-stat-card {
  min-height: 112px;
  border-radius: 16px;
  padding: 18px;
}

.admin-stat-card span {
  color: var(--admin-subtle);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-stat-card strong {
  margin-top: 12px;
  color: var(--admin-text);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
}

.admin-panel {
  border-radius: 20px;
  padding: 22px;
}

.admin-panel-head {
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.admin-locked {
  width: min(100%, 640px);
  margin: 40px auto 0;
  padding: 38px 40px;
  border-radius: 22px;
}

.admin-locked h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.admin-url-hint {
  border: 1px solid rgba(34, 211, 238, 0.24);
  background: rgba(34, 211, 238, 0.08);
  color: #dffafe;
}

.admin-url-hint code {
  color: var(--admin-cyan);
}

.admin-help {
  display: grid;
  gap: 10px;
  margin: 18px 0 28px;
}

.admin-help div,
.admin-validation-item,
.admin-upload-mode,
.admin-preview-panel,
.admin-category-preview {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.42);
  color: var(--admin-muted);
  border-radius: 14px;
}

.admin-help div {
  min-height: 48px;
  padding: 12px 14px;
}

.admin-help .ok i,
.admin-status[data-tone="ok"],
.admin-upload-mode.ok strong {
  color: var(--admin-green);
}

.admin-help .warn i,
.admin-status[data-tone="info"],
.admin-upload-mode.warn strong {
  color: var(--admin-amber);
}

.admin-form,
.admin-category-form {
  gap: 16px;
}

.admin-two,
.admin-three,
.admin-filter-grid,
.admin-bulk-tag-controls {
  gap: 14px;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea,
.admin-search-input,
.admin-search-input input {
  min-height: 46px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.35);
  color: var(--admin-text);
  box-shadow: none;
}

.admin-panel input,
.admin-panel select,
.admin-panel textarea,
.admin-search-input input {
  padding: 0 13px;
}

.admin-panel input::placeholder,
.admin-search-input input::placeholder {
  color: #75839a;
}

.admin-panel input:focus,
.admin-panel select:focus,
.admin-panel textarea:focus,
.admin-search-input:focus-within {
  border-color: rgba(34, 211, 238, 0.68);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  outline: none;
}

.admin-panel input[type="file"] {
  display: flex;
  align-items: center;
  padding: 7px;
  cursor: pointer;
}

.admin-panel input[type="color"] {
  min-height: 52px;
  padding: 6px;
  cursor: pointer;
}

.admin-page .btn {
  min-height: 44px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.admin-page .btn-primary {
  border-color: rgba(74, 222, 128, 0.65);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.22);
}

.admin-page .btn-outline {
  border-color: var(--admin-border-strong);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
}

.admin-page .btn:hover:not(:disabled) {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.12);
}

.admin-page .btn:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.admin-page .google-signin-btn {
  width: 100%;
  justify-content: center;
}

.admin-preview-panel,
.admin-category-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
}

.admin-preview-media,
.admin-category-thumb,
.admin-category-row-thumb {
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 42, 0.84);
  color: var(--admin-cyan);
}

.admin-preview-copy strong,
.admin-category-preview strong,
.admin-category-row-copy h3 {
  color: var(--admin-text);
}

.admin-management-bar,
.admin-bulk-toolbar {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.24);
}

.admin-list {
  max-height: 720px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.22);
}

.admin-asset-row,
.admin-category-row {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
}

.admin-asset-row:hover,
.admin-category-row:hover {
  border-color: rgba(34, 211, 238, 0.42);
  background: rgba(17, 28, 49, 0.88);
}

.admin-asset-row h3,
.admin-asset-row p,
.admin-category-row-copy h3,
.admin-category-row-copy p {
  overflow-wrap: anywhere;
}

.admin-badge {
  border-radius: 999px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .admin-shell {
    padding: 16px 12px 44px;
  }

  .admin-header,
  .admin-panel-head,
  .admin-actions,
  .admin-category-actions,
  .admin-bulk-actions,
  .admin-bulk-toolbar,
  .admin-management-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-stats,
  .admin-two,
  .admin-three,
  .admin-filter-grid {
    grid-template-columns: 1fr;
  }

  .admin-locked {
    margin-top: 20px;
    padding: 26px 18px;
  }
}

/* Asset card overlay controls: keep like/save/download readable on any thumbnail. */
.assets-grid:not(.audio-listing) .asset-card-actions,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-card-actions {
  top: 0.75rem !important;
  right: 0.75rem !important;
  gap: 0.45rem !important;
  max-width: calc(100% - 1.5rem) !important;
  padding: 0.22rem !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.34) !important;
  backdrop-filter: blur(10px) saturate(1.2) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.2) !important;
}

.assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn {
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(226, 232, 240, 0.98) !important;
  box-shadow:
    0 10px 22px rgba(2, 6, 23, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
}

.assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn[data-like-asset],
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn[data-like-asset] {
  width: auto !important;
  min-width: 42px !important;
  max-width: 92px !important;
  padding-inline: 0.62rem !important;
}

.assets-grid:not(.audio-listing) .asset-card-actions .action-icon,
.assets-grid:not(.audio-listing) .asset-card-actions .action-icon svg,
.assets-grid:not(.audio-listing) .asset-card-actions .ui-icon-svg {
  width: 18px !important;
  height: 18px !important;
  color: currentColor !important;
  stroke: currentColor !important;
}

.assets-grid:not(.audio-listing) .asset-card-actions .asset-download-btn,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-download-btn {
  color: #047857 !important;
}

.assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn:hover,
.assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn:focus-visible,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn:hover,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn:focus-visible {
  color: #020617 !important;
  background: #ffffff !important;
  border-color: rgba(147, 197, 253, 0.95) !important;
  box-shadow:
    0 12px 28px rgba(2, 6, 23, 0.34),
    0 0 0 3px rgba(147, 197, 253, 0.28) !important;
}

.assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn[data-like-asset].active,
.assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn[data-save-asset].active,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn[data-like-asset].active,
body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn[data-save-asset].active {
  color: #be123c !important;
  background: #fff1f2 !important;
  border-color: rgba(251, 113, 133, 0.68) !important;
}

.assets-grid:not(.audio-listing) .asset-card-actions .asset-action-count {
  color: currentColor !important;
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

@media (max-width: 560px) {
  .assets-grid:not(.audio-listing) .asset-card-actions,
  body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-card-actions {
    top: 0.55rem !important;
    right: 0.55rem !important;
    gap: 0.32rem !important;
    max-width: calc(100% - 1.1rem) !important;
  }

  .assets-grid:not(.audio-listing) .asset-card-actions .asset-action-btn,
  body:has(.browse-shell) .browse-content .assets-grid:not(.audio-listing) .asset-action-btn {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
  }
}
