/* ===== UPDATE BANNER ===== */
.update-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3000;
    background: linear-gradient(90deg, #7c3aed, #a855f7, #7c3aed);
    background-size: 200% auto;
    animation: bannerShine 4s linear infinite;
    color: #fff;
    padding: 0.7rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 2px 16px rgba(168, 85, 247, 0.5);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.update-banner.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

@keyframes bannerShine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.update-banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
}

.update-banner-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.update-banner-text {
    font-size: 0.9rem;
    line-height: 1.4;
}

.update-banner-text strong {
    font-weight: 700;
}

.update-banner-btn {
    background: rgba(255, 255, 255, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.update-banner-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.update-banner-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.update-banner-close:hover {
    color: #fff;
}

/* Offset nav when banner is visible */
nav {
    top: 44px;
    transition: top 0.4s ease;
}

body.banner-hidden nav {
    top: 0;
}
/* ===== END UPDATE BANNER ===== */


.multi-server {
    padding: 6rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.server-showcase {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
}

.server-screen {
    flex: 1;
    min-width: 260px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.server-screen-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.server-capture {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.server-capture:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(168, 85, 247, 0.2);
}

.server-tip {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

.tip-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    line-height: 1.5;
}

.server-tip p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.server-tip strong {
    color: #f59e0b;
}

@media (max-width: 768px) {
    .multi-server {
        padding: 4rem 1rem;
    }
    .server-showcase {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin: 2rem 0 1.5rem;
    }
    .server-screen {
        max-width: 100%;
        min-width: auto;
        width: 100%;
    }
    .server-screen-label {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    .server-capture {
        max-width: 280px;
        margin: 0 auto;
    }
    .server-tip {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 0.75rem;
    }
    .server-tip p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

.fusion-mode {
    margin-top: 4rem;
    padding: 3rem 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.fusion-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981, #a855f7);
}

.fusion-header {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.fusion-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.fusion-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0.5rem 0 0.8rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, #34d399 60%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.fusion-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .fusion-mode {
        margin-top: 3rem;
        padding: 2.5rem 1.25rem 2rem;
        border-radius: 20px;
    }
    .fusion-title {
        font-size: 1.7rem;
    }
    .fusion-desc {
        font-size: 0.95rem;
    }
}

/* ===== END MULTI-SERVER ===== */

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.changelog-section {
    margin-bottom: 1.5rem;
}

.changelog-section:last-child {
    margin-bottom: 0;
}

.changelog-section h4 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.changelog-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-section li {
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.changelog-section li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #a855f7;
}

@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    .modal-content {
        max-height: 90vh;
    }
    .modal-header {
        padding: 1.25rem;
    }
    .modal-body {
        padding: 1.25rem;
    }
}
/* ===== END MODAL ===== */

/* ===== KEYSTORE WARNING MODAL (v1.1.40+) ===== */
.keystore-modal-content {
    border: 2px solid rgba(251, 146, 60, 0.4);
    box-shadow: 0 20px 60px rgba(251, 146, 60, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 560px;
}

.keystore-modal-header {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15), rgba(239, 68, 68, 0.1));
    border-bottom: 1px solid rgba(251, 146, 60, 0.3);
}

.keystore-modal-header h3 {
    color: #fb923c;
}

.keystore-alert {
    color: #e5e7eb;
}

.keystore-alert > p {
    margin: 0 0 1.25rem 0;
    font-size: 1rem;
    line-height: 1.6;
    padding: 1rem;
    background: rgba(251, 146, 60, 0.08);
    border-left: 3px solid #fb923c;
    border-radius: 8px;
}

.keystore-alert strong {
    color: #fbbf24;
}

.keystore-steps {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1rem 0 1.25rem 0;
}

.keystore-step {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.25s ease;
}

.keystore-step:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.3);
}

.keystore-step-number {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.keystore-step p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #d1d5db;
}

.keystore-step strong {
    color: #ffffff;
}

.keystore-note {
    margin: 1rem 0 0 0 !important;
    padding: 0.75rem 1rem !important;
    background: rgba(239, 68, 68, 0.08) !important;
    border-left: 3px solid #ef4444 !important;
    border-radius: 8px;
    font-size: 0.9rem !important;
    color: #fca5a5 !important;
    font-style: italic;
}

.keystore-actions {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.keystore-actions .btn-primary,
.keystore-actions .btn-secondary {
    flex: 1;
    min-width: 140px;
    padding: 0.85rem 1.25rem;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.25s ease;
}

.keystore-actions .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.keystore-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.keystore-actions .btn-primary {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: white;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.keystore-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
}

@media (max-width: 600px) {
    .keystore-actions {
        flex-direction: column;
    }
    .keystore-actions .btn-primary,
    .keystore-actions .btn-secondary {
        width: 100%;
    }
}
/* ===== END KEYSTORE WARNING MODAL ===== */


