/*!
 * ============================================================
 *  فاکتور ساز آنلاین (Online Invoice Builder)
 *  طراحی و برنامه‌نویسی: م. امین عسکری  |  AminAskariX.ir
 * ------------------------------------------------------------
 *  Online Invoice Builder - Business Logic & Calculations
 *  Crafted with ❤️ by Mohammad Amin Askari (AminAskariX.ir)
 *
 *  Copyright (c) 2026-present, Mohammad Amin Askari - All Rights Reserved.
 *  This source code is licensed for personal and commercial use
 *  by the owner. Unauthorized copying, modification, distribution
 *  or selling of this file, via any medium, is strictly prohibited.
 * ============================================================
 */

@media (max-width: 767.98px) {
  .app-header {
    position: relative;
    top: auto;
    transform: none;
    backface-visibility: visible;
    transition: none;
    will-change: auto;
    contain: none;
    margin-bottom: 0;
  }

  .app-title {
    transition: none;
  }

  .app-subtitle {
    max-height: 2.4rem;
    overflow: hidden;
    opacity: 0.92;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .app-logo {
    transition: none;
    transform: none;
    transform-origin: right center;
    will-change: auto;
  }

  .app-header__actions {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-header,
  .app-header * {
    animation: none !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 640px) {
  .support-amount__display {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .support-amount__display .support-amount__value {
    margin-bottom: 0;
  }

  .support-amount__display .coffee-cup {
    align-self: auto;
    width: 54px;
    height: 54px;
  }
}


.support-marquee {
  left: 0.15rem;
  right: 0.15rem;
  bottom: -0.62rem;
  height: 1.6rem;
  direction: ltr;
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 90%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 8%,
    #000 90%,
    transparent 100%
  );
}

.support-marquee__track {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  line-height: 1;
  will-change: transform;
  animation-name: support-marquee;
  animation-duration: var(--marquee-duration, 20s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-play-state: running;
}

.support-marquee--js .support-marquee__track {
  animation: none !important;
}

.support-marquee--static .support-marquee__track {
  width: 100%;
  justify-content: center;
}

.support-marquee__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  direction: rtl;
  white-space: nowrap;
  padding: 0.11rem 0.44rem 0.12rem 0.36rem;
  font-size: 0.62rem;
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.7),
    rgba(30, 41, 59, 0.45)
  );
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.28);
  backdrop-filter: blur(5px) saturate(140%);
}

.support-marquee__name {
  font-weight: 500;
}

.support-marquee__amount {
  font-size: 0.59rem;
  font-weight: 600;
  color: #fcd34d;
}

.support-marquee__medal {
  width: 0.94rem;
  height: 0.94rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 255, 255, 0.35),
    rgba(15, 23, 42, 0.7)
  );
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.2) inset;
}

.support-marquee__medal--bronze {
  box-shadow: 0 0 0 1px rgba(194, 65, 12, 0.22) inset;
}

.support-marquee__medal--silver {
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.28) inset;
}

.support-marquee__medal--gold {
  box-shadow: 0 0 0 1px rgba(217, 119, 6, 0.28) inset;
}

.support-marquee__medal--diamond {
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.32) inset,
    0 0 8px rgba(56, 189, 248, 0.22);
}
