
@keyframes custom-border-animate {
    0%   { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes custom-box-bg {
    0%   { background: #1e1e2f; }
    25%  { background: #263238; }
    50%  { background: #3d2f4f; }
    75%  { background: #2e3b55; }
    100% { background: #1e1e2f; }
}

@keyframes custom-text-gradient {
    0%   { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes custom-text-slide-up {
    0%   { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.custom-logo-box {
    width: 150px;
    height: 80px;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 10px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: custom-box-bg 10s ease-in-out infinite;
    overflow: hidden;
}

.custom-logo-box::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border-radius: 10px;
    padding: 5px;
    background: linear-gradient(270deg, #f6d365, #fda085, #84fab0, #8fd3f4, #f6d365);
    background-size: 600% 600%;
    animation: custom-border-animate 6s linear infinite;
    z-index: 0;
    box-sizing: border-box;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
}

.custom-logo-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
}

.custom-logo-text {
    font-weight: bold;
    font-size: 1.3rem;
    text-align: left;
    white-space: pre-line;
    line-height: 1.2;
    color: transparent;
    background: linear-gradient(90deg, #ff5f6d, #ffc371, #47cacc, #6a82fb, #ff5f6d);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    animation: custom-text-gradient 5s linear infinite;
    transition: all 0.3s ease;
}

.custom-logo-text.animate {
    animation: custom-text-gradient 5s linear infinite, custom-text-slide-up 0.6s ease;
}

.custom-logo-icon {
    width: 3em;
    height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
}

.custom-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}