
.remix-element-btn img {
  transition: filter 0.38s;
  will-change: filter;
  margin: 0 auto;
  display: block;
}

:root {
  /* Height of the fixed bottom navigation bar */
  --bottom-bar-h: 3.25rem; /* keep in sync with .bottom-bar height */
}

/* ==========================================
save screen ke issue se ye rule liye gya h
=========================================== */
html,
body,
#av-wrapper {
  background-color: #100c0c !important;
}
/* ==========================================
me-section screen ke issue se ye rule liye gya h
=========================================== */



/* Global rule to remove blue-ish tap highlights (Chrome/Safari mobile) */
* {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #100c0c;
  /* border: 5px solid rgb(0, 255, 242);  */
}

:root {
  --ui-speed: 260ms;
  --ui-ease: cubic-bezier(.22,.61,.36,1);
  --ui-press-scale: 0.97;
  --ui-top-nudge: clamp(16px, 5vmin, 32px);
}
* {
  transition: all var(--ui-speed) var(--ui-ease);
}

button {
  opacity: 1; /* default look */
  transition: opacity 0.15s ease;
}

/* Tap feedback */
button:active {
  opacity: 0.55; /* on tap */
}



/* search,add,template ko croped nhi hone deta h */
#scale {
  width: 100vw !important;
  height: 100% !important;
  
  /* border: 6px solid red !important; */
  /* background: yellow !important; */
}




/* =========================================== 
iframe / AVs 
===========================================  */
#av-wrapper {
  position: absolute;
  border-left: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.1);

  top: var(--native-safe-top, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom, 0px));
  left: env(safe-area-inset-left, 0px);

  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;

  overflow: hidden;
  box-sizing: border-box;

  --vh: var(--native-vh, 100svh);

  --avail-w: calc(
    100vw
    - env(safe-area-inset-left, 0px)
    - env(safe-area-inset-right, 0px)
  );

  --avail-h: calc(
    var(--vh)
    - var(--native-safe-top, 0px)
    - env(safe-area-inset-bottom, 0px)
    - var(--bottom-bar-h)
  );

  width: min(var(--avail-w), calc(var(--avail-h) * 9 / 16));
  height: min(var(--avail-h), calc(var(--avail-w) * 16 / 9));
  aspect-ratio: 9 / 16;
}
/* =========================================== 
iframe / AVs 
===========================================  */





#scale {
  /* border: 5px solid rgb(77, 255, 0);  */
  width: 100dvh;
  height: 100dvh;
  transform-origin: center center;
  box-sizing: border-box;
}




/* Saved AVs grid container (for vertical scroll only in saves grid) */
.saved-avs-grid-scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5em;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 0.5em;
  box-sizing: border-box;
}

.saved-avs-grid-scroll > div {
  flex: 0 0 calc(31.33% - 1em);
  max-width: calc(31.33% - 1em);
  aspect-ratio: 9 / 16;
}

@media (max-width: 600px) {
  .saved-avs-grid-scroll > div {
    flex: 0 0 calc(31.33% - 0.6em);
    max-width: calc(31.33% - 0.6em);
  }
}

/* Top bar wrapper for animation (mobile-first, rem-based spacing, better alignment) */
#top-bar-wrapper {
  position: absolute;
  /* keep top spacing responsive and respectful of safe-area */
  top: clamp(0.6rem, 1.6vh, 1.2rem);
  left: env(safe-area-inset-left, 1.2rem);
  right: env(safe-area-inset-right, 1.2rem);
  margin: 0 auto;

  /* full width minus safe-area paddings, but capped with a sensible max */
  width: calc(100% - (env(safe-area-inset-left, 1.2rem) + env(safe-area-inset-right, 1.2rem)));
  /* configurable inner cap for very wide screens */
  --topbar-outer-max: 46rem; /* keep previous cap */
  max-width: var(--topbar-outer-max);

  z-index: 10;
  transition: transform 0.18s var(--ui-ease), opacity 0.16s var(--ui-ease);
  transform: translateX(0%);
  opacity: 1;
  box-sizing: border-box;
  pointer-events: auto;
  display: flex;
  justify-content: center; /* center inner .top-bar so left/right spacing is consistent */
}

