:root {
    --red-500: #f43f5e;
    --red-600: #e11d48;
    --red-glow: rgba(244, 63, 94, 0.35);
    --green-500: #22c55e;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body::before {
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 90%);
    mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 90%);
}

.ambient {
    background:
        radial-gradient(ellipse 70% 40% at 50% -10%, rgba(124, 92, 255, 0.12), transparent),
        radial-gradient(ellipse 50% 30% at 0% 100%, rgba(34, 211, 238, 0.10), transparent),
        radial-gradient(ellipse 50% 30% at 100% 100%, rgba(244, 63, 94, 0.12), transparent);
}

.ambient::before {
    width: 480px;
    height: 480px;
    background: var(--primary);
    opacity: 0.18;
    top: -160px;
    left: -140px;
    animation: float 15s ease-in-out infinite;
}

.ambient::after {
    width: 400px;
    height: 400px;
    background: var(--red-500);
    opacity: 0.18;
    bottom: -140px;
    right: -120px;
    animation: float 18s ease-in-out infinite reverse;
}

.container {
    background: linear-gradient(180deg, var(--bg-card), #10101f);
    border-radius: 26px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    padding: 48px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    border: 1px solid var(--border);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -1px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.subtitle {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
    font-weight: 500;
}

.warning-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #fb7185, var(--red-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 34px;
    box-shadow: 0 12px 32px var(--red-glow);
}

.title {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.description {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
    text-align: left;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 14px;
    font-size: 1rem;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.form-input::placeholder {
    color: var(--text-dim);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.18);
}

.delete-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 28px var(--red-glow);
}

.delete-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(244, 63, 94, 0.45);
}

.delete-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    cursor: not-allowed;
    box-shadow: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 22, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-soft);
    border-radius: 24px;
    padding: 36px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    border: 1px solid var(--border-strong);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
}

.modal-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #fb7185, var(--red-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    color: white;
    font-size: 26px;
    box-shadow: 0 10px 24px var(--red-glow);
}

.modal-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.modal-text {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 26px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 13px 20px;
    border: none;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.14);
}

.btn-confirm {
    background: linear-gradient(135deg, var(--red-500), var(--red-600));
    color: white;
}

.btn-confirm:hover {
    box-shadow: 0 8px 22px var(--red-glow);
    transform: translateY(-1px);
}

/* Success State */
.success-state {
    display: none;
}

.success-state.show {
    display: block;
}

.success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #86efac, var(--green-500));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 34px;
    box-shadow: 0 12px 32px rgba(34, 197, 94, 0.25);
}

.success-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--green-500);
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}

.success-text {
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 480px) {
    .container {
        padding: 32px 24px;
    }

    .modal-content {
        padding: 28px 22px;
    }
}
