﻿/* Fondo general */
body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #050509;
    color: #f5f5f5;
    min-height: 100vh;
}

.ad-bg {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, #25244a 0, #050509 55%, #000000 100%);
    overflow: hidden;
}

.ad-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 0%, rgba(255, 78, 80, 0.12), transparent 55%), radial-gradient(circle at 80% 100%, rgba(80, 140, 255, 0.15), transparent 55%);
    opacity: 0.6;
    pointer-events: none;
}

/* Contenedor principal */
.ad-container {
    position: relative;
    padding: 16px;
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
}

/* Tarjeta */
.ad-card {
    background: rgba(9, 9, 15, 0.96);
    border-radius: 18px;
    padding: 28px 26px 24px;
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(14px);
}

/* Ícono de candado */
.ad-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    position: relative;
}

    .ad-icon .lock-body {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 40px;
        height: 30px;
        transform: translateX(-50%);
        border-radius: 10px;
        background: linear-gradient(135deg, #ff4b4b, #ff944d);
        box-shadow: 0 0 18px rgba(255, 102, 0, 0.65);
    }

    .ad-icon .lock-top {
        position: absolute;
        bottom: 20px;
        left: 50%;
        width: 30px;
        height: 24px;
        transform: translateX(-50%);
        border-radius: 18px 18px 12px 12px;
        border: 3px solid #ffb088;
        border-bottom: none;
    }

/* Títulos */
.ad-card h1 {
    margin: 0 0 6px;
    text-align: center;
    font-size: 1.8rem;
    letter-spacing: 0.04em;
}

.ad-card h2 {
    margin: 0 0 14px;
    text-align: center;
    font-size: 0.98rem;
    font-weight: 500;
    color: #cfcfe8;
}

/* Mensaje */
.ad-message {
    margin: 0 0 16px;
    text-align: center;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #b4b5d6;
}

/* Info de error */
.ad-info {
    display: flex;
    justify-content: center;
    gap: 8px;
    align-items: center;
    font-size: 0.82rem;
    color: #8889ab;
    margin-bottom: 18px;
}

.ad-code {
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 75, 75, 0.12);
    color: #ff9d9d;
    font-weight: 500;
}

.ad-divider {
    opacity: 0.6;
}

.ad-detail {
    opacity: 0.9;
}

/* Botones */
.ad-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 12px;
}

.btn {
    border: none;
    outline: none;
    cursor: pointer;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: transform 0.11s ease, box-shadow 0.11s ease, background 0.12s ease, color 0.12s ease;
}

    .btn.primary {
        background: linear-gradient(135deg, #ff5b4d, #ffb14d);
        color: #1b0f0f;
        box-shadow: 0 10px 25px rgba(255, 90, 70, 0.4);
    }

        .btn.primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 14px 35px rgba(255, 90, 70, 0.6);
        }

    .btn.ghost {
        background: transparent;
        color: #d0d1f2;
        border: 1px solid rgba(160, 162, 214, 0.5);
    }

        .btn.ghost:hover {
            background: rgba(91, 95, 160, 0.22);
        }

/* Footer */
.ad-footer {
    display: flex;
    justify-content: center;
    gap: 6px;
    font-size: 0.76rem;
    color: #7e7fa7;
    margin-top: 4px;
}

.ad-dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: #7e7fa7;
    align-self: center;
}

/* Responsive */
@media (max-width: 480px) {
    .ad-card {
        padding: 22px 18px 18px;
    }

        .ad-card h1 {
            font-size: 1.5rem;
        }

        .ad-card h2 {
            font-size: 0.9rem;
        }

    .ad-message {
        font-size: 0.86rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}