/* inner bar keeps its own max width so items don't stretch on large screens */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  gap: 0.5rem; /* smaller, consistent gap */
  padding: 0.25rem 0.6rem; /* more compact padding for small screens */
  width: 100%;
  box-sizing: border-box;
  /* inner cap slightly smaller than outer so there's breathing room */
  --topbar-inner-max: clamp(28rem, 88vw, 42rem);
  max-width: var(--topbar-inner-max);
  margin: 0 auto; /* center the inner bar inside the wrapper */
}

.top-bar .left-section,
.top-bar .right-section {
  min-width: 0; /* allow children to shrink on small screens */
  display: flex;
  align-items: center;
  gap: 0rem;
  max-width: 48rem; /* keeps layout compact on wide screens */
  
}

.top-bar {
  gap: 0.225rem;
}

.top-icon {
  width: 2.2rem;
  height: 2.2rem;
  flex: 0 0 auto;
  display: block;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 0.25em;
  position: relative;
  top: -0.1em;
}
.right-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.175rem;
}



.views-box {
  display: block;
  align-self: center;
  margin-right: 0rem;
  transform: translateY(0.05em);
  max-height: clamp(1.4rem, 2.2vmin, 2.2rem);
  object-fit: contain;
}

.title {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bolder;
  font-size: 1em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.65), 0 1px 2px rgba(0,0,0,0.65);
}



/* Bottom overlays */
.bottom-overlay {
  position: absolute;
  bottom: 33%;
  right: 5.5%;
  display: flex;
  gap: 0.5em;
  z-index: 9999;
  pointer-events: auto;
  max-width: 90%;
}

/* Bottom overlays */
.bottom-right-overlay {
  position: absolute;
  bottom: 33%;
  left: 5.5%;
  display: flex;
  gap: 0.5em;
  z-index: 9999;
  pointer-events: auto;
  max-width: 90%;
}



#followButton {
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 1.3em;          /* matches pill feel of other controls */
  padding: 0.55em 1.45em;        /* aligns visual weight with share/edit/comment */
  min-height: 2.8em;             /* same tap height as circular buttons */
  line-height: 1;                /* tighter vertical alignment */
  cursor: pointer;
  transition: all 0.12s ease;


  mask-image:
    linear-gradient(
      to right,
      transparent,
      black 20%,
      black 80%,
      transparent
    ),
    linear-gradient(
      to bottom,
      transparent,
      black 45%,
      black 65%,
      transparent
    );
  mask-composite: intersect;
}

/* Share button — PURE image only (same as nav arrows) */
.share-btn {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.share-btn img {
  width: 42px;
  height: 42px;
  object-fit: contain;

  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  display: block;
}


.timer-circle {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.5rem;
  z-index: 9999;
  gap: 0.375rem;
}

/* More icon — PURE image only (same as nav arrows) */
#more-icon {
  width: 42px;
  height: 42px;
  cursor: pointer;

  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  filter: none !important;

  display: block;
}




/* Remix button — PURE image only (same as nav arrows) */
.remix-btn-circle {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;

  display: flex;
  align-items: center;
  justify-content: center;
}

.remix-btn-circle img,
.remix-btn-circle svg {
  width: 42px;
  height: 42px;
  object-fit: contain;

  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}



.bottom-icon {
  width: 3rem;
  height: 3rem;
  cursor: pointer;
}




.circle-bg {
  fill: none;
  stroke: #444;
  stroke-width: 2.5;
}

.circle-progress {
  fill: none;
  stroke: #0f0;
  stroke-width: 2.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s linear;
}

