/* ============================================================
   GUDLAK WALLS — Clean Monochrome Dark Mode Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ─── CSS Variables / Design Tokens ─── */
:root {
  --bg-dark: #080808;
  --bg-card: rgba(18, 18, 18, 0.85);
  --bg-card-hover: rgba(28, 28, 28, 0.95);
  --bg-glass: rgba(12, 12, 12, 0.85);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-glass-bright: rgba(255, 255, 255, 0.18);
  
  --accent-primary: #FFFFFF;
  --accent-secondary: #A1A1AA;
  --accent-muted: #52525B;

  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-muted: #71717A;
  
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 10px;
  --radius-lg: 10px;
  --radius-xl: 10px;
  --radius-full: 10px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.9);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

  --nav-height: 60px;
}

/* ─── Global Resets & Base Flex Layout ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  height: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.45;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
}

main {
  flex: 1; /* Pushes footer strictly to the bottom on short pages */
}

/* Body Scroll Lock when Modal or Search is Active */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
  overscroll-behavior: none;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 6px;
  height: 0px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.collections-track::-webkit-scrollbar,
.category-filter-bar::-webkit-scrollbar {
  display: none;
}

.collections-track,
.category-filter-bar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 14px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 24px;
  }
}

/* ─── Preloader Screen ─── */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #FFFFFF;
}

.preloader-logo-icon {
  width: 38px;
  height: 38px;
  background: #FFFFFF;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.preloader-progress {
  width: 130px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  margin-top: 18px;
  overflow: hidden;
}

.preloader-bar {
  width: 40%;
  height: 100%;
  background: #FFFFFF;
  border-radius: 10px;
  animation: loadProgress 1.4s ease-in-out infinite alternate;
}

@keyframes loadProgress {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(250%); }
}

/* ─── App Navigation Header ─── */
#app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border-glass);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* Brand Logo & Subtitle Branding */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.52rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 2px;
}

.header-nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

@media (max-width: 640px) {
  .header-nav-links {
    display: none;
  }
}

.header-nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  padding: 4px 0;
  position: relative;
}

.header-nav-link:hover {
  color: #FFFFFF;
}

.header-nav-link.active {
  color: #FFFFFF;
  font-weight: 600;
}

.header-nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #FFFFFF;
  border-radius: 10px;
}

/* Functional Desktop Header Inline Search Bar */
.header-search-container {
  position: relative;
}

.header-search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  padding: 6px 14px;
  border-radius: 10px;
  color: var(--text-secondary);
  width: 260px;
  transition: var(--transition-fast);
}

.header-search-input-wrapper:focus-within,
.header-search-input-wrapper:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

#desktop-inline-search-input {
  background: none;
  border: none;
  font-size: 0.82rem;
  color: #FFF;
  outline: none;
  width: 100%;
  padding: 0;
}

#desktop-inline-search-input::placeholder {
  color: var(--text-muted);
}

.search-kbd {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  font-family: inherit;
  flex-shrink: 0;
}

/* Inline Desktop Search Dropdown */
.header-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  background: #141414;
  border: 0.5px solid var(--border-glass-bright);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.9);
  padding: 6px;
  display: none;
  z-index: 2000;
}

.header-search-dropdown.active {
  display: block;
}

.dropdown-results-list {
  max-height: 340px;
  overflow-y: auto;
}

/* Mobile Header Actions (10px Radius Button + Search Icon) */
.header-actions-mobile {
  display: none;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .header-search-container {
    display: none;
  }
  .header-actions-mobile {
    display: flex;
  }
}

.mobile-nav-pill-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 0.5px solid rgba(255, 255, 255, 0.18);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.mobile-nav-pill-btn:hover {
  background: rgba(255, 255, 255, 0.22);
}

.search-trigger-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 10px;
  transition: var(--transition-fast);
}

.search-trigger-btn:hover {
  color: #FFFFFF;
  opacity: 0.85;
}

.search-trigger-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

/* ─── Hero Spotlight (Generous Top Spacing) ─── */
.hero-spotlight {
  position: relative;
  padding: 55px 0 25px; /* Generous breathing room above text */
  text-align: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero-spotlight {
    padding: 35px 0 18px;
  }
}

