@media (max-width: 600px) {
  .aarti-tile {
    align-items: flex-start;
  }
  .tile-title, .tile-meta {
    text-align: left;
  }
  .drag-handle {
    font-size: 1.1rem;
    margin-right: 0.2em;
    padding: 0.15em 0.05em 0.15em 0.05em;
  }
}
/* Subtle marquee UI below header */
.marquee-container {
  width: 100%;
  overflow: hidden;
  background: var(--card, #fffbe9);
  border-bottom: 1px solid var(--accent, #e2b13c);
  box-shadow: 0 2px 8px rgba(226,177,60,0.07);
  padding: 0.5em 0;
}
.marquee {
  display: inline-block;
  white-space: nowrap;
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  font-size: 1.08rem;
  color: var(--accent, #e2b13c);
  letter-spacing: 0.02em;
    animation: marquee-scroll 38s linear infinite;
  padding-left: 100%;
}
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
/* Bell swing animation */
.bell-animating {
  animation: bellSwing 1.1s cubic-bezier(.36,.07,.19,.97) infinite;
}
@keyframes bellSwing {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(-18deg); }
  20% { transform: rotate(16deg); }
  30% { transform: rotate(-12deg); }
  40% { transform: rotate(10deg); }
  50% { transform: rotate(-6deg); }
  60% { transform: rotate(4deg); }
  70% { transform: rotate(-2deg); }
  80% { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}
/* Floating bell button for aarti details page */
.floating-bell-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 5.5rem;
  z-index: 120;
  background: var(--card);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(226,177,60,0.18);
  width: 56px;
  height: 56px;
  /* Remove misplaced rules */
  position: fixed;
  right: 2rem;
  bottom: 5.5rem; /* Move up to avoid overlap with bottom action button */
  z-index: 120;
  background: var(--card);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(226,177,60,0.18);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  padding: 0;
  overflow: hidden;
}
.floating-bell-btn:hover {
  background: #ffe9b3;
  box-shadow: 0 8px 32px rgba(226,177,60,0.22);
  /* Remove misplaced rules */
}
.floating-bell-btn svg {
  display: block;
  margin: auto;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
}

.aarti-indicator {
  position: fixed;
  left: 50%;
  bottom: 2.5rem;
  #reset-order-btn {
    position: fixed;
    top: 9.5rem;
    right: 1.5rem;
    z-index: 998;
    margin: 0;
    box-shadow: 0 2px 8px rgba(226,177,60,0.07);
  transform: translateX(-50%);
  background: var(--card);
  color: var(--accent);
      padding: 7.5rem 0.5rem 0.5rem 0.5rem;
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  padding: 0.5em 1.2em;
      top: 5.5rem;
      padding: 0.5rem 0.5rem 0.5rem 0.5rem;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(226,177,60,0.10);
      top: 9.5rem;
      right: 0.5rem;
      font-size: 0.95em;
      padding: 0.4em 0.8em;
  opacity: 0;
  transition: opacity 0.4s, bottom 0.4s;
  z-index: 101;
  pointer-events: none;
}

.aarti-tile {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  overflow: hidden;
  height: 110px;
  min-height: 110px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
  padding: 0.5em 1em;
  transition: transform 0.2s, box-shadow 0.2s, border 0.2s;
  /* removed will-change for undo */
}
/* removed move-up and move-down for undo */

.aarti-tile.shimmer {
  animation: shimmerTile 0.7s infinite alternate;
}

@keyframes shimmerTile {
  0% { box-shadow: 0 0 0 0 var(--accent); transform: scale(1); }
  50% { box-shadow: 0 0 12px 2px var(--accent); transform: scale(1.02); }
  100% { box-shadow: 0 0 0 0 var(--accent); transform: scale(1); }
}
}
/* Drag handle visual cues */
.drag-handle {
  font-family: 'Material Icons';
  font-size: 2rem;
  color: var(--accent);
  cursor: grab;
  margin-right: 0.2em;
  margin-left: 0.2em;
  user-select: none;
  transition: color 0.2s, box-shadow 0.2s;
  padding: 0.5em 0.2em 0.5em 0.2em;
  border-radius: 8px;
  background: transparent;
  display: flex;
  align-items: center;
}
.drag-handle:active {
  cursor: grabbing;
}

.aarti-tile.dragging {
  box-shadow: 0 8px 32px rgba(226,177,60,0.18), 0 0 0 4px var(--accent);
  opacity: 0.85;
  z-index: 10;
  border: 2.5px solid var(--accent);
  transform: scale(1.04);
  transition: box-shadow 0.2s, border 0.2s, transform 0.2s;
}

.aarti-tile.drag-over {
  background: #ffe9b3;
  box-shadow: 0 0 0 3px var(--accent);
  border: 2.5px dashed var(--accent);
  min-height: 110px;
  transition: background 0.2s, box-shadow 0.2s, border 0.2s;
}
.tile-title {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  transition: color 0.3s;
  margin-bottom: 0.3em;
  margin-top: 0;
  margin-left: 0;
}
.tile-meta {
  font-size: 0.95rem;
  color: var(--accent);
  display: flex;
  gap: 0.7em;
  flex-wrap: wrap;
  margin-left: 0;
  margin-bottom: 0.2em;
}
.tile-img {
  flex: 0 0 110px;
  height: 100px;
  min-width: 100px;
  max-width: 120px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center right;
  position: relative;
  z-index: 1;
  border-radius: 0 16px 16px 0;
  filter: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  /* Add left-side gradient fade for smooth blend */
  overflow: hidden;
}
.tile-img::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  /* Gradient fade from left to right for smooth blend */
  background: linear-gradient(to right, var(--card) 0%, rgba(255,255,255,0.01) 18%, rgba(255,255,255,0.0) 40%, rgba(255,255,255,0.0) 100%);
  border-radius: 0 16px 16px 0;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.4s;
}
#aartis-ul li img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0 16px 16px 0;
  filter: grayscale(1) brightness(0.85);
  cursor: pointer;
}
body {
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  margin: 0;
  background: linear-gradient(135deg, #f7f3e9 0%, #fffbe6 100%);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}
:root {
  --bg: #f7f3e9;
  --text: #2d1e0f;
  --accent: #e2b13c;
  --card: #fffbe6;
  --shadow: 0 4px 24px rgba(226,177,60,0.08);
}
[data-theme="dark"] {
  --bg: #181a22;
  --text: #f7f3e9;
  --accent: #ffd166;
  --card: #23283a;
  background: linear-gradient(135deg, #181a22 0%, #23283a 100%);
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 1rem 1rem 1rem;
  background: var(--card);
  box-shadow: var(--shadow);
  border-bottom: 2px solid var(--accent);
}
main {
  padding: 2rem 1rem 1rem 1rem;
  max-width: 520px;
  margin: auto;
}
#search-bar {
  width: 100%;
  padding: 1rem;
  font-size: 1.15rem;
  border-radius: 12px;
  border: 1.5px solid var(--accent);
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(226,177,60,0.07);
  font-family: 'Poppins', sans-serif;
}
#aartis-ul {
  list-style: none;
  padding: 0;
}
#aartis-ul li {
  background: var(--card);
  margin-bottom: 1rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  font-size: 1.1rem;
  position: relative;
  border: 1px solid #f3e2b1;
  padding: 0.5em 1em;
  display: flex;
  flex-direction: row;
  align-items: center;
}
#aartis-ul li > div:not(.tile-img) {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding-left: 0.5em;
  gap: 0.2em;
}
#aartis-ul li:hover {
  transform: scale(1.03);
  background: linear-gradient(90deg, #ffe9b3 0%, #e2b13c 100%);
  color: var(--bg);
  box-shadow: 0 8px 32px rgba(226,177,60,0.18);
}
#aarti-display {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 3rem 1rem 1rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 1.2rem;
  box-shadow: 0 0 40px 10px var(--accent);
  /* Prevent horizontal scroll, keep detail page fixed */
}
@keyframes fadeIn {
  /* Removed fadeIn keyframes for fixed detail page */
}
#aarti-controls {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  position: static;
  width: 100%;
  justify-content: center;
}
@media (max-width: 600px) {
  #aarti-controls {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100vw;
    background: var(--card);
    box-shadow: 0 -2px 16px rgba(226,177,60,0.08);
    padding: 0.5rem 0;
    z-index: 100;
    margin-bottom: 0;
    touch-action: manipulation;
  }
  #aarti-display {
    padding-bottom: 4.5rem;
  }
}
#aarti-controls button {
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  margin-bottom: 0.2em;
  padding: 0;
  box-shadow: 0 2px 8px rgba(226,177,60,0.07);
  cursor: pointer;
}