/* Bottom navigation */
.bottom-bar {
  /* border: 5px solid rgb(30, 0, 255);  */
  border-top: 1px solid rgba(255,255,255,0.1); /* faint thin line */
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 3.25em;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #100c0c;
  z-index: 10;
  pointer-events: none;
}

.bottom-bar button {
  background: none;
  border: none;
  cursor: pointer;
  pointer-events: auto;
}

.bottom-bar button img {
  width: 1.5rem;
  height: 1.5rem;
  filter: invert(1);
}


/* .bottom-bar button img[src*="search-"]{
  width: 1.5em;
  height: 1.5em;
}
.bottom-bar button img[src*="me-"]{
  width: 1.5em;
  height: 1.5em;

}

.bottom-bar button img[src*="add-"]{
  width: 1.5em;
  height: 1.5em;
} */

/* =========================================== 
nav-controls 
===========================================  */
.nav-left-controls,
.nav-right-controls {
  position: absolute;
  bottom: 24%;

  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-left-controls {
  left: 3%;
}
.nav-right-controls {
  right: 3%;
}

.nav-btn {
  border: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.nav-btn img {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

.nav-btn:active,
.nav-btn:focus {
  outline: none;
  background: transparent;
  box-shadow: none;
}
/* =========================================== 
nav-controls 
===========================================  */



#iframe-wrapper {
  position: relative;
  overflow: hidden;
}

#iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  transition: opacity 0.32s var(--ease-smooth); /* Smooth, quicker fade */
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
#iframe-wrapper iframe {
  transition: none;
}
}







#more-popup {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #100c0c;
  border-top-left-radius: 1.25em;
  border-top-right-radius: 1.25em;
  padding: 1rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateY(100%);
  transition: transform 0.12s var(--ease-back), opacity 0.12s var(--ease-smooth);
  will-change: transform;
  box-sizing: border-box;
}


#more-popup.popup-visible {
  transform: translateY(0%);
}


.popup-icon {
  width: 1.8rem;
  height: 1.8rem;
  display: block;
  margin: 0 auto;             /* perfect horizontal centering */
  filter: brightness(0) invert(1);
}




/* Overlay layer for more-popup */
#overlay-layer {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0);
  z-index: 9998;
  cursor: default;
}

/* Overlay layer for remix/edit popup - now with blur effect */


/* ========== REMIX BOX & OVERLAY STYLES ========== */
/* === Remix Overlay and Box Animation Enhancements === */
#remix-overlay-layer {
  transition: opacity 0.28s var(--ease-smooth);
}

#remix-overlay-layer.remix-visible {
  opacity: 1;
}

#remix-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  border-top: 1px solid rgba(255,255,255,0.1);
  background:#100c0c;
  border-top-left-radius: 1.25em;
  border-top-right-radius: 1.25em;
  padding: 1rem;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.38s var(--ease-pop);
  transform: translateY(100%);
  will-change: transform;
  box-sizing: border-box;
}
#remix-box.remix-popup-visible {
  transform: translateY(0%);
}
.remix-popup-drag,
.popup-drag {
  width: 3rem;
  height: 0em;
  border-radius: 0.185em;
  background: rgba(255,255,255,0.4);
  margin-bottom: 15em;
}
.remix-popup-content {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 2.1em;
  flex-wrap: wrap;
}
.popup-content {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8%;
  flex-wrap: wrap;
}
.remix-popup-item{
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  transform: translateY(-350%);
  touch-action: manipulation;
  user-select: none;
  border-radius: 16em;
  padding: 0.5rem;
}

.popup-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  transform: translateY(-350%);
  touch-action: manipulation;
  user-select: none;
  border-radius: 16em;
  padding: 0.7rem 1rem;
}