.hero-title {
  font-size: clamp(1.7rem, 4vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(0.8rem, 1.7vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 16px;
  font-weight: 400;
}

/* ─── Featured Collections Section ─── */
.collections-carousel-section {
  margin-bottom: 22px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
}

.collections-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (min-width: 769px) {
  .collections-track {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.collection-card {
  width: 100%;
  min-width: 0;
  height: 85px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: none;
  transition: var(--transition-normal);
}

@media (min-width: 769px) {
  .collection-card {
    height: 125px;
    border-radius: 10px;
  }
}

.collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(8, 8, 8, 0.9) 100%);
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

@media (min-width: 769px) {
  .collection-card-overlay {
    padding: 12px;
  }
}

.collection-card-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFF;
  line-height: 1.15;
  word-break: break-word;
}

@media (min-width: 769px) {
  .collection-card-title {
    font-size: 0.95rem;
  }
}

.collection-card-count {
  font-size: 0.62rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

@media (min-width: 769px) {
  .collection-card-count {
    font-size: 0.75rem;
  }
}

/* ─── Category Filter Pills Bar ─── */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 450;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.08);
  border: none;
  white-space: nowrap;
  transition: var(--transition-fast);
}

.filter-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

.filter-pill.active {
  background: #FFFFFF;
  color: #000000;
  font-weight: 500;
}

.pill-count {
  font-size: 0.65rem;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-weight: 400;
}

.filter-pill.active .pill-count {
  background: rgba(0, 0, 0, 0.15);
  color: #000000;
  font-weight: 500;
}

/* ─── Wallpaper Gallery Grid (4 per Tablet, 6 per Desktop) ─── */
.gallery-section {
  margin-bottom: 50px; /* Generous breathing room above footer line */
}

.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 640px) {
  .wallpaper-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
}

@media (min-width: 1024px) {
  .wallpaper-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
}

.wallpaper-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: none;
  transition: var(--transition-normal);
  cursor: pointer;
}

.wallpaper-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: #121212;
  border-radius: 10px;
}

.wallpaper-card[data-device="desktop"] .wallpaper-thumb-wrapper {
  aspect-ratio: 16 / 9;
}

.wallpaper-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 10px;
}

.wallpaper-card:hover .wallpaper-thumb-wrapper img {
  transform: scale(1.04);
}

/* Badges & Fav Hearts */
.card-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border-radius: 6px;
  color: #FFFFFF;
}

.card-fav-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  border: none;
  display: grid;
  place-items: center;
  color: #FFF;
  transition: var(--transition-fast);
}

.card-fav-btn.active {
  background: #FFFFFF;
  color: #000000;
}

.card-fav-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.card-fav-btn.active svg {
  fill: currentColor;
}

.card-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(8, 8, 8, 0.9) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
}

.wallpaper-card:hover .card-overlay {
  opacity: 1;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.card-action-btns {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

.btn-card-action {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: #FFF;
}

/* ─── Premium Compact Centered Wallpaper Detail Modal Sheet ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  overscroll-behavior: contain;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  width: 100%;
  max-width: 880px;
  max-height: 90vh;
  background: #0E0E0E;
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  position: relative;
  margin: auto;
}

/* Position Close Button Absolutely at Top Right */
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 30;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  border: none;
  outline: none;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
}

.modal-header {
  display: none; /* Hidden on desktop so preview has exact equal top & bottom padding */
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  align-items: center; /* Ensures equal vertical alignment */
}

@media (max-width: 768px) {
  .modal-overlay {
    padding: 12px 10px;
    align-items: center;
    justify-content: center;
  }
  .modal-container {
    max-height: 92vh;
    border-radius: 14px;
  }
  .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  }
  .modal-body {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 12px;
  }
}

/* Device Mockup Displays */
.device-frame-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.iphone-frame {
  width: 215px;
  height: 440px;
  border-radius: 38px;
  background: #181818;
  border: 7px solid #262626;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .iphone-frame {
    width: 160px;
    height: 330px;
    border-radius: 28px;
    border-width: 5px;
  }
}

.iphone-dynamic-island {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 15px;
  background: #000;
  border-radius: 10px;
  z-index: 10;
}

.iphone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iphone-clock-overlay {
  position: absolute;
  top: 28px;
  left: 0;
  right: 0;
  text-align: center;
  color: #FFF;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
  z-index: 5;
  pointer-events: none;
}

