#app-preload { position: fixed; inset: 0; z-index: 9999; }
html, body, #root { margin: 0; min-height: 100%; }
.page-loading { position: relative; display: flex; min-height: 100vh; min-height: 100dvh; width: 100%; align-items: center; justify-content: center; overflow: hidden; box-sizing: border-box; padding: 24px; background: #f8f4ec; color: #4520a8; font: 600 14px Manrope, Inter, 'Segoe UI', Arial, sans-serif; }
.loading-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.loading-content img { display: block; width: 160px; max-width: 100%; height: auto; }
.loading-progress { display: block; width: 104px; height: 4px; overflow: hidden; border-radius: 4px; background: #e9defa; }
.loading-progress i { display: block; width: 40%; height: 100%; border-radius: inherit; background: #6338d6; animation: loading-progress 1.5s ease-in-out infinite; }
.loading-flow { display: none; }
@media (max-width: 760px) {
  .loading-flow { position: absolute; inset: 0; display: block; pointer-events: none; overflow: hidden; }
  .loading-card { position: absolute; bottom: -130px; display: block; width: 100px; height: 62px; box-sizing: border-box; padding: 11px; border: 1px solid #dfd4f0; border-radius: 9px; background: rgba(255,255,255,.8); box-shadow: 0 8px 24px rgba(69,32,168,.06); opacity: 0; animation: loading-float 9s linear infinite; }
  .loading-card i { display: block; width: 64%; height: 4px; margin: 5px 0; border-radius: 4px; background: #d8c9ee; }
  .loading-card i:first-child { width: 32%; background: #d83790; opacity: .65; }
  .loading-card i:last-child { width: 47%; }
  .loading-card-message:after { content: ''; position: absolute; bottom: -5px; left: 17px; width: 8px; height: 8px; border-right: 1px solid #dfd4f0; border-bottom: 1px solid #dfd4f0; background: #fff; transform: rotate(45deg); }
  .loading-card-post { width: 84px; height: 89px; }
  .loading-card-post i:first-child { width: 100%; height: 35px; margin: 0 0 8px; border-radius: 4px; background: #eee7ff; opacity: 1; }
  .loading-card-one { left: 8%; animation-delay: -1s; }
  .loading-card-two { right: 9%; animation-delay: -2.8s; }
  .loading-card-three { left: 14%; animation-delay: -4.6s; }
  .loading-card-four { right: 14%; animation-delay: -6.4s; }
  .loading-card-five { left: 7%; animation-delay: -8.2s; }
  .loading-card-six { right: 7%; animation-delay: -7.4s; }
  .loading-content { padding: 30px 36px; border-radius: 24px; background: rgba(248,244,236,.94); }
}
@keyframes loading-float { 0% { transform: translateY(0); opacity: 0; } 12%, 78% { opacity: .8; } 100% { transform: translateY(calc(-100vh - 140px)); opacity: 0; } }
@keyframes loading-progress { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .loading-card, .loading-progress i { animation: none; } .loading-progress i { width: 40%; transform: translateX(75%); } }