#remix-overlay-layer {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 9998;
  cursor: default;
  /* backdrop-filter: blur(0.45em);
  -webkit-backdrop-filter: blur(0.45em); */
}
.remix-popup-hidden {
  display: none !important;
}
/* Floating remix controls (Save, Back, Aspect Border) */
.remix-save-label {
  position: fixed;
  top: 4.2%;
  right: 4.5%;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 1.13em;
  background: #0760D4;
  padding: 0.4em 1.2em;
  border-radius: 0.7em;
  user-select: none;
  z-index: 100020;
  box-shadow: 0 0.25 1.125em rgba(20,48,180,0.07);
  letter-spacing: 0.01em;
  min-width: 3.25em;
  text-align: center;
}
@media (max-width: 600px) {
  .remix-save-label {
    top: 2.5%;
    right: 4.5%;
    font-size: .9em;
    padding: 0.36em 1em;
    border-radius: 0.65em;
  }
}

#aspectBorderBox {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  top: 10%;                    /* adjust as you like */
  z-index: 100020;
  pointer-events: none;
  background: none;

  /* design width (desktop look). It WILL NOT grow past this width. */
  width: 760px;
  aspect-ratio: 16 / 9;

  /* compute scale: shrink when viewport is smaller than design width minus safety margins */
  --safeMargin: 120px;              /* breathing room for side UI */
  --rawScale: calc((100vw - var(--safeMargin)) / 760);
  --scale: clamp(0.5, var(--rawScale), 1);



  /* safety rules so it never disappears or overflows */
  max-width: calc(100% + 4em);
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;

  transition: transform 200ms ease;
  will-change: transform;
}

/* Mobile: Small Phones ≤360px */
@media (max-width: 360px) {
  #aspectBorderBox {
    top: 10%;
    width: 24em;
    --safeMargin: 3em;
    --rawScale: calc((100vw - var(--safeMargin)) / 24em);
    --scale: clamp(0.5, var(--rawScale), 1);
  }
}

/* Mobile: Larger Phones 361px–480px */
@media (min-width: 361px) and (max-width: 480px) {
  #aspectBorderBox {
    top: 10%;
    width: 28em;
    --safeMargin: 4em;
    --rawScale: calc((100vw - var(--safeMargin)) / 28em);
    --scale: clamp(0.55, var(--rawScale), 1);
  }
}

/* Tablet 481px–768px */
@media (min-width: 481px) and (max-width: 768px) {
  #aspectBorderBox {
    top: 10%;
    width: 40em;
    --safeMargin: 5em;
    --rawScale: calc((100vw - var(--safeMargin)) / 40em);
    --scale: clamp(0.6, var(--rawScale), 1);
  }
}

/* Small Desktop / Laptop 769px–1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  #aspectBorderBox {
    top: 10%;
    width: 48em;
    --safeMargin: 6em;
    --rawScale: calc((100vw - var(--safeMargin)) / 48em);
    --scale: clamp(0.65, var(--rawScale), 1);
  }
}

/* Large Desktop ≥1025px */
@media (min-width: 1025px) {
  #aspectBorderBox {
    top: 10%;
    width: 64em;
    --safeMargin: 8em;
    --rawScale: calc((100vw - var(--safeMargin)) / 64em);
    --scale: clamp(0.75, var(--rawScale), 1);
  }
}


.remix-save-label {
  position: fixed;
  top: 4.2%;
  right: 4.5%;
  color: white;
  font-family: Arial, sans-serif;
  font-size: 1.13em;
  background: #0760D4;
  padding: 0.4em 1.2em;
  border-radius: 0.7em;
  user-select: none;
  z-index: 100020;
  letter-spacing: 0.01em;
  min-width: 52px;
  text-align: center;
}
@media (max-width: 600px) {
  .remix-save-label {
    top: 2.5%;
    right: 4.5%;
    font-size: .9em;
    padding: 0.36em 1em;
    border-radius: 0.65em;
  }
}


