/* ============================================================
   ORVIX CLOUD THEME — MythicalDash (dash.orvixcloud.site)
   Cosmetic-only customisation. Optimised for performance:
   - transform/opacity animations only (no animated layout)
   - soft radial gradients instead of filter: blur
   - respects prefers-reduced-motion
   ============================================================ */

/* ---------- Base fonts & scrollbar ---------- */
body {
    font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #05060f; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #22d3ee, #e879f9);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a78bfa, #67e8f9, #f0abfc); }

/* ============================================================
   ANIME BACKGROUND LAYER (dashboard + login, like client.mcservers.in)
   Fixed full-screen image with a dark overlay so text stays readable.
   z-index:-1 keeps it behind all app content; the app's min-h-screen
   backgrounds are forced transparent below.
   ============================================================ */
body { background-color: #05060f; }
#orvix-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(180deg, rgba(5, 6, 15, .80) 0%, rgba(5, 6, 15, .70) 45%, rgba(5, 6, 15, .86) 100%),
        url('/orvix-custom/anime-bg.jpg?v=1');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ============================================================
   MUSIC TOGGLE — floating play/pause button (bottom-right)
   ============================================================ */
#orvix-music-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9990;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, .55);
    background: linear-gradient(135deg, #8b5cf6, #6d28d9 50%, #22d3ee);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(139, 92, 246, .45), 0 0 16px rgba(34, 211, 238, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}
#orvix-music-toggle:hover {
    transform: translateY(-2px) scale(1.06);
    box-shadow: 0 12px 30px rgba(139, 92, 246, .6), 0 0 26px rgba(34, 211, 238, .4);
}
#orvix-music-toggle:active { transform: scale(.96); }
#orvix-music-toggle svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    pointer-events: none;
}
#orvix-music-toggle.playing {
    animation: orvix-music-pulse 2.4s ease-in-out infinite;
}
@keyframes orvix-music-pulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(139, 92, 246, .45), 0 0 16px rgba(34, 211, 238, .25); }
    50% { box-shadow: 0 8px 24px rgba(139, 92, 246, .65), 0 0 30px rgba(34, 211, 238, .6); }
}

/* ============================================================
   SIDEBAR / MOBILE DRAWER (the "3 lines" menu)
   - transparent glassy look with a subtle gradient sheen
   - Orvix Cloud logo + name injected at the top (see theme.js)
   ============================================================ */
body.orvix-app aside {
    background: rgba(6, 7, 14, .38) !important;
    background-image: linear-gradient(180deg, rgba(139, 92, 246, .10), rgba(34, 211, 238, .05) 55%, rgba(232, 121, 249, .08)) !important;
    backdrop-filter: blur(22px) saturate(1.3) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.3) !important;
    border-right: 1px solid rgba(139, 92, 246, .28) !important;
    box-shadow: 12px 0 40px rgba(0, 0, 0, .35), inset 0 0 60px rgba(139, 92, 246, .04) !important;
}
body.orvix-app aside .router-link-active {
    background: rgba(139, 92, 246, .18) !important;
    border: 1px solid rgba(139, 92, 246, .35);
    box-shadow: 0 4px 18px rgba(139, 92, 246, .25);
}

/* Brand header injected at the top of the drawer */
.orvix-drawer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 14px 14px 4px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, .30);
    background: linear-gradient(90deg, rgba(139, 92, 246, .16), rgba(34, 211, 238, .07) 55%, rgba(232, 121, 249, .12));
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35), 0 0 26px rgba(139, 92, 246, .14);
    animation: orvix-card-in .6s cubic-bezier(.16, 1, .3, 1) both;
}
.orvix-drawer-brand img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: contain;
    background: rgba(5, 6, 15, .55);
    box-shadow: 0 0 16px rgba(139, 92, 246, .55), 0 0 30px rgba(34, 211, 238, .2);
}
.orvix-drawer-brand span {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: .12em;
    background-image: linear-gradient(90deg, #ffffff, #c4b5fd, #ffffff, #a5f3fc, #ffffff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: orvix-shine 3s linear infinite;
}
.orvix-drawer-brand span b {
    background-image: linear-gradient(90deg, #a78bfa, #22d3ee, #e879f9, #a78bfa);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
}

/* Softer dark overlay behind the mobile drawer */
body.orvix-app aside + .fixed,
body.orvix-app .fixed.inset-0.bg-black\/80 {
    background: rgba(3, 4, 10, .45) !important;
}

/* ============================================================
   PRELOADER — Orvix Cloud animated loader
   (only shown on first visit; suppressed after login/navigation)
   ============================================================ */
#app-loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse 90% 70% at 50% 30%, #161338 0%, #0b0d22 55%, #05060f 100%);
    transition: opacity .6s ease, visibility .6s ease;
}
/* Returning visitor (after login / reload): hide the loader before first paint */
html.orvix-visited #app-loading {
    display: none !important;
}
#app-loading.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
#app { opacity: 0; transition: opacity .3s ease-in; }
#app.visible { opacity: 1; }