/* Ensure icons are always visible and centered */
#aarti-controls .material-icons {
  /* Removed empty ruleset */
}
#aarti-controls button svg {
  display: block;
  margin: auto;
  stroke: var(--bg);
}
#aarti-controls button:hover {
  background: #ffe9b3;
  box-shadow: 0 4px 16px rgba(226,177,60,0.18);
}


/* On hover/focus/active, make icon gold for feedback */
#aarti-controls button:active .material-icons,
/* Removed Material Icons hover/focus/active color, will use SVGs */
#aarti-content {
  width: 100%;
  max-width: 520px;
  line-height: 2.1;
  white-space: pre-line;
  text-align: center;
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 2px 16px rgba(255,209,102,0.10);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(226,177,60,0.07);
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
}
footer {
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 1.1rem;
  margin-right: 0.4em;
  margin-left: 0.1em;
  padding: 0.1em 0.05em 0.1em 0.05em;
  text-align: left;
  margin-right: 1em;
  text-align: left;
  margin-right: 1em;
  box-shadow: var(--shadow);
}
.hidden {
  display: none !important;
}
@media (max-width: 600px) {
  main {
    padding: 0.5rem;
  }
  #aarti-display {
    padding: 1.5rem 0.5rem 0.5rem 0.5rem;
    font-size: 1rem;
  }
  #aarti-content {
    padding: 1rem 0.5rem;
  }
}
