.errorContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    padding: 1rem;
}

.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 25px 25px, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 50px 50px, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1px 1px at 125px 50px, rgba(255, 255, 255, 0.5) 0%, transparent 100%),
        radial-gradient(1.5px 1.5px at 175px 200px, rgba(255, 255, 255, 0.7) 0%, transparent 100%);
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.2;
    animation: twinkle 8s ease-in-out infinite alternate;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.15;
    }

    50% {
        opacity: 0.25;
    }
}

.errorContent {
    position: relative;
    background: rgba(18, 18, 24, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.6s cubic-bezier(0.21, 0.61, 0.35, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    animation: pulse 3s infinite;
    position: relative;
}

.icon svg {
    width: 100%;
    height: 100%;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(0.95);
    }
}

h2 {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.75rem;
    margin: 0 0 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.message {
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    line-height: 1.5;
}

.errorInfo {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 0.7rem 1rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.errorCode {
    font-family: monospace;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.5px;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
}

.button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.7rem 1.4rem;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button:active {
    transform: translateY(0);
}

.primary {
    background: rgba(96, 165, 250, 0.2);
    border-color: rgba(96, 165, 250, 0.4);
}

.primary:hover {
    background: rgba(96, 165, 250, 0.3);
    border-color: rgba(96, 165, 250, 0.5);
}

.secondary {
    background: rgba(255, 255, 255, 0.05);
}

.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

.buttonText {
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.buttonIcon {
    width: 16px;
    height: 16px;
}

.tip {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.tipIcon {
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

.tip p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0;
    text-align: left;
}

@media (max-width: 480px) {
    .errorContent {
        padding: 2rem 1.5rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .button {
        width: 100%;
    }
}

.accent {
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.accent:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
}

@media (max-width: 480px) {
    .actions {
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }

    .button {
        width: 100%;
    }
}

@media (min-width: 481px) and (max-width: 640px) {
    .actions {
        flex-wrap: wrap;
        justify-content: center;
    }

    .button {
        min-width: 180px;
    }
}