.orvix-loader-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(139, 92, 246, .09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, .09) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 78%);
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 78%);
    animation: orvix-grid-drift 2.4s linear infinite;
}
@keyframes orvix-grid-drift { from { background-position: 0 0; } to { background-position: 46px 46px; } }

.orvix-loader-glow {
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, .26), rgba(34, 211, 238, .08) 55%, transparent 70%);
    animation: orvix-glow 2.2s ease-in-out infinite;
}
@keyframes orvix-glow { 0%, 100% { transform: scale(.9); opacity: .7; } 50% { transform: scale(1.15); opacity: 1; } }

.orvix-loader-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(34, 211, 238, .13), transparent);
    animation: orvix-scan 1.7s linear infinite;
    z-index: 1;
}
@keyframes orvix-scan { from { top: -120px; } to { top: 100%; } }

.orvix-loader-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.15rem;
}
.orvix-loader-logo-wrap {
    position: relative;
    width: 108px;
    height: 108px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orvix-bob 2.6s ease-in-out infinite;
}
@keyframes orvix-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.orvix-loader-ring {
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 2px dashed rgba(34, 211, 238, .55);
    animation: orvix-spin 4s linear infinite;
}
.orvix-loader-ring.ring-2 {
    inset: 2px;
    border-style: solid;
    border-color: rgba(139, 92, 246, .4);
    border-top-color: rgba(232, 121, 249, .95);
    animation: orvix-spin 2.2s linear infinite reverse;
}
@keyframes orvix-spin { to { transform: rotate(360deg); } }

.orvix-loader-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: contain;
    animation: orvix-logo-pulse 1.8s ease-in-out infinite;
}
@keyframes orvix-logo-pulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(124, 58, 237, .7)); }
    50% { transform: scale(1.07); filter: drop-shadow(0 0 26px rgba(34, 211, 238, .95)); }
}

.orvix-loader-name {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: .2em;
    background-image: linear-gradient(90deg, #ffffff, #c4b5fd, #ffffff, #a5f3fc, #ffffff);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: orvix-shine 3s linear infinite;
}
.orvix-loader-name span {
    background-image: linear-gradient(90deg, #a78bfa, #22d3ee, #e879f9, #a78bfa);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: orvix-shine 3s linear infinite;
}
@keyframes orvix-shine { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }

.orvix-loader-bar {
    width: 270px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(139, 92, 246, .35);
    overflow: hidden;
}
.orvix-loader-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #8b5cf6, #22d3ee, #e879f9);
    background-size: 200% 100%;
    animation: orvix-bar-flow 1s linear infinite;
    box-shadow: 0 0 14px rgba(34, 211, 238, .7);
}
@keyframes orvix-bar-flow { from { background-position: 0 0; } to { background-position: 200% 0; } }

.orvix-loader-pct {
    font-family: 'Share Tech Mono', monospace;
    font-size: 1.05rem;
    letter-spacing: .08em;
    color: #22d3ee;
    text-shadow: 0 0 14px rgba(34, 211, 238, .65);
}
.orvix-loader-status {
    font-family: 'Share Tech Mono', monospace;
    font-size: .64rem;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: #8b94a7;
}
.orvix-loader-status i { font-style: normal; color: #e879f9; animation: orvix-blink 1s steps(1) infinite; }
@keyframes orvix-blink { 50% { opacity: 0; } }

/* ============================================================
   LINK-CLICK LOADING BAR (SPA navigation)
   ============================================================ */
#orvix-topbar-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    z-index: 10000;
    background: linear-gradient(90deg, #8b5cf6, #22d3ee, #e879f9, #8b5cf6);
    background-size: 200% 100%;
    border-radius: 0 999px 999px 0;
    box-shadow: 0 0 12px rgba(34, 211, 238, .8);
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}
#orvix-topbar-progress.active {
    opacity: 1;
    animation: orvix-bar-loading 1s ease-in-out forwards;
}
@keyframes orvix-bar-loading {
    0% { width: 0%; }
    40% { width: 72%; }
    80% { width: 92%; }
    100% { width: 100%; }
}

/* ============================================================
   AUTH PAGES (login / register / forgot)
   ============================================================ */
body.orvix-auth .app-container > div.min-h-screen {
    background: transparent !important;
}
body.orvix-auth .bg-gradient-to-b {
    background-image: none !important;
}
body.orvix-auth .app-container > div.min-h-screen::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    top: -140px;
    right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, .30), transparent 62%);
    animation: orvix-orb-drift 14s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}
