.magicera-pjax-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, #c0a060 0%, #ffd700 50%, #c0a060 100%);
    width: 0;
    z-index: 9999;
    transition: width .25s ease, opacity .25s ease;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255,215,0,.5);
}
.magicera-pjax-bar.is-loading { width: 70%; transition: width .8s ease; }
.magicera-pjax-bar.is-done { width: 100%; transition: width .2s ease; opacity: 0; }

#magicera-content {
    transition: opacity .12s ease;
}
#magicera-content.is-leaving {
    opacity: .35;
    transition: opacity .1s ease;
}
#magicera-content.is-entering {
    animation: magicera-fade-in .25s ease;
}
@keyframes magicera-fade-in {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.magicera-pjax-error {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%);
    background: #4a1919;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #a53d3d;
    font-size: 12px;
    z-index: 9999;
    max-width: 90%;
    text-align: center;
    animation: magicera-fade-in .2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,.6);
}

.magicera-toast-container {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 9900;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: calc(100vw - 16px);
    width: 320px;
    pointer-events: none;
}
@media (max-width: 360px) {
    .magicera-toast-container { width: calc(100vw - 16px); }
}

.magicera-toast {
    pointer-events: auto;
    background: linear-gradient(180deg, #1c1c1c 0%, #141414 100%);
    border: 1px solid #6b5a20;
    border-left: 3px solid #ffd700;
    border-radius: 6px;
    color: #eee;
    padding: 0;
    margin: 0;
    box-shadow: 0 6px 16px rgba(0,0,0,.7), 0 0 12px rgba(192,160,96,.15);
    font-size: 13px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity .25s ease, transform .25s ease;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}
.magicera-toast.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.magicera-toast.is-leaving {
    opacity: 0;
    transform: translateX(20px);
}
.magicera-toast:hover {
    border-color: #c0a060;
    box-shadow: 0 8px 20px rgba(0,0,0,.8), 0 0 18px rgba(192,160,96,.3);
}

.magicera-toast__inner {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
}

.magicera-toast__icon {
    flex: 0 0 auto;
    font-size: 18px;
    line-height: 1.2;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0,0,0,.7);
    margin-top: 1px;
}

.magicera-toast__body {
    flex: 1;
    min-width: 0;
}
.magicera-toast__title {
    font-size: 13px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 3px;
    text-shadow: 0 1px 2px rgba(0,0,0,.7);
}
.magicera-toast__text {
    font-size: 12px;
    color: #ccc;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.magicera-toast__close {
    flex: 0 0 auto;
    background: transparent;
    border: 0;
    color: #777;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 4px;
    margin-top: -2px;
    transition: color .15s;
}
.magicera-toast__close:hover {
    color: #ffd700;
}

@media (max-width: 380px) {
    .magicera-toast-container {
        top: 4px;
        right: 4px;
        left: 4px;
        width: auto;
        max-width: none;
    }
    .magicera-toast__inner {
        padding: 8px 10px;
    }
    .magicera-toast__title {
        font-size: 12px;
    }
    .magicera-toast__text {
        font-size: 11px;
    }
}