.remix-cancel-btn {
  position: fixed;
  top: 4.2%;
  left: 4.5%;
  color: hsla(350, 77%, 46%, 0.8);
  background: transparent;
  font-family: Arial, sans-serif;
  font-weight: 500;
  font-size: 1.13em;
  padding: 0.4em 1.2em;
  border: 1.6px solid rgba(255,255,255,0.7);
  border-radius: 0.7em;
  cursor: pointer;
  z-index: 100020;
  min-width: 52px;
  text-align: center;
  letter-spacing: 0.01em;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.remix-cancel-btn:hover,
.remix-cancel-btn:active {
  background: rgba(255,255,255,0.16);
  border-color: #fff;
  color: hsl(350, 84%, 45%);
}

@media (max-width: 600px) {
  .remix-cancel-btn {
    top: 2.5%;
    left: 4.5%;
    font-size: .98em;
    padding: 0.36em 1em;
    border-radius: 0.65em;
  }
}

/* Hide floating remix controls by default */
.remix-floating-hidden {
  display: none !important;
}
/* ========== END REMIX BOX & OVERLAY STYLES ========== */

@media (max-width: 600px) {
  #remix-controls-container {
    gap: 1.1rem;
    background: rgba(255 255 255 / 0.1);
    backdrop-filter: saturate(180%) blur(8px);
    border-radius: 24px;
    padding: 0.4em 1.2em;
    transition: opacity 0.3s ease;
  }

  .remix-back-btn {
    width: 3em;
    height: 3em;
  }

  .remix-save-label {
    font-size: 1.1em;
    padding: 0.4em 1.1em;
  }

  #remix-controls-container.remix-floating-hidden {
    opacity: 0;
  }
  #remix-controls-container:not(.remix-floating-hidden) {
    opacity: 1;
  }
}
/* --- Remix Elements Section Styles --- */
.remix-elements-section {
  width: 100%;
  margin-bottom: 0.2em;
}

.remix-elements-title {
  font-family: Arial, sans-serif;
  font-weight: 400;
  font-size: 1.11em;
  margin-bottom: 0.55em;
  color: hsla(0, 0%, 100%, 0.7);
  letter-spacing: 0.02em;
  text-align: left;
  padding-left: 0.2em;
}

.remix-elements-scroll-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4em;
  width: 100%;
  overflow: hidden;
}

.remix-elements-row {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0.6em; /* Reduced gap for closer boxes */
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.remix-elements-row::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}


.remix-element-btn {
  background: hsl(0, 0%, 100%);
  border-radius: 8px;
  padding: 0.5em 1em 0.5em 0.7em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1em;
  min-width: 92px;
  transition: background 0.18s var(--ease-smooth), box-shadow 0.18s var(--ease-smooth), border-color 0.18s var(--ease-smooth);
  border: 2.5px solid transparent;
  box-sizing: border-box;
}

.remix-element-btn:hover,
.remix-element-btn:focus-visible {
  border-color: #0760D4; /* subtle light bluish background on hover */
  outline: none;
}

.remix-element-btn:active {
transform: scale(0.98);
transition: transform 0.14s var(--ease-pop);
}

/* Active remix element button styling */
.remix-element-btn.active {
  border: 2.5px solid #3b82f6; /* solid bluish border */
  box-shadow: none; /* remove shadows if any */
}

.remix-element-btn img {
  width: 1.5em;
  height: 1.5em;
  object-fit: contain;
}
.remix-element-btn span {
  color: #222;
  font-size: 1em;
  font-weight: 500;
  font-family: Arial, sans-serif;
}


@media (max-width: 600px) {
  .remix-elements-row {
    gap: 0.8em;
  }
  .remix-element-btn {
    min-width: 94px;
    padding: 0.4em 0.7em 0.4em 0.5em;
    font-size: 0.95em;
  }
  .remix-elements-title {
    font-size: 1em;
  }
}
/* Explicitly set size for blank .remix-element-btn boxes in All images and Upload on sections */
#all-images-row .remix-element-btn,
#upload-on-row .remix-element-btn {
  min-width: 92px;
  height: 40px;
  background: hsl(0, 0%, 100%);
  border-radius: 8px;
  padding: 0.5em 1em 0.5em 0.7em;
  display: flex;
  align-items: center;
  gap: 0.6em;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1em;
  transition: background 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}