body.orvix-auth .app-container > div.min-h-screen::after {
    content: '';
    position: absolute;
    width: 480px;
    height: 480px;
    bottom: -140px;
    left: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .22), transparent 62%);
    animation: orvix-orb-drift 18s ease-in-out infinite alternate-reverse;
    pointer-events: none;
    z-index: 1;
}
@keyframes orvix-orb-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(45px, 35px) scale(1.18); } }

body.orvix-auth .max-w-md {
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(24, 20, 46, .92), rgba(12, 14, 32, .92)) !important;
    border: 1px solid rgba(139, 92, 246, .35) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .5), 0 0 40px rgba(139, 92, 246, .12) !important;
    backdrop-filter: blur(18px);
    animation: orvix-card-in .7s cubic-bezier(.16, 1, .3, 1) both;
}
@keyframes orvix-card-in {
    from { opacity: 0; transform: translateY(24px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
body.orvix-auth .max-w-md::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b5cf6, #22d3ee, #e879f9, transparent);
    background-size: 200% 100%;
    animation: orvix-topline 3s linear infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes orvix-topline { 0% { background-position: 0% 0; } 100% { background-position: 200% 0; } }

/* logo header row — centered with glowing aura behind the logo */
body.orvix-auth .max-w-md > div:first-child {
    position: relative;
    justify-content: center;
}
body.orvix-auth .max-w-md > div:first-child::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 132px;
    height: 132px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 92, 246, .35), rgba(34, 211, 238, .12) 55%, transparent 70%);
    animation: orvix-aura 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes orvix-aura {
    0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}
body.orvix-auth .max-w-md img {
    position: relative;
    width: 88px !important;
    height: 88px !important;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 0 30px rgba(34, 211, 238, .4), 0 0 60px rgba(139, 92, 246, .25);
    animation: orvix-logo-float 3s ease-in-out infinite;
}
@keyframes orvix-logo-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-7px) rotate(-2deg); }
}

body.orvix-auth .max-w-md h1 {
    font-family: 'Chakra Petch', sans-serif !important;
    font-size: 1.7rem !important;
    font-weight: 800 !important;
    letter-spacing: .12em;
    background-image: linear-gradient(90deg, #ffffff, #c4b5fd, #ffffff, #a5f3fc, #ffffff) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    animation: orvix-shine 3s linear infinite !important;
}
body.orvix-auth .max-w-md h2 {
    text-align: center;
    font-weight: 600 !important;
    background: linear-gradient(90deg, #a78bfa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
body.orvix-auth .max-w-md label {
    color: #c4b5fd !important;
}
body.orvix-auth .max-w-md input {
    background: rgba(10, 12, 26, .85) !important;
    border: 1px solid rgba(139, 92, 246, .25) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    transition: border-color .2s ease, box-shadow .2s ease !important;
}
body.orvix-auth .max-w-md input::placeholder { color: rgba(139, 148, 167, .8) !important; }
body.orvix-auth .max-w-md input:focus {
    border-color: #22d3ee !important;
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .15), 0 0 18px rgba(34, 211, 238, .25) !important;
    outline: none !important;
}

body.orvix-auth .max-w-md button[type="submit"] {
    position: relative;
    padding-right: 3rem !important;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9 45%, #22d3ee) !important;
    background-size: 200% 200% !important;
    animation: orvix-btn-shift 4s ease infinite !important;
    box-shadow: 0 8px 24px rgba(139, 92, 246, .45) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .05em;
    transition: transform .2s ease, box-shadow .2s ease !important;
}
body.orvix-auth .max-w-md button[type="submit"]::after {
    content: '\2192';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    transition: transform .25s ease;
}
body.orvix-auth .max-w-md button[type="submit"]:hover:not(:disabled) {
    transform: translateY(-1px) scale(1.01);
    box-shadow: 0 10px 32px rgba(139, 92, 246, .6), 0 0 24px rgba(34, 211, 238, .3) !important;
}
body.orvix-auth .max-w-md button[type="submit"]:hover:not(:disabled)::after { transform: translate(4px, -50%); }
@keyframes orvix-btn-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

body.orvix-auth .max-w-md a {
    color: #22d3ee !important;
    text-shadow: 0 0 12px rgba(34, 211, 238, .35);
}

/* ============================================================
   CLIENT AREA (dashboard & all logged-in pages)
   ============================================================ */
body.orvix-app .app-container > div.min-h-screen {
    background: transparent !important;
}
body.orvix-app .app-container > div.min-h-screen::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    top: -160px;
    left: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 62%);
    animation: orvix-orb-drift 16s ease-in-out infinite alternate;
    pointer-events: none;
}
body.orvix-app .app-container > div.min-h-screen::after {
    content: '';
    position: absolute;
    width: 540px;
    height: 540px;
    bottom: -180px;
    right: -140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 62%);
    animation: orvix-orb-drift 20s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}

