/* app-preloader.css */

#appPreloader {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
      radial-gradient(circle at 18% 10%, rgba(122, 15, 34, .28), transparent 34%),
      radial-gradient(circle at 82% 0%, rgba(201, 162, 39, .22), transparent 30%),
      linear-gradient(155deg, rgba(251, 250, 248, .94), rgba(245, 243, 244, .92) 48%, rgba(238, 236, 239, .96));
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      opacity .34s cubic-bezier(.2, .8, .2, 1),
      visibility .34s,
      transform .34s cubic-bezier(.2, .8, .2, 1);
  }
  
  #appPreloader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.015);
  }
  
  .appLoaderCard {
    position: relative;
    width: min(86vw, 310px);
    overflow: hidden;
    border-radius: 34px;
    padding: 20px 18px 18px;
    border: 1px solid rgba(255, 255, 255, .82);
    background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(255, 255, 255, .62));
    box-shadow: 0 30px 90px rgba(17, 24, 39, .20), inset 0 1px 0 rgba(255, 255, 255, .9);
    text-align: center;
    color: #4b0714;
  }
  
  .appLoaderCard::before {
    content: "";
    position: absolute;
    inset: -80px auto auto -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(122, 15, 34, .12);
    filter: blur(2px);
  }
  
  .appLoaderCard::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -85px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(201, 162, 39, .16);
    filter: blur(2px);
  }
  
  .appLoaderBrand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 8px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    border: 1px solid rgba(255, 255, 255, .78);
    box-shadow: 0 10px 24px rgba(17, 24, 39, .07);
    font-size: 10.5px;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4b0714;
  }
  
  .appLoaderMark {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 999px;
    background: linear-gradient(145deg, #7a0f22, #4b0714);
    color: #fff;
    box-shadow: 0 10px 20px rgba(122, 15, 34, .26);
    font-size: 12px;
    font-weight: 950;
  }
  
  .appLoaderRing {
    position: relative;
    z-index: 1;
    width: 72px;
    height: 72px;
    margin: 0 auto 15px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #7a0f22, #4b0714);
    box-shadow: 0 18px 38px rgba(75, 7, 20, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
  }
  
  .appLoaderRing::before {
    content: "";
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, .22);
    border-top-color: #fff;
    border-right-color: rgba(201, 162, 39, .95);
    animation: appSpin .82s linear infinite;
  }
  
  .appLoaderRing::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #c9a227;
    box-shadow: 0 0 0 7px rgba(201, 162, 39, .16);
  }
  
  #appPreloaderTitle {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
    font-size: 19px;
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -.45px;
    color: #4b0714;
  }
  
  #appPreloaderText {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 800;
    color: rgba(75, 85, 99, .82);
  }
  
  .appLoaderBar {
    position: relative;
    z-index: 1;
    height: 6px;
    margin-top: 17px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(75, 7, 20, .10);
  }
  
  .appLoaderBar span {
    position: absolute;
    inset: 0;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, #7a0f22, #c9a227, #7a0f22);
    animation: appBar 1.1s ease-in-out infinite;
  }
  
  @keyframes appSpin {
    to {
      transform: rotate(360deg);
    }
  }
  
  @keyframes appBar {
    0% {
      transform: translateX(-110%);
    }
  
    100% {
      transform: translateX(245%);
    }
  }
  
  @media (prefers-reduced-motion: reduce) {
    .appLoaderRing::before,
    .appLoaderBar span {
      animation: none;
    }
  
    #appPreloader {
      transition: none;
    }
  }