@media (prefers-reduced-motion: reduce) {
#top-bar-wrapper,
#remix-box,
#more-popup,
#iframe-wrapper iframe {
  transition: none !important;
}
}

#coming-soon-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}
#coming-soon-popup.popup-hidden {
  display: none;
}
.coming-soon-box {
  background: #fff;
  border-radius: 1em;
  padding: 2em;
  width: 80%;
  max-width: 360px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: fadeInUp 0.3s ease;
}
.coming-soon-box h2 {
  margin: 0 0 0.5em;
  font-size: 1.4em;
  color: #333;
}
.coming-soon-box p {
  margin: 0 0 1.2em;
  font-size: 1em;
  color: #555;
}
.coming-soon-box button {
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 0.5em;
  background: #333;
  color: #fff;
  font-size: 0.95em;
  cursor: pointer;
}
.coming-soon-box button:hover {
  background: #000;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* optional: scale slightly on ultra-small screens (visual consistency) */
@media (max-width: 340px) {
  .coming-soon-box {
    transform: scale(0.9);
  }
}

/* Responsive fine-tuning */
@media (max-width: 400px) {
  .coming-soon-box {
    padding: 1.5em;
    font-size: 0.9em;
  }
}


  /* Smoothly hide borders ONLY when rows are flagged as audio */
  #all-images-row[data-mode="audio"] .remix-element-btn,
  #all-images-row[data-mode="audio"] .remix-element-btn *,
  #all-images-row[data-mode="audio"] .remix-element-btn::before,
  #all-images-row[data-mode="audio"] .remix-element-btn::after,
  #all-images-row[data-mode="audio"] .remix-element-btn *::before,
  #all-images-row[data-mode="audio"] .remix-element-btn *::after,
  #upload-on-row[data-mode="audio"] .remix-element-btn,
  #upload-on-row[data-mode="audio"] .remix-element-btn *,
  #upload-on-row[data-mode="audio"] .remix-element-btn::before,
  #upload-on-row[data-mode="audio"] .remix-element-btn::after,
  #upload-on-row[data-mode="audio"] .remix-element-btn *::before,
  #upload-on-row[data-mode="audio"] .remix-element-btn *::after {
    /* Keep layout, just fade borders/shadows out */
    border-color: transparent !important;
    outline-color: transparent !important;
    box-shadow: none !important;
    transition: border-color 180ms ease, outline-color 180ms ease, box-shadow 180ms ease;
  }

  /* Reduce motion respect: if user prefers reduced motion, remove transitions */
  @media (prefers-reduced-motion: reduce) {
    #all-images-row[data-mode="audio"] .remix-element-btn,
    #all-images-row[data-mode="audio"] .remix-element-btn *,
    #upload-on-row[data-mode="audio"] .remix-element-btn,
    #upload-on-row[data-mode="audio"] .remix-element-btn * {
      transition: none !important;
    }
  }



/* ===============================================================
Hide shell UI before JS router/tab restore to prevent flicker
=============================================================== */
body.app-preload #top-bar-wrapper,
body.app-preload #bottom-overlay-wrapper,
body.app-preload .nav-left-controls,
body.app-preload .nav-right-controls,
body.app-preload .bottom-bar {
  visibility: hidden;
}
/* ===============================================================
Hide shell UI before JS router/tab restore to prevent flicker
=============================================================== */


/* Important */
.nav-left-controls,
.nav-right-controls,
.nav-btn {
  touch-action: none; /* 🔥 THIS IS THE KEY */
}
