/* Authentic Classic Conquer Online Toast Notification */
.co-toast-container,
.toast-container {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 99999;
    pointer-events: none;
    align-items: center;
    width: 100%;
    max-width: 440px;
    padding: 0 1rem;
}

.co-toast,
.toast-card {
    min-width: 300px;
    max-width: 440px;
    width: 100%;
    padding: 0;
    border-radius: 3px;
    color: #efe2c0;
    background: linear-gradient(180deg, #1c150c 0%, #0d0a07 100%);
    border: 1px solid #7a5d2a;
    box-shadow: 0 0 0 1px #3b2d17, inset 0 0 15px rgba(0, 0, 0, 0.85), 0 12px 36px rgba(0, 0, 0, 0.85);
    opacity: 0;
    transform: translateY(-25px) scale(0.97);
    transition: opacity 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Ornate Top Gold Filigree Accent */
.co-toast::before,
.toast-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #5a3d12, #f3d58c, #d9b45f, #5a3d12);
    box-shadow: 0 0 8px rgba(243, 213, 140, 0.5);
    z-index: 2;
}

.co-toast--visible,
.toast-card--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.co-toast__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    position: relative;
}

/* Oriental Seal Icon */
.co-toast__seal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(circle, #2a1e10 0%, #120c06 100%);
    border: 1px solid #d9b45f;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8), 0 0 8px rgba(217, 180, 95, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    color: #f3d58c;
}

.co-toast--success .co-toast__seal {
    border-color: #3ba55d;
    color: #5cc489;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(59, 165, 93, 0.3);
}

.co-toast--error .co-toast__seal {
    border-color: #d9483b;
    color: #e85d4f;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(217, 72, 59, 0.3);
}

.co-toast--warn .co-toast__seal {
    border-color: #d9b45f;
    color: #f3d58c;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.8), 0 0 10px rgba(217, 180, 95, 0.3);
}

.co-toast__body {
    flex: 1;
    min-width: 0;
}

.co-toast__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.co-toast__title {
    font-family: var(--font-cinzel), "Trajan Pro", Georgia, serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f3d58c;
    text-shadow: 0 1px 2px #000;
}

.co-toast__message {
    font-size: 12px;
    line-height: 1.4;
    color: #efe2c0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    word-break: break-word;
}

.co-toast__close {
    background: transparent;
    border: none;
    color: #c4a768;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 4px;
    margin-left: 2px;
    transition: color 0.15s;
    flex-shrink: 0;
}

.co-toast__close:hover {
    color: #ffffff;
}

/* Elegant Progress Bar at bottom of Toast */
.co-toast__bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, #d9b45f, #f3d58c);
    animation: co-toast-progress linear forwards;
    transform-origin: left;
}

.co-toast--error .co-toast__bar {
    background: linear-gradient(90deg, #d9483b, #f3d58c);
}

.co-toast--success .co-toast__bar {
    background: linear-gradient(90deg, #3ba55d, #f3d58c);
}

@keyframes co-toast-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

@media (max-width: 480px) {
    .co-toast-container,
    .toast-container {
        max-width: calc(100% - 1.5rem);
        padding: 0 0.75rem;
    }
    
    .co-toast,
    .toast-card {
        min-width: auto;
    }
}