/* Navbar — subtle gradient underline + glow */
body.orvix-app nav {
    box-shadow: 0 1px 0 rgba(139, 92, 246, .18), 0 8px 30px rgba(0, 0, 0, .35) !important;
    background-image: linear-gradient(90deg, rgba(139, 92, 246, .07), rgba(34, 211, 238, .04), rgba(232, 121, 249, .07), rgba(139, 92, 246, .07)) !important;
}

/* Navbar brand — logo glow + animated gradient name */
body.orvix-app nav .w-8.h-8,
body.orvix-app nav .w-8 {
    border-radius: 12px;
    box-shadow: 0 0 18px rgba(139, 92, 246, .45), 0 0 40px rgba(34, 211, 238, .15);
    animation: orvix-logo-pulse 2.4s ease-in-out infinite;
}
body.orvix-app nav span.text-xl.font-bold {
    font-family: 'Chakra Petch', sans-serif !important;
    background-image: linear-gradient(90deg, #8b5cf6, #22d3ee, #e879f9, #8b5cf6) !important;
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    animation: orvix-shine 3s linear infinite !important;
    letter-spacing: .06em;
}

/* Card containers — gaming glow + lift on hover */
body.orvix-app .app-container .bg-\[\#12121f\]\/50,
body.orvix-app .app-container .bg-\[\#1a1a2e\]\/50,
body.orvix-app .app-container .border-gray-700\/30 {
    transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
body.orvix-app .app-container .bg-\[\#12121f\]\/50:hover,
body.orvix-app .app-container .bg-\[\#1a1a2e\]\/50:hover,
body.orvix-app .app-container .border-gray-700\/30:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, .14);
    border-color: rgba(139, 92, 246, .4) !important;
}

/* Stat / accent tiles — matching coloured glows */
body.orvix-app .app-container .bg-emerald-500\/10 {
    box-shadow: inset 0 0 0 1px rgba(16, 185, 129, .18), 0 4px 18px rgba(16, 185, 129, .08);
}
body.orvix-app .app-container .bg-blue-500\/5,
body.orvix-app .app-container .bg-indigo-500\/5 {
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, .16), 0 4px 18px rgba(99, 102, 241, .08);
}
body.orvix-app .app-container .bg-indigo-500\/10,
body.orvix-app .app-container .bg-indigo-500\/20 {
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .2), 0 4px 18px rgba(139, 92, 246, .1);
}

/* Primary action buttons — colorful gradient + glow */
body.orvix-app .app-container button.bg-indigo-500,
body.orvix-app .app-container button.bg-purple-600,
body.orvix-app .app-container button.bg-indigo-600,
body.orvix-app .app-container .bg-indigo-500,
body.orvix-app .app-container .bg-purple-600 {
    background-image: linear-gradient(135deg, #8b5cf6, #22d3ee) !important;
    background-size: 200% 200% !important;
    box-shadow: 0 4px 18px rgba(139, 92, 246, .35);
    transition: box-shadow .25s ease, transform .25s ease, background-position .4s ease !important;
}
body.orvix-app .app-container button.bg-indigo-500:hover,
body.orvix-app .app-container button.bg-purple-600:hover,
body.orvix-app .app-container button.bg-indigo-600:hover,
body.orvix-app .app-container .bg-indigo-500:hover,
body.orvix-app .app-container .bg-purple-600:hover {
    background-position: 100% 50% !important;
    box-shadow: 0 6px 26px rgba(34, 211, 238, .45) !important;
    transform: translateY(-1px);
}

/* ============================================================
   ACCESSIBILITY — disable animations for reduced-motion users
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* ============================================================
   MOBILE (max-width: 767px)
   - Always show the Orvix Cloud logo + name in the top navbar
   - Disable heavy/infinite animations for smooth menus & scrolling
   ============================================================ */
@media (max-width: 767px) {
    /* App hides the brand on small screens ("hidden md:flex") — force it back */
    body.orvix-app nav .hidden.md\:flex {
        display: flex !important;
    }
    body.orvix-app nav .hidden.md\:flex img {
        width: 28px !important;
        height: 28px !important;
    }
    body.orvix-app nav span.text-xl.font-bold {
        font-size: 1rem !important;
        letter-spacing: .04em !important;
    }

    /* Music toggle — slightly smaller on phones */
    #orvix-music-toggle {
        right: 14px;
        bottom: 14px;
        width: 44px;
        height: 44px;
    }
    #orvix-music-toggle svg { width: 18px; height: 18px; }
    #orvix-music-toggle.playing { animation: none !important; }

    /* Performance: static aurora gradients (no animation on mobile) */
    body.orvix-app .app-container > div.min-h-screen::before,
    body.orvix-app .app-container > div.min-h-screen::after,
    body.orvix-auth .app-container > div.min-h-screen::before,
    body.orvix-auth .app-container > div.min-h-screen::after {
        animation: none !important;
    }
    body.orvix-app nav .w-8,
    body.orvix-app nav .w-8.h-8,
    body.orvix-app nav .hidden.md\:flex img {
        animation: none !important;
        box-shadow: 0 0 12px rgba(139, 92, 246, .35) !important;
    }
    body.orvix-app nav span.text-xl.font-bold,
    body.orvix-auth .max-w-md h1,
    body.orvix-auth .max-w-md img,
    body.orvix-auth .max-w-md > div:first-child::before,
    body.orvix-auth .max-w-md::before,
    body.orvix-auth .max-w-md button[type="submit"] {
        animation: none !important;
    }
    body.orvix-auth .max-w-md button[type="submit"] {
        background-position: 0% 50% !important;
    }
    body.orvix-app .app-container .bg-\[\#12121f\]\/50:hover,
    body.orvix-app .app-container .bg-\[\#1a1a2e\]\/50:hover,
    body.orvix-app .app-container .border-gray-700\/30:hover {
        transform: none !important;
    }
}

/* ============================================================
   DRAWER MODE (max-width: 1023px) — the "3 lines" slide-in panel
   - Orvix brand becomes the drawer's own top navbar (no blank gap)
   - backdrop-filter removed on mobile to stop the scroll flicker
   ============================================================ */
@media (max-width: 1023px) {
    body.orvix-app aside {
        background: rgba(6, 7, 14, .68) !important;
        background-image: linear-gradient(180deg, rgba(139, 92, 246, .12), rgba(34, 211, 238, .05) 55%, rgba(232, 121, 249, .09)) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    body.orvix-app aside .flex.flex-col.h-full {
        padding-top: 0 !important;
    }
    body.orvix-app aside .orvix-drawer-brand {
        margin: 0;
        padding: 0 16px;
        height: 64px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid rgba(139, 92, 246, .28);
        box-shadow: 0 1px 0 rgba(139, 92, 246, .18), 0 8px 30px rgba(0, 0, 0, .3);
        animation: none !important;
    }
    body.orvix-app aside .orvix-drawer-brand img {
        width: 38px;
        height: 38px;
    }
    body.orvix-app aside .orvix-drawer-brand span {
        font-size: 1rem;
    }
    body.orvix-app aside + .fixed,
    body.orvix-app .fixed.inset-0.bg-black\/80 {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}