.iphone-clock-time {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.iphone-clock-date {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.9;
}

/* macOS Lock Screen Frame & Clock Overlay */
.macbook-frame {
  width: 300px;
  height: 188px;
  border-radius: 10px 10px 0 0;
  background: #181818;
  border: 6px solid #262626;
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .macbook-frame {
    width: 240px;
    height: 150px;
  }
}

.macbook-base {
  width: 340px;
  height: 9px;
  background: #333333;
  border-radius: 0 0 9px 9px;
}

@media (max-width: 480px) {
  .macbook-base {
    width: 270px;
  }
}

.macbook-clock-overlay {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  text-align: center;
  color: #FFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
  z-index: 10;
  pointer-events: none;
}

.macbook-clock-date {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.95;
  margin-bottom: -2px;
}

.macbook-clock-time {
  font-family: var(--font-main);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Modal Details & Centered Right Column Block */
.modal-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Title on Desktop Right Column Top */
.modal-details-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 4px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .modal-details-title {
    display: none; /* Hide on mobile to avoid duplicating top header title */
  }
}

.modal-wp-subtitle {
  color: var(--text-secondary);
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.meta-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
}

/* Very Small & Compact Metadata Tags */
.meta-tag {
  padding: 2px 7px;
  font-size: 0.62rem;
  font-weight: 450;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-secondary);
}

/* Mockup Switcher Controls Flowing Naturally */
.mockup-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 10px;
  padding-top: 12px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.mockup-switch-btn {
  flex: 1;
  text-align: center;
  padding: 9px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  outline: none;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.mockup-switch-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
}

.mockup-switch-btn.active {
  background: #FFFFFF;
  color: #000000;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Download Box & Clean Warning Text */
.modal-download-box {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

/* Clean Warning Text (No Background, Reduced Size, Mild Warning Color) */
.download-availability-msg {
  font-size: 0.7rem;
  font-weight: 400;
  color: #F59E0B;
  text-align: center;
  display: none;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 3px;
}

.download-availability-msg.show {
  display: inline-block;
}

.btn-download-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  background: #FFFFFF;
  color: #000000;
  border: none;
  outline: none;
  transition: var(--transition-fast);
}

.btn-download-primary:hover:not(:disabled) {
  background: #E4E4E7;
}

.btn-download-primary:disabled, .btn-download-primary.disabled {
  background: #27272A !important;
  color: #71717A !important;
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(100%);
  pointer-events: none;
}

/* ─── Floating Top Search Modal Overlay ─── */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  overscroll-behavior: contain;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.search-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-modal-box {
  width: 100%;
  max-width: 580px;
  margin-top: 20px;
  background: #141414;
  border: 0.5px solid var(--border-glass-bright);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-modal-overlay.active .search-modal-box {
  transform: translateY(0);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-bottom: 0.5px solid var(--border-glass);
}

.search-input {
  flex: 1;
  background: none;
  border: none;
  font-size: 0.9rem;
  color: #FFF;
  outline: none;
  padding: 0 8px;
}

.search-close-btn {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: var(--text-secondary);
  border: none;
  outline: none;
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.search-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
}

.search-results-list {
  max-height: 55vh;
  overflow-y: auto;
  padding: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.search-result-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}

/* ─── App Footer (Sticky Bottom Flex Layout with Generous Spacing Above) ─── */
#app-footer {
  margin-top: 60px; /* Generous breathing room above footer line */
  background: rgba(14, 14, 14, 0.9);
  border-top: 0.5px solid var(--border-glass);
  padding: 40px 0;
  width: 100%;
}

@media (max-width: 768px) {
  #app-footer {
    margin-top: 40px;
    padding: 32px 0;
  }
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 20px;
  }
}

.footer-brand-col {
  max-width: 380px;
}

.footer-description {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-info-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
}

@media (max-width: 768px) {
  .footer-info-col {
    align-items: flex-start;
    text-align: left;
    gap: 8px;
  }
}

.footer-policy-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .footer-policy-links {
    margin-top: 6px;
    gap: 16px;
  }
}

.footer-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-copyright {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.footer-powered-by {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ─── Toast Notifications ─── */
#toast {
  position: fixed;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  z-index: 4000;
  padding: 9px 18px;
  border-radius: 10px;
  background: #1C1C1E;
  border: 0.5px solid var(--border-glass-bright);
  box-shadow: var(--shadow-md);
  color: #FFF;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-spring);
}

#toